Jump to content

danilenkoki

Новичок
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Обычный

About danilenkoki

  • Rank
    Новичок

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Решение Catalog/controller/cart.php После // Display prices if ($this->customer->isLogged() || !$this->config->get('config_customer_price')) { $unit_price = $this->tax->calculate($product['price'], $product['tax_class_id'], $this->config->get('config_tax')); $price = $this->currency->format($unit_price, $this->session->data['currency']); $total = $this->currency->format($unit_price * $product['quantity'], $this->session->data['currency']); } else { $price = false; $total = false; } Вставить if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) { $price2 = ($this->tax->calculate($product['price2'], $product['tax_class_id'], $this->config->get('config_tax'))); } else { $price2 = false; }  Добавить в массив 'price2' => $price2, Потом в System/library/cart/cart.php в массив добавляем 'price2' => $product_query->row['price'], В simplechecout-cart.php После if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) { $price = $this->simplecheckout->formatCurrency($this->tax->calculate($product['price'], $product['tax_class_id'], $this->config->get('config_tax'))); } else { $price = false; } Вставить if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) { $price2 = ($this->tax->calculate($product['price2'], $product['tax_class_id'], $this->config->get('config_tax'))); } else { $price2 = false; }
  2. Всем привет нужно вывести в корзине рядом с ценой со скидкой, старую перечеркнутую цену. Пытаюсь $product['special'] вести через system/library cart .php и контроллер, но не выходит. Стоит модуль simple.
×

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.