Php Magento-在购物车模板中显示原始价格
使用目录价格规则,我试图显示在查看购物车页面时,对特定产品应用了折扣。目前,Magento在查看购物车时不再显示“划掉的”价格,因此,除非他们返回到产品/目录页面,否则他们似乎没有收到折扣价格 该区域位于103号线附近: 模板>签出>购物车>项目>默认值.phtml 在本节中,在当前价格旁边显示原始价格的正确方式是什么?我真的不知道它是如何工作的,在网上也找不到与此相关的任何东西,因为它的设置与任何inside View.phtml都大不相同Php Magento-在购物车模板中显示原始价格,php,magento,e-commerce,cart,Php,Magento,E Commerce,Cart,使用目录价格规则,我试图显示在查看购物车页面时,对特定产品应用了折扣。目前,Magento在查看购物车时不再显示“划掉的”价格,因此,除非他们返回到产品/目录页面,否则他们似乎没有收到折扣价格 该区域位于103号线附近: 模板>签出>购物车>项目>默认值.phtml 在本节中,在当前价格旁边显示原始价格的正确方式是什么?我真的不知道它是如何工作的,在网上也找不到与此相关的任何东西,因为它的设置与任何inside View.phtml都大不相同 <?php if (Mage::helper(
<?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网站得到的回复随机/低,我也在这里发布了这个问题:
并将相应地更新我的问题。谢谢 您可以尝试使用
$\u item->getProduct()->getPrice()
获取原始价格
<?php echo $this->helper('checkout')->formatPrice($_item->getProduct()->getPrice()) ?>
您可以尝试使用
$\u item->getProduct()->getPrice()
获取原始价格
<?php echo $this->helper('checkout')->formatPrice($_item->getProduct()->getPrice()) ?>
您可以尝试使用
$\u item->getProduct()->getPrice()
获取原始价格
<?php echo $this->helper('checkout')->formatPrice($_item->getProduct()->getPrice()) ?>
您可以尝试使用
$\u item->getProduct()->getPrice()
获取原始价格
<?php echo $this->helper('checkout')->formatPrice($_item->getProduct()->getPrice()) ?>