Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Leaderboard

Popular Content

Showing content with the highest reputation on 05/27/2014 in all areas

  1. Для этого необходимо отредактировать всего один файл. Открываем файл "controller/sale/order.php" ищем функцию info() (у меня она находится в 1337 строке). Далее ищем в ней $this->data['products'][] = array( 'order_product_id' => $product['order_product_id'], 'product_id' => $product['product_id'], 'name' => $product['name'], 'model' => $product['model'], 'option' => $option_data, 'quantity' => $product['quantity'], 'price' => $this->currency->format($product['price'] + ($this->config->get('config_tax') ? $product['tax'] : 0), $order_info['currency_code'], $order_info['currency_value']), 'total' => $this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), 'href' => $this->url->link('catalog/product/update', 'token=' . $this->session->data['token'] . '&product_id=' . $product['product_id'], 'SSL') ); Заменяем на: # Подгружаем модели товара и производителя $this->load->model('catalog/product'); $this->load->model('catalog/manufacturer'); # Определяем производителя $product_info = $this->model_catalog_product->getProduct($product['product_id']); $manufacturer = $this->model_catalog_manufacturer->getManufacturer($product_info['manufacturer_id']); # Оформляем вывод $pre_manufacturer = ' <font color="red">('.$manufacturer['name'].')</font>'; $this->data['products'][] = array( 'order_product_id' => $product['order_product_id'], 'product_id' => $product['product_id'], # Добавляем оформленное название производителя к названию товара 'name' => $product['name'].$pre_manufacturer, 'model' => $product['model'], 'option' => $option_data, 'quantity' => $product['quantity'], 'price' => $this->currency->format($product['price'] + ($this->config->get('config_tax') ? $product['tax'] : 0), $order_info['currency_code'], $order_info['currency_value']), 'total' => $this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), 'href' => $this->url->link('catalog/product/update', 'token=' . $this->session->data['token'] . '&product_id=' . $product['product_id'], 'SSL') ); Вот и все
    1 point
  2. на одном из уважаемых сайтов промежуточные результаты голосования. фото кандидатов в президенты загнали в блок <div class="v_mordy"> ( есть такая слабость - смотреть код интересных реализаций)
    1 point
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.