Forums / Templates, Stylesheets, Page Layout / Update cart Quantity

Update cart Quantity

Locked

Views: 5,929

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
10 May 2007, 2:09 AM
#1
red8ii8 avatar

red8ii8

New Zenner

Join Date:
Feb 2007
Posts:
38
Plugin Contributions:
0

Update cart Quantity

I stumbled on a curious problem. I can't get the item quantities to update in the cart. i tried uploading a fresh copy of tpl_shopping_cart_default.php but it didn't seem to help. Switching to classic has the same problem. I haven't monkeyed around too much in there, where might the culprit be hiding?

Thanks for the guidance,

jessica

www.dogwerksonline.com Try adding "A Classic White" from the strands section which has 100 units in stock and then updating the quantitiy on the shopping cart page.

10 May 2007, 2:31 AM
#2
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Update cart Quantity

Did you try logging into the Admin and going to:
Configuration > Product Info >Product Quantity Box Status and making sure it is "on"?

Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information

10 May 2007, 2:55 AM
#3
red8ii8 avatar

red8ii8

New Zenner

Join Date:
Feb 2007
Posts:
38
Plugin Contributions:
0

Re: Update cart Quantity

If you mean this line:

Product Quantity Box Status - Adding New Products

Its already set to 1 (on)

10 May 2007, 3:25 AM
#4
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Update cart Quantity

Yes. Have you also looked at the way each product is setup (from within the Admin)?

I have a demo cart running, and the one product that does not allow me to "add to the quantity" from the shopping cart page is setup as such (to get to this section you will need to go to the actual product in question and edit it. From the edit screen, scroll down and you will find the section that looks like the following:


Product Priced by Attributes: Yes No
Tax Class:
Products Price (Net):
Products Price (Gross):
Product is Virtual: Yes, Skip Shipping Address No, Shipping Address Required
Always Free Shipping: Yes, Always Free Shipping No, Normal Shipping Rules
Special, Product/Download Combo Requires a Shipping Address
Products Quantity Box Shows: Yes, Show Quantity Box No, Do not show Quantity Box
Warning: Does not show Quantity Box, Default to Qty 1

Make sure you have selected "Yes" (see above red highlight) for "Product Quantity Box Shows.

If that is set to "no", then the default qty will be set to 1 and the product will not be able to be updated (quantity wise) by the customer when checking out.

Be sure to check your "buy now" option as well. I suspect that you have it set to default to 1 as the qty (which as stated above would be one cause of the issue you are experiencing).

Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information

10 May 2007, 5:17 AM
#5
red8ii8 avatar

red8ii8

New Zenner

Join Date:
Feb 2007
Posts:
38
Plugin Contributions:
0

Re: Update cart Quantity

Ewwww! Yucko, I can't allow people to update their cart quantity without ALSO showing that quantity box on my category page OR turning off the prices or somehow disabling the update quantity button on the cart page (its silly to have an update cart button with instructions and not be able to use it)

That's kind of a bummer. I'm getting way too good at chopping up code :)

Thanks for the direction!

14 Jun 2007, 3:28 PM
#6
tatiana avatar

tatiana

New Zenner

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

Re: Update cart Quantity

Is there a way to do this universally? I have around 2000 products. Do you mean I have to manually correct each one? help!

:shocking:

25 Oct 2007, 7:20 AM
#7
johnswan avatar

johnswan

New Zenner

Join Date:
Feb 2007
Posts:
1
Plugin Contributions:
0

Re: Update cart Quantity

Just found what I think is a solution to this problem. I wanted to allow customers to edit the quantity box in their shopping cart, disregarding the fact that I only allow them to add one at a time from the product info page and product listing pages.

The solution was found by commenting out some lines in templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php

At around line 67 you will find the following:

