Решение
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;
}