Zen Cart Logo
Forums / All Other Contributions/Addons / Editing cart contents -- esp products with attributes

Editing cart contents -- esp products with attributes

Views: 24,165

Results 21 to 40 of 166
16 Jan 2008, 6:34 PM
#21
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

Editing cart contents -- esp products with attributes

Quick update: Tested problem on unmodded 1.38a version and return to product display from cart worked fine so it was NOT the upgrade from 1.37 to 1.38a that caused the problem

16 Jan 2008, 9:33 PM
#22
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

Re: Editing cart contents -- esp products with attributes

Disregard my last message. The 1.38a version without the Edit Cart mod did NOT work.
This problem gets wierder!
I reread the forum and fixed the missing "[click to edit]".
I am using a local WAMP server running Apache 2.0.58, PHP 5.14 and MySQL 5.0.22. I have several copies of the shop installed for testing, each with its own database. There is a copy of the shop on the remote server behind a firewall.
On the remote server running ZC 1.38a, clicking on the product image/name in the shopping cart returns you to the product listing as expected. On the local server an old copy of the shop running ZC 1.37 does the same. The copies of the shop running ZC 1.38a on the local server give the Forbidden Access error message. ALL of the ZC 1.38a versions are running Ultimate SEO mod along with some others.
I copied the working copy of the shop from the remote server to a new folder on the local server, adjusted the config.php and the .htaccess files, imported the SQL database from the remote to a new db on the local server and ran fix_cache_key.php. Forbidden Access from the cart. :frusty:

HELP!

16 Jan 2008, 10:17 PM
#23
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

Re: Editing cart contents -- esp products with attributes

For all PRACTICAL purposes, the problem is "fixed".
I bit the bullet and installed the Edit Cart mod directly to the remote server.
It works perfectly. So the problem is "fixed" but NOT "solved". :blush:
If anyone has any ideas as to why the WAMP server is misbehaving, I would appreciate them.

17 Jan 2008, 2:38 AM
#24
justinhunt avatar

justinhunt

New Zenner

Join Date:
Sep 2007
Posts:
77
Plugin Contributions:
1

Re: Editing cart contents -- esp products with attributes

I am glad you "got out of the hole" at least on your production server.

Just to reiterate, the "[click to edit options]" is just text I added to my, also heavily modded, shopping cart page. It is not actually necessary to add that. A click on the product name will take you back to edit the options regardless. I only added that to labor the point for users of my site. But I did not think it was worth making "edit cart" users change their tpl_shopping_cart page.

I have been very busy and have not had a chance to update the mod for ages. But there are a few tweaks that people have requested, so will try to do do soon.

As for your other error. It is very mysterious. Anything in your logs?

17 Jan 2008, 8:29 AM
#25
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

Re: Editing cart contents -- esp products with attributes

NO, nothing in the logs on the WAMP server.
I noted that the problem with the link was what I presumed was a session number attached to the end of the URL for return to the product page.
For example, the product page for the product which was added to the cart was localhost/newzen/embark-p-546.html but the link was trying to load
localhost/newzen/embark-p-546:b77b08f707992a5d739bd25dcf2d0d77.html.
I noted that tpl_shopping_cart_default.php uses $product['linkProductsName'] for the link from the product name and this produces the extended URL whereas the "Continue Shopping" button further down uses zen_back_link() which takes me back to the product page. Of course that only works if I want to edit the product immediately after I've added it. And the problem occurs even when the Edit Cart mod to tpl_product_info_display.php is NOT installed. So clearly it is NOT a problem with Edit Cart.
I just can't figure why it works on the remote server and NOT on the local WAMP server. Unless the problem was never tested before and the differences in the server configurations are the problem:
Remote server (GoDadddy): ZC: 1.38a Apache: 1.3.33 PHP: 4.3.11 MySQL: 5.0.45
Local WAMP server: ZC: 1.38a Apache: 2.0.58 PHP 5.1.4 MySQL: 5.0.22
I appreciate your mod and interest.
Let me know if you have any further thoughts.

17 Jan 2008, 9:42 AM
#26
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

Re: Editing cart contents -- esp products with attributes

Justin,
One last piece of information. Turning OFF the Ultimate SEO mod allows the shopping cart link to function properly on the WAMP server. (But it works OK with the SEO mod ON on the GoDaddy server)
Looks like I will have to search in that thread and if I don't find something I'll post the problem there. :blink:

17 Jan 2008, 12:42 PM
#27
justinhunt avatar

justinhunt

New Zenner

Join Date:
Sep 2007
Posts:
77
Plugin Contributions:
1

Re: Editing cart contents -- esp products with attributes

Ah, well spotted. ... and good luck.

Justin

26 Jan 2008, 5:44 AM
#28
mtnvision avatar

mtnvision

New Zenner

Join Date:
Dec 2007
Posts:
27
Plugin Contributions:
0

Re: Editing cart contents -- esp products with attributes

I have no idea why this is not working for me.... seems so straight forward.

I used FTP to upload the includes folder to my root folder exactly as instructed. I made on changes whatsoever. Did I miss something? My products will have a LOT of attributes so I believe this is an important mod.

Any advice is appreciated.
Zen Cart v1.3.8

26 Jan 2008, 9:14 AM
#29
justinhunt avatar

justinhunt

New Zenner

Join Date:
Sep 2007
Posts:
77
Plugin Contributions:
1

Re: Editing cart contents -- esp products with attributes

Hi MtnVision

Did you change the all folders named TEMPLATE_NAME to your actual template name ("SophyBlue" ) before you uploaded all the files?

That would be the most obvious thing to check. The mod does not have very many files, so I would check, one by one, that they have all been uploaded, and that they are in the right places.

Justin

26 Jan 2008, 2:31 PM
#30
mtnvision avatar

mtnvision

New Zenner

Join Date:
Dec 2007
Posts:
27
Plugin Contributions:
0

Re: Editing cart contents -- esp products with attributes

Yes I did make the MY_TEMPLATE folder name changes. I'm sorry about that comment but I meant code changes. Yes I have reviewed the directory structure & made an observation that the template I use SophyBlue is not 'sophyblue' in lower case so that correction was made.

But still no worky. :unsure:

26 Jan 2008, 3:10 PM
#31
justinhunt avatar

justinhunt

New Zenner

Join Date:
Sep 2007
Posts:
77
Plugin Contributions:
1

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

29 Jan 2008, 9:34 AM
#32
agamic avatar

agamic

New Zenner

Join Date:
Apr 2007
Posts:
24
Plugin Contributions:
0

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

29 Jan 2008, 5:07 PM
#33
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ...

31 Jan 2008, 8:35 AM
#34
agamic avatar

agamic

New Zenner

Join Date:
Apr 2007
Posts:
24
Plugin Contributions:
0

Re: Editing cart contents -- esp products with attributes

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

31 Jan 2008, 9:34 AM
#35
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

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:

31 Jan 2008, 1:47 PM
#36
agamic avatar

agamic

New Zenner

Join Date:
Apr 2007
Posts:
24
Plugin Contributions:
0

Re: Editing cart contents -- esp products with attributes

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.

31 Jan 2008, 2:03 PM
#37
justinhunt avatar

justinhunt

New Zenner

Join Date:
Sep 2007
Posts:
77
Plugin Contributions:
1

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?

31 Jan 2008, 3:08 PM
#38
agamic avatar

agamic

New Zenner

Join Date:
Apr 2007
Posts:
24
Plugin Contributions:
0

Re: Editing cart contents -- esp products with attributes

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

19 Feb 2008, 10:28 PM
#39
hypnos avatar

hypnos

New Zenner

Join Date:
Dec 2007
Location:
Texas
Posts:
16
Plugin Contributions:
0

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?
https://www.austincotton.com

19 Feb 2008, 11:44 PM
#40
justinhunt avatar

justinhunt

New Zenner

Join Date:
Sep 2007
Posts:
77
Plugin Contributions:
1

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