Magento – Edit ‘Shopping Cart is Empty’ page

cartmagento-1.9

I am trying to edit Shopping Cart is Empty page. But I am unable to . I am editing checkout/cart/noItems.phtml in template directory. I tried to editby writing a "test" in html and also echoing via php, but nothing shows in front end

Best Answer

You're editing the right file. I have a few suggestions.

  1. Make sure you clear the caches every time you modify phtml files.
  2. Enable Template Path Hints in System > Configuration > Developer. Change to a store view to see this field. Go back to empty cart page and you should see the right path.
  3. If 2 is not an option (e.g. you're on a live site), check System > Configuration > Design. See Current Package Name and Templates fields. You have to edit app/design/frontend/[Current Package Name]/[Templates]/checkout/cart/noItems.phtml. If Templates field was empty replace it by default.

Hope it helps.