为什么捆绑产品的单价显示错误? [英] Why is the Unit Price showing up wrong for Bundled Products?
问题描述
看看这张照片.单价基本上是所有价格之一,但是这会使用户感到困惑.是否可以在此处将产品的实际成本显示为单位成本?
Take a look at this picture. The Unit price is basically one of everything, but that is confusing to the users. Is there a work around for displaying the actual cost of the product as the unit cost here:
我正在运行magento 1.4.0.1
I'm running magento 1.4.0.1
推荐答案
可能是因为这是旧购物车所做的,或者某人创建了更改功能的自定义项.
Probably because that's what the old cart did, or someone's created a customization that's altered the functionality.
-
找到负责渲染购物车行的
phtml
模板
删除呈现当前价格的echo
调用
Remove the echo
call that's rendering the current price
将其替换为输出总计的代码,不乘以数量,或请确保按数量重新分配以获得单价 p>
Replace it with the code that's outputting the total, without multiplying by quantity, or making sure to redivide by the quantity to get the unit price
或者,只需找到呈现单价列的phtml
模板并将其删除.避免混乱
Alternately, just find the phtml
template that's rendering the Unit Price column and remove it. Confusion avoided
(如果需要说明,您将添加一个自定义主题phtml
文件以替换基本模板中的文件)
(in case it needs to be said, you'll be adding a custom theme phtml
file to replace the file in the base template)
这篇关于为什么捆绑产品的单价显示错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!