更新时间:2023-11-30 10:53:46
以下是您的快速解决方案.
Here is quick solution for you.
您可以使用产品的费用"字段来定义零售价高于您的价格的百分比.默认情况下,费用"字段用作您为产品付款的金额的备忘,并且在前端的任何地方都不会使用.
You can use a 'cost' field of the product to define the percentage by which the retail price is higher then your price. By default 'cost' field is used as a memo of how much you paid for the product and is not used anywhere at the front-end.
然后转到主题的template/template/catalog/product/view/tierprices.phtml,并在$_product = $this->getProduct();
行之后添加以下行:
Then go to templates/template/catalog/product/view/tierprices.phtml of your theme and add the following lines after $_product = $this->getProduct();
line:
$multiplier = $_product->getData('cost');
$multiplier = $multiplier ? $multiplier : 1;
以及<?php endif; ?>
和<?php if (!$this->getInGrouped()): ?>
之间的以下行:
Retail price: <?php echo $_coreHelper->currency($_price['price']*$multiplier, true, false) ?>
我确信您将能够根据需要设置样式.如果有不清楚的地方,请告诉我.
I'm sure you will be able to style it as you wish. Please let me know if something is unclear.