VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: mb000000 on October 17, 2012, 14:05:11 PM

Title: [solved] Probably typo bug in cart.php
Post by: mb000000 on October 17, 2012, 14:05:11 PM
VM: 2.0.12
Joomla: 1.5.26 (yes, I know it's out of date - that's another problem entirely)

I believe there is a typo bug in line 622 of (front end) helpers/cart.php which is currently:

if($productsleft>0 and $stockhandle='disableadd'){

And should *probably* be:

if($productsleft>0 and $stockhandle=='disableadd'){

I'd expect the side effect to be strange handling of adding products to the cart when products are out of stock (depending on the desired configuration setting) - perhaps this is consistent with some people's otherwise unexplained VM behaviour.

Mark
Title: Re: Probably typo bug in cart.php
Post by: bytelord on October 17, 2012, 21:20:38 PM
Hello,

Thanks for that. Dev team fixed.

Regards