Hi,
I have put the shopping cart in the left nav of my website. It appears fine when the option is set to always appear, but when I check "Hide block if cart is empty" the shopping cart never appears in the left nav, even when there is an item in the shopping cart.
Is this a known bug? Is there a way to fix this?
Thanks,
Comments
Comment #1
gordon commentedYes I know about this it is a problem with the ajax cart add. Just turn off the ajax and it will be ok.
Comment #2
gafir777 commentedHi Gordon,
Thanks for your answer. WHen you mention to turn off the ajax, what do you mean? I do not seem to be using any ajax for the e-commerce block. There is, indeed, a radio button for Ajax along with the Hide the Shopping cart when cart is empty, but this is the one that's selected, no other. I'm checking in all the administration pages of the module for something "ajax" but didn't find anything so far.
Thanks,
Comment #3
biwashingtonial commentedI think the problem is line 508 of
ec_cart.module. I don't have time to roll a patch tonight, but simply changingcount($item_count)to!$item_countdid the trick for me.Comment #4
gordon commentedI have applied the fix as noted.