Нужна ваша помощь, теперь в настройках Магазина цены с налогом! Так что все в порядке. Но когда клиент вошел в систему, мне нужно без налога только на странице продукта и в категории. Как я могу это сделать? Спасибо!
Opencart 2 - Для гостей цена с налогом для вошедших без налога
comment
Ищите модуль, вы не можете сделать это из Opencart.
- person MorganFreeFarm   schedule 19.12.2017
Ответы (1)
Привет, @Ivan, зайди в каталог/controller/product.php и в public function index()
найди
if ($this->customer->isLogged() || !$this->config->get('config_customer_price')) {
$data['price'] = $this->currency->format($this->tax->calculate($product_info['price'], $product_info['tax_class_id'], $this->config->get('config_tax')), $this->session->data['currency']); `
}else {
$data['price'] = false;
}
Изменить на :
if ($this->customer->isLogged() || !$this->config->get('config_customer_price')) {
$data['price'] = $this->currency->format($product_info['price'], $this->session->data['currency']);
}else {
$data['price'] = false;
}
person
Jagruti Metaliya
schedule
20.12.2017