<?php
  if ($product['flagShowFixedQuantity']) {
    echo $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
  } else {
    echo $product['quantityField'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
  }
?>
```Delete or comment out the if statement and what would be processed if the statement was true. We want to leave the code after the else statement. This will ensure that the quantity field will always be update-able in the shopping cart page. I just commented the said lines out so that reversal is easy:

<?php // if ($product['flagShowFixedQuantity']) { // echo $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits']; // } else { echo $product['quantityField'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits']; // } ?>

Ties, Cufflinks, Skinny Ties and more at:
**Tieworld.com.au**

4 Apr 2008, 10:12 PM
#8
htsean avatar

htsean

New Zenner

Join Date:
Mar 2008
Posts:
50
Plugin Contributions:
0

Re: Update cart Quantity

Thank you! I just came across this same problem of products with 'Show Products Quantity Box' set to OFF not allowing the Qty box to be editable in the shopping cart.

This custom code did the trick. It works great with the product Attribute Grid mod now, since that mod uses it's own quantity boxes.

johnswan:

The solution was found by commenting out some lines in templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php

At around line 67 you will find the following:

<?php if ($product['flagShowFixedQuantity']) { echo $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits']; } else { echo $product['quantityField'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits']; } ?>
> 
> ```
<?php
//  if ($product['flagShowFixedQuantity']) {
//    echo $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
//  } else {
    echo $product['quantityField'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
//  }
?>
16 Jan 2009, 2:26 PM
#9
asappia avatar

asappia

New Zenner

Join Date:
May 2008
Posts:
30
Plugin Contributions:
0

Re: Update cart Quantity

hi,
I'm stumbling on the same problem as here

Simply Customers watching the shopping cart cannot update the product quantity.

I tried to search a bit in the code and I didn't find any codeflow who check for the action=update_products.

I've found that main_chart_actions.php in include/ isn't executed (it contains code that would update the cart)

any idea ?

thanks

Alessandro

11 Mar 2009, 11:27 AM
#10
mike_dean avatar

mike_dean

Totally Zenned

Join Date:
Feb 2006
Location:
Central Coast, NSW, Australia
Posts:
531
Plugin Contributions:
0

Re: Update cart Quantity

I have a question in regards to the Update button.

Currently I have an update button beside each item in the cart, and also an update button below the list of items.

Can that button be removed ?

My site is on my locals host so I have not links to offer, but I'm using the cherry_zen template.

Thanks..
Mike

Norts And Ones
Norts And Ones

11 Mar 2009, 6:08 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Update cart Quantity

Might peek in the Configuration ... Stock ...

Show Shopping Cart - Update Cart Button Location
Show on Shopping Cart Update Cart Button Location as:

1= Next to each Qty Box
2= Below all Products
3= Both Next to each Qty Box and Below all Products

and see if that is what you are looking for ... :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!

11 Mar 2009, 7:45 PM
#12
mike_dean avatar

mike_dean

Totally Zenned

Join Date:
Feb 2006
Location:
Central Coast, NSW, Australia
Posts:
531
Plugin Contributions:
0

Re: Update cart Quantity

Ajeh:

Might peek in the Configuration ... Stock ...

and see if that is what you are looking for ... :smile:

Thanks Linda... :clap:

Norts And Ones
Norts And Ones

19 Oct 2010, 10:09 PM
#14
ajeh avatar

ajeh

Oba-san

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

Re: Update cart Quantity

What is it that you are wanting to do with the Update Quantity button ... :unsure:

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!

19 Oct 2010, 10:53 PM
#15
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

Re: Update cart Quantity

Hi Linda,

The Update Qty button on the Shopping Cart Items page won't make sense to the shopper, and isn't needed, since my store is set up to not allow the buyer to change the qty. I sell one each of my items.

However, I did notice that the update qty button will command on the delete action, if the item 'checkbox' is selected, so it still has that limited functionality, especially the update button that is below the list of shopping cart items. That same use of the button in the line item really wouldn't be needed, though, since each item has a trash can button (see screenshot from my post earlier today).

The button just continues to appear next to the fixed qty of 1 and seems a little silly. Not a huge deal, and I was hoping there would be an admin switch for turning it off, rather than asking/bugging you guys for a code solution. Thx,

J.
vintage-adventures.com

19 Oct 2010, 11:03 PM
#16
ajeh avatar

ajeh

Oba-san

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

Re: Update cart Quantity

I would set it to show Below all the products so when I have 12 things in the cart I can check the boxes on 4 of them for deletion and hit 1 update button or delete one by one ...

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 Oct 2010, 1:06 AM
#17
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

Re: Update cart Quantity

Ajeh:

I would set it to show Below all the products so when I have 12 things in the cart I can check the boxes on 4 of them for deletion and hit 1 update button or delete one by one ...

Hi Linda, thanks for your response. Yeah, I get that. The button already does show at the bottom of the list. It also shows in each line item, next to a qty 1 that can't be edited. That's what I was originally wanting to turn off; the qty 1 cannot be updated by the update qty button directly next to it.

That's all I was wondering about changing. happy Tuesday!