我需要你的帮助,现在在商店设置价格含税!所以没关系。但是当客户登录时,我只需要在产品页面和类别中免税。我怎样才能做到这一点?谢谢!
你好@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;
}