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

前端 未结 7 1316
孤街浪徒
孤街浪徒 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:49

    getItemsCount(); echo $_cartQty; ?>

    thats all you need for 1.7 if your already running the mage:app which you can't do anything without really.

    furthermore, this only shows "item" count, not quantity.

提交回复
热议问题