无法让这个ocmod工作。我甚至付钱给某人去上班,但我开始认为他对opencart / php的了解并不像他说的那么多。
解析错误:语法错误,意外'{',期待'('在第367行的public_html / vqmod / vqcache / vq2-system_modification_catalog_controller_product_product.php
365-368行这是代码:
(take (n-1) zeroes) ++ [desired_nth_member] ++ (drop n zeroes)
以下是我正在编辑但无法使其工作的ocmod / vqmod文件的一部分:
$you_save = $this->currency->format($this->tax->calculate($product_info['price'], $product_info['tax_class_id'], $this->config->get('config_tax')) - $this->tax->calculate($discount['price'], $product_info['tax_class_id'], $this->config->get('config_tax')));
if ($product_info['price'] == 0) { $you_save_or = 0; }
else if { $you_save_or = round((($product_info['price'] - $discount['price']) / $product_info['price'] * 100)); } else
{ $text_you_discount = round($product_info['price'] - ($product_info['price']* 0.15));}