Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Can’t add items to cart after upgrade to 1.7
 
sclarson
Jr. Member
 
Total Posts:  1
Joined:  2012-07-17
 

I’ve dropped out the custom theme we had for :
frontend/default/default/template/checkout/cart/item/default.phtml
frontend/default/default/template/catalog/product/list.phtml

When I first reverted to list it was broken, unable to call

$this->helper('catalog/image')->init($_product,'small_image')->resize(135135);
which caused silent template failure.

Changing that line to

$this->getSmallImage();
resolved that issue.

Now adding an item to the cart gives me a success message, but

foreach($this->getItems() as $_item)
never causes a loop iteration to occur.

Why would I get a success message but not get any items to loop over?

 
Magento Community Magento Community
Magento Community
Magento Community
 
GoMageTeam
Guru
 
Avatar
Total Posts:  356
Joined:  2013-01-13
Warsaw, Poland
 

Hello,

Unfortunately, the information is not enough in order to understand th eissue properly. Could you, please, tell us what doesn’t work and what you have disabled exactly.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top