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

前端 未结 7 1328
孤街浪徒
孤街浪徒 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.

提交回复
热议问题