【发布时间】:2015-01-01 02:09:33
【问题描述】:
使用目录价格规则,我试图表明在查看购物车页面后,特定产品有折扣。目前,Magento 在查看购物车时停止显示“划掉”的价格,因此除非他们返回产品/目录页面,否则他们似乎没有收到折扣价。
相关区域位于 103 号线附近:
模板 > 结帐 > 购物车 > 商品 > default.phtml
在此部分中,在当前价格旁边显示原始价格的正确方法是什么?我serioulsly 不知道它是如何工作的,并且在网上找不到任何关于此的内容,因为它与 View.phtml 中的任何设置都大不相同
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
<?php else: ?>
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
<?php endif; ?>
由于我从备用 StackExchange 网站得到的随机/低响应,我也在此处发布了这个问题:https://magento.stackexchange.com/questions/42494/show-original-price-in-cart 并将相应地更新我的问题。谢谢!
【问题讨论】:
标签: php magento e-commerce cart