-1

我想知道如何在 opencart 的价格之前添加文本?

我试图在目录/视图/主题/自定义主题/模板/产品/产品.tpl中修改以下代码

默认

<li class="product-price"><?php echo $price; ?></li>
<li class="price-old"><?php echo $price; ?></li>

修改后

<li class="product-price"><div class="custom-price">Price:</div><?php echo $price; ?></li>
<li class="price-old"><div class="custom-price">Price:</div><?php echo $price; ?></li>

它可以正常工作,但是当我选择尺寸或颜色等选项时,“价格:”文本将消失。

我的域名

如果这是一个重复的问题,我深表歉意。

4

1 回答 1

0

This product is listed as $1.00, I assume that's a mistake: http://ry-express.com/index.php?route=product/product&product_id=280

What do you mean it "disappears," like it literally is no longer visible?

Do you have visibility:hidden or display:none in your stylesheet for any formation of the custom-price class?

Default behavior of Opencart, that would not be occuring if you edit the template directly with text. There's either a stylesheet entry or perhaps Ajax/javascript on that field, also; that triggers the loss.

Do you have a link to a product directly where this happens?

于 2017-01-22T01:59:04.663 回答