News:

Support the VirtueMart project and become a member

Main Menu

[solved] Probably typo bug in cart.php

Started by mb000000, October 17, 2012, 14:05:11 PM

Previous topic - Next topic

mb000000

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

bytelord

Hello,

Thanks for that. Dev team fixed.

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!