简体   繁体   English

OpenCart Category.tpl编辑特定产品

[英]OpenCart Category.tpl edit a specific product

How can I add specific text to a product displayed on the Category.tpl 如何将特定文本添加到Category.tpl中显示的产品

using this setup 使用此设置

<?php if ($this->request->get['path'] == 65) { ?> per month <?php } ?>

I just don't know what attribute to use. 我只是不知道要使用什么属性。 I need to add prices manually to each product because in open cart I put their values to zero but have a required add on with the actual price of the item based on how long they would like the service. 我需要手动为每个产品添加价格,因为在打开的购物车中,我将其值设为零,但根据他们希望提供服务的时间,要求添加商品的实际价格。

Thanks so much Mark 非常感谢马克

Open /catalog/controller/product/category.php 打开/catalog/controller/product/category.php

Find this line 找到这条线

'price'       => $price,

change it to 更改为

'price'       => $price . ($category_id == 65 ? ' per month' : ''),

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM