如何将特定文本添加到Category.tpl
上显示的产品中使用此设置
<?php if ($this->request->get['path'] == 65) { ?> per month <?php } ?>
我只是不知道要使用什么属性。 我需要手动为每个产品添加价格,因为在开放式购物车中我将其值设置为零,但根据他们希望服务的时间长度,根据项目的实际价格进行必要的添加。
非常感谢 标记
答案 0 :(得分:0)
打开/catalog/controller/product/category.php
找到这一行
'price' => $price,
将其更改为
'price' => $price . ($category_id == 65 ? ' per month' : ''),