View Single Post
  #6  
Old 08-22-2014, 04:15 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Change Attribute in Cart not working

Hi Phil!

I managed to replicate the problem and it is caused by the bug. I have already reported it to the team and it will be fixed in next versions.

Meanwhile, you can apply a workaround fix. Change the classes/XLite/Module/XC/ProductVariants/Controller/Customer/ChangeAttributeValues.php file and replace there the following line:

PHP Code:
if ($variant && $variant->getAmount()) { 

with the next one:
PHP Code:
if ($variant && $variant->getAvailableAmount()) { 

After you rebuild the cache the problem will be fixed.

Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote