Forums / Bug Reports / [DONE] Bug in Shopping cart?

[DONE] Bug in Shopping cart?

Locked

Views: 5,396

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
19 Jul 2006, 9:41 PM
#1
beez avatar

beez

Zen Follower

Join Date:
Sep 2005
Location:
Malmö, Sweden
Posts:
117
Plugin Contributions:
4

[DONE] Bug in Shopping cart?

I have one product with no Quantity Boxes and and with in my shopping cart. When I is in the Shopping Cart and changes the quantity for the product with qty. box (obviously) the other products is removed from the cart...

I have tried to change the Configuration->Stock->Show Shopping Cart - Update Cart Button Location, but it's the same with all settings... And I've tried to search the forum, but found just the related bug for 1.3.0.1 and were supposed to have been eliminated...

I'm using a fresh install of 1.3.0.2 and a fresh MySQL database

I'm guessing this must be a bug. Hope you can fix it!

Focus dammit, I'm trying to focus!

SweetFabrik - True believer of Zen Cart!

http://www.last.fm/user/beez/

19 Jul 2006, 9:43 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: [DONE] Bug in Shopping cart?

The URL and step by step of how to reproduce this?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

19 Jul 2006, 9:56 PM
#3
beez avatar

beez

Zen Follower

Join Date:
Sep 2005
Location:
Malmö, Sweden
Posts:
117
Plugin Contributions:
4

Re: [DONE] Bug in Shopping cart?

It's on my testing server http://godisapa.dyndns.org/zc/

Put Product 1 in Category 1 in the cart and 1 Product 2 in Category 2 in the cart, then go to the Shopping Cart and change the quantity of Product 2 to "2" and hit enter or click the update button.

Is it something I've done wrong?

Focus dammit, I'm trying to focus!

SweetFabrik - True believer of Zen Cart!

http://www.last.fm/user/beez/

19 Jul 2006, 10:27 PM
#4
beez avatar

beez

Zen Follower

Join Date:
Sep 2005
Location:
Malmö, Sweden
Posts:
117
Plugin Contributions:
4

Re: [DONE] Bug in Shopping cart?

If you wants to reproduce it on your own. I have one product with No Qty. box and one with Qty. box. Then put them both in the Shopping Cart and change the quantity and press update or hit enter.

My two products are as follows:
Name: Product 1
Free: No
Call for Price: No
Priced by attribute: No (have also tested with Yes)
Virtual: Yes
Free Shipping: No
Quantity Box Shows: No
Quantity: 0

Name: Product 2
Free: No
Call for Price: No
Priced by attribute: No (have also tested with Yes)
Virtual: Yes
Free Shipping: No
Quantity Box Shows: Yes
Quantity: 0

The rest is at their default values. And I've disabled the settings that Check stock level and Subtract stock and Show Sold Out Image in place of Add to Cart to "0" and Products status in Catalog when out of stock should be set to "1"

Focus dammit, I'm trying to focus!

SweetFabrik - True believer of Zen Cart!

http://www.last.fm/user/beez/

19 Jul 2006, 11:51 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: [DONE] Bug in Shopping cart?

That is an odd one ...

It also is a bug ... :cry:

I also noticed if you reverse the order ... the 1st one is always the one to get blown away ...

May be a bit to hunt this bad boy down ... thanks for reporting it ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Jul 2006, 12:06 AM
#6
beez avatar

beez

Zen Follower

Join Date:
Sep 2005
Location:
Malmö, Sweden
Posts:
117
Plugin Contributions:
4

Re: [DONE] Bug in Shopping cart?

Ok, good... or, eh...

Good hunting! Thanx!

Focus dammit, I'm trying to focus!

SweetFabrik - True believer of Zen Cart!

http://www.last.fm/user/beez/

20 Jul 2006, 12:41 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: [DONE] Bug in Shopping cart?

And the fix is ...

Edit the file:
/includes/modules/pages/shopping_cart/header_php.php

Find the line approximately line 122:

  $showFixedQuantityAmount = $products[$i]['quantity'] . zen_draw_hidden_Field('products_id[]', $products[$i]['id']) . zen_draw_hidden_Field('cart_quantity[]', 1);

And change to read:

  $showFixedQuantityAmount = $products[$i]['quantity'] . zen_draw_hidden_Field('cart_quantity[]', $products[$i]['quantity']);

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Jul 2006, 1:00 AM
#8
beez avatar

beez

Zen Follower

Join Date:
Sep 2005
Location:
Malmö, Sweden
Posts:
117
Plugin Contributions:
4

Re: [DONE] Bug in Shopping cart?

That were the fix indeed! You are are an Angel, and a fast one, Thanx!

Focus dammit, I'm trying to focus!

SweetFabrik - True believer of Zen Cart!

http://www.last.fm/user/beez/

24 Aug 2006, 11:06 PM
#9
ichigo avatar

ichigo

New Zenner

Join Date:
Aug 2006
Posts:
9
Plugin Contributions:
0

Re: [DONE] Bug in Shopping cart?

Yay, this helped my annoying problem! Thank you!

24 Aug 2006, 11:18 PM
#10
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Re: [DONE] Bug in Shopping cart?

And mine - thanks!

27 Aug 2006, 8:19 AM
#11
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

Re: [DONE] Bug in Shopping cart?

Hmm not helped my problem though.

after adding to cart normal products with quantity boxes
then adding virtual products with buy now buttons and no quantity boxes shows the correct quantities in the shopping cart, but pressing the update button clears the last added virtual product that doesnt use a quantity box.

My two products are as follows:
Name: Product 1
Free: No
Call for Price: No
Priced by attribute: No (have also tested with Yes)
Virtual: No
Free Shipping: No
Quantity Box Shows: Yes
Quantity: 2

Name: Product 2
Free: No
Call for Price: No
Priced by attribute: No (have also tested with Yes)
Virtual: Yes
Free Shipping: Yes
Quantity Box Shows: No
Quantity: 1

Steve

28 Aug 2006, 12:00 AM
#12
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

Re: [DONE] Bug in Shopping cart?

Tried it all again, and modified the file that was detailed earlier in this post.. but still loses last item added to cart that doesnt have a quantity box, when updated...

my fix..... all items have a quantity box now... and works properly...

Steve

29 Aug 2006, 11:20 AM
#13
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Re: [DONE] Bug in Shopping cart?

Hi Steve

My problem was the same as yours - are you sure you uploaded the file as header_php.php. I made a mistake first and uploaded it as header.php but when I sorted that out it works perfectly. using a mix of qty and no qty boxes as you want.

30 Aug 2006, 12:08 PM
#14
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

Re: [DONE] Bug in Shopping cart?

Hi, thought I'd have another go.... this has gotta be a silly mistake somewhere, but... gotta go to work.. did try again, checked proper file, etc.. but did find the following line in the generated page in the shopping cart block....

<input type="hidden" name="products_id[]" value="8" /><input type="hidden" name="cart_quantity[]" value="1" />

which can't be right... will look at it again in a couple of days..

thanks for your help..

Steve

30 Aug 2006, 11:14 PM
#15
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

Re: [DONE] Bug in Shopping cart?

Ok.. now its working with the suggested alteration... the problem was that i had the original file still in the folder with the name header_php_OLD.php

shrugs

All sorted now.

Thanks.

Steve

31 Aug 2006, 8:50 AM
#16
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Re: [DONE] Bug in Shopping cart?

I've been caught like this in the past! Glad you got it working!