Re: Editing cart contents -- esp products with attributes
OK. I went back and had another look at your site. If the item in the cart does not have any attributes then the edit cart mod won't see an item to be edited. It will see it as item being added as new. (If you consider it a little, thats right, because there is nothing to edit but the item quantity, which can be done in the cart itself.)
I could not find an item with attributes on the site. Are you testing items with attrubutes? If not, please create one and retest. If you are, please tell me which item I should be testing with.
Justin
Re: Editing cart contents -- esp products with attributes
I have encountered an interesting "problem" whereby I have attributes set for some of our products and on each list I have a "Select your colour" set as a default non selectable. If the user inadvertently chooses this and clicks update, the correct response is displayed saying "Please correct the following: On the Option for: Colour You picked an Invalid Selection: Select required Colour"
If the users then corrects the mistake by choosing a colour and clicking update the cart is emptied and takes the user back to the products page.
I am not too concerned about this personally, but it may to someone else.
Zen 1.3.8a
Re: Editing cart contents -- esp products with attributes
Zen Cart isn't designed to empty the cart but to keep you on the product _info page when adding a product with attributes where default and display only is used ...
If you are getting this odd behavior, it sounds like one or more files is not up to date ...
Re: Editing cart contents -- esp products with attributes
Quote:
Originally Posted by
Ajeh
Zen Cart isn't designed to empty the cart but to keep you on the product _info page when adding a product with attributes where default and display only is used ...
If you are getting this odd behavior, it sounds like one or more files is not up to date ...
Hi Ajeh
I agree entirely, it is very strange. I have the latest 1.3.8a fileset and what I believe to be the latest Edit cart mod. The site is not live yet but you are more than welcome to try it out for yourself.
http://d52803.u29.jswebconsole.co.uk/index.php
Re: Editing cart contents -- esp products with attributes
Agamic,
I just looked at your website and the Edit Cart seemed to function correctly.
I selected a plain tarp with no color choice and was able to add it to the cart and then edit it (different size).
Then I selected the "striped tarps", selected the size and did NOT select the color. I got the expected error message and REMAINED ON THE PRODUCT PAGE. I selected the color and it went to the cart as expected. Then I was able to edit BOTH the size and the color without problem.
Looks like you got it solved. :clap:
Re: Editing cart contents -- esp products with attributes
Quote:
Originally Posted by
mauryg
Agamic,
I just looked at your website and the Edit Cart seemed to function correctly.
I selected a plain tarp with no color choice and was able to add it to the cart and then edit it (different size).
Then I selected the "striped tarps", selected the size and did NOT select the color. I got the expected error message and REMAINED ON THE PRODUCT PAGE. I selected the color and it went to the cart as expected. Then I was able to edit BOTH the size and the color without problem.
Looks like you got it solved. :clap:
Hi thanks for testing. When you went back to edit the item did you select "Select required colour" and then click update, which is when the warning comes up saying you have not selected a colour, then go back and select a colour and click update and it is at that point the cart empties.
So to recap:
1/ Select a striped tarp choosing size and colour and add to cart.
2/ From the cart click on the stripe tarp item
3/ In colour or size choose the default which is select colour or select size and click update
4/ At this point you should have the warning about incorrect option.
5/ Go to the option that has the "select colour or size" and change it to something and click update.
6/ pooof - cart is empty and you are back to the shopping cart is empty page.
By the way this happens with all attributed products not just stripe tarps.
Re: Editing cart contents -- esp products with attributes
Actually I just tried and was able to verify it. I know why it occurs too.
When the user clicks Update Cart on the product page, the edit cart mod detects whether an item is being added to the cart / or edited. If it is being edited, it deletes the existing product, and then goes through the default "Add Product to Cart " process. Since an error occurs after the product has already been deleted, and before it has been added, the cart is emptied. Doooh.
I am sure I can work around it, but I am just very busy and do not know when I can get onto it. How soon till your shop goes live Agamic?
Re: Editing cart contents -- esp products with attributes
Quote:
Originally Posted by
justinhunt
Actually I just tried and was able to verify it. I know why it occurs too.
When the user clicks Update Cart on the product page, the edit cart mod detects whether an item is being added to the cart / or edited. If it is being edited, it deletes the existing product, and then goes through the default "Add Product to Cart " process. Since an error occurs after the product has already been deleted, and before it has been added, the cart is emptied. Doooh.
I am sure I can work around it, but I am just very busy and do not know when I can get onto it. How soon till your shop goes live Agamic?
Hi Justinhunt
Thanks for the quick response. I appreciate your efforts to fix the problem. The shop is due in a few weeks but to be honest I can live with this until you have time. I can't see a customer going through this cycle too often if ever.
Again many thanks
Re: Editing cart contents -- esp products with attributes
Justin, added the EDIT ORDERS to my site. Great feature by the way. When I click on the [click here to edit] it returns to the product_info page. However, it doesn't go into the edit mode.
I've tried to debug by putting an ECHO statement within that first IF statement that was added with your contrib. The button doesn't switch at the bottom to the UPDATE still shows ADD TO CART button.
Got any ideas what might be happening?
www.austincotton.com
Re: Editing cart contents -- esp products with attributes
You do not appear to have added attributes to your products yet.
Add some atttibutes to a product, then pretend you are a shopper and add that product to your cart. After that you should be able to edit that products options, by clicking on it in the cart.
Justin