Magento - How to get cart items total in header.phtml

前端 未结 7 1297
孤街浪徒
孤街浪徒 2021-02-05 12:11

I am using Magento eCommerce and I have modified my header.phtml via the Blank template. Code, this is my code but it shows blank.

 

        
相关标签:
7条回答
  • 2021-02-05 12:53

    When linking to a cart, you should really use Mage::helper('checkout/cart')->getCartUrl(). The example given would not work if your site is hosted in a sub-domain.

    0 讨论(0)
提交回复
热议问题