Author Topic: [solved] Probably typo bug in cart.php  (Read 975 times)

mb000000

  • Beginner
  • *
  • Posts: 32
[solved] Probably typo bug in cart.php
« 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:

Code: [Select]
if($productsleft>0 and $stockhandle='disableadd'){
And should *probably* be:

Code: [Select]
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

  • Nikos
  • Global Moderator
  • Full Member
  • *
  • Posts: 2369
Re: Probably typo bug in cart.php
« Reply #1 on: October 17, 2012, 21:20:38 pm »
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!