If this is your first visit, check our documentation. To post, register or login.
Forums / Bug Reports / [DONE] ZC 1.3.0.1 can not remove products from cart.

[DONE] ZC 1.3.0.1 can not remove products from cart.

Locked

Started by tez on 13 Jun 2006, 11:25 AM · Views: 4,604

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
13 Jun 2006, 11:25 AM
#1
tez avatar

tez

New Zenner

Join Date:
Jun 2006
Posts:
56
Plugin Contributions:
0

[DONE] ZC 1.3.0.1 can not remove products from cart.

Not sure if I updated 100% or not, my site is very heavily customised so it is nearly impossible to carry through all bug fixes through all the cascaded template overrides.

When I try to update shopping cart "view cart" product totals there is no change to product counts in the cart and the Checkbox on the shopping cart to Remove Product From Cart doesn't have any text near it, it seems to do nothing. Can't really give a link to show as it is on a test server.

So it means customers can not remove products from cart, only add to.

Php 4.4.2
mySQL 5.0.16

13 Jun 2006, 5:40 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: [DONE] ZC 1.3.0.1 can not remove products from cart.

I can't duplicate this on a 1.3.0.1 setup.
I suspect the problem is related to code not fully upgraded in the template file:
includes/templates/YOURTEMPLATE/templates/tpl_shopping_cart_default.php

Perhaps you can run WinMerge or another comparison tool to check that the file has been upgraded completely.
Failing that, please provide a URL so we can look at it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Jun 2006, 1:45 AM
#3
tez avatar

tez

New Zenner

Join Date:
Jun 2006
Posts:
56
Plugin Contributions:
0

Re: [DONE] ZC 1.3.0.1 can not remove products from cart.

my site does not override that template (yet), it is using the one from the 1.3.0.1 download.

This is the URI i mean, index.php?main_page=shopping_cart

Any other templates which may be involved here?
I will PM the link.

14 Jun 2006, 3:27 AM
#4
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: [DONE] ZC 1.3.0.1 can not remove products from cart.

Please post your URL pointing to your techsupp.php file. It might be possible that you might of had forgot to set full permision on your images folder. :wink2:

(Note: You can find this file under your zc_install folder from the ZIP package you downloaded from this site. Then, upload it to your server).

14 Jun 2006, 4:45 AM
#5
tez avatar

tez

New Zenner

Join Date:
Jun 2006
Posts:
56
Plugin Contributions:
0

Re: [DONE] ZC 1.3.0.1 can not remove products from cart.

What has the images folder got to do with the shopping cart process?
I checked my supp.php and it only showed two unwritable admin dirs which I've fixed up.

14 Jun 2006, 4:58 AM
#6
tez avatar

tez

New Zenner

Join Date:
Jun 2006
Posts:
56
Plugin Contributions:
0

Re: [DONE] ZC 1.3.0.1 can not remove products from cart.

I do notice that Shopping Cart contents page source has this for each item,
name="cart_quantity[]"

shouldn't it appear as something like
name="cart_quantity['78']"

?

same for the delete button, only has the array sign []

14 Jun 2006, 5:12 AM
#7
tez avatar

tez

New Zenner

Join Date:
Jun 2006
Posts:
56
Plugin Contributions:
0

Re: [DONE] ZC 1.3.0.1 can not remove products from cart.

... and if I enable the Product Delete image I can delete products from cart that way, works fine. Just the two methods by using form fields are not working, they dont seem to have any ID in the form which it should need yeah?

14 Jun 2006, 5:23 AM
#8
tez avatar

tez

New Zenner

Join Date:
Jun 2006
Posts:
56
Plugin Contributions:
0

Re: [DONE] ZC 1.3.0.1 can not remove products from cart.

wow quardruple post!.

okay it looks like I am missing this code in the shopping cart checkout page

input type="hidden" name="products_id[]" value="x"

Anyone know where I look to fix that?

14 Jun 2006, 6:45 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: [DONE] ZC 1.3.0.1 can not remove products from cart.

May I suggest you rework the template to use the trash button/icon instead of the checkbox? There are built-in switches in the unmodified template to handle display/non-display of the various components.> Anyone know where I look to fix that?Yes - the original tpl_shopping_cart_default.php template file from the v1.3.0.1 download.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Jun 2006, 6:48 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: [DONE] ZC 1.3.0.1 can not remove products from cart.

You also probably will want to edit the text from your language files which is displaying this on your shopping cart page:> You may want to add some instructions for using the shopping cart here. (defined in includes/languages/english/shopping_cart.php)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Jun 2006, 6:55 AM
#11
tez avatar

tez

New Zenner

Join Date:
Jun 2006
Posts:
56
Plugin Contributions:
0

Re: [DONE] ZC 1.3.0.1 can not remove products from cart.

Already am using the defaults for both of those files.
Maybe I messed with the hidden form fields function..

16 Jun 2006, 7:12 PM
#12
lovere avatar

lovere

Zen Follower

Join Date:
Jul 2004
Location:
Nevada City, CA
Posts:
95
Plugin Contributions:
0

Re: [DONE] ZC 1.3.0.1 can not remove products from cart.

DrByte:

May I suggest you rework the template to use the trash button/icon instead of the checkbox?

Where is this found in the admin?

Thanks