| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Change Attribute in Cart not working | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Change Attribute in Cart not working
When in the shopping cart, I select to "Change attributes" of a product and a window pops up which lets me select a different attribute from a dropdown. When I select "Change", I get a message as follows:
"Product with selected attribute value(s) is not available or out of stock. Please select other."
__________________
XC 5.1.4 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Change Attribute in Cart not working
Hi!
Do I understand you correctly the product with chosen attributes on cart page is actually in stock? If so, could you please send me the snapshot of attributes configuration for the problem product? Thank you. Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#3
|
|||||||
|
|||||||
Re: Change Attribute in Cart not working
Problem occurs for any product I have configured to have variants.
The functionality seems to work fine when I am on a Product Details page. On that page, I can select different variants and the SKU and color changes appropriately. I can add the product variant to the cart fine. I can then go to the cart and, if I want, check out fine. However, when I go to the cart and select "Change attributes", a pop-up appears where I can select the new attribute from a drop-down. So far, so good. Now, the problem occurs when I select the CHANGE button to apply the variant change. At that time, I get an error message "Product with selected attribute value(s) is not available or out of stock. Please select other." As described above, product is in stock and can be selected fine on the Product Details page. Issue seems to occur on the Cart page.
__________________
XC 5.1.4 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Change Attribute in Cart not working
Hi!
Can you please send me a link to the product that has this problem? You can pm it, if necessary. Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#5
|
|||||||
|
|||||||
Re: Change Attribute in Cart not working
PM sent with login info.
__________________
XC 5.1.4 |
|||||||
#6
|
|||||||||
|
|||||||||
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:
with the next one: PHP Code:
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! |
|||||||||
#7
|
|||||||
|
|||||||
Re: Change Attribute in Cart not working
Thank you Tony, your fixed took care of that bug.
__________________
XC 5.1.4 |
|||||||
#8
|
|||||||||
|
|||||||||
Re: Change Attribute in Cart not working
Happy to hear that!
Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
|||
X-Cart forums © 2001-2020
|