Forums / General Questions / Can't Edit Qty of Items in Cart

Can't Edit Qty of Items in Cart

Views: 577

Results 1 to 8 of 8
7 Feb 2012, 6:35 PM
#1
aprilmarie avatar

aprilmarie

New Zenner

Join Date:
Aug 2009
Posts:
24
Plugin Contributions:
0

Can't Edit Qty of Items in Cart

I had this problem with my 1.3.9 (only mod was grid layout) and thought upgrading to 1.5.0 might fix it...but it didn't. I can't edit the quantity of an item after it's been added to the cart. Instead of an editable space where the number can be changed, it just has the number.

I'm running 1.5.0, a rather clean upgrade then customized to my own template, and I've added some add ons now:
save for later
gift wrap (still configuring)
ty tracking
snaf
flexible attributes
usps

My zen cart is at http://aprilmariemai.com

I couldn't find anything talking about this with search or the faq.

Any suggestions on what the problem might be?
Thanks so much for any help!

7 Feb 2012, 6:59 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Can't Edit Qty of Items in Cart

If you edit a product ... what is the setting for:

Products Quantity Box Shows: Yes, Show Quantity Box No, Do not show Quantity Box

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!

7 Feb 2012, 7:07 PM
#3
aprilmarie avatar

aprilmarie

New Zenner

Join Date:
Aug 2009
Posts:
24
Plugin Contributions:
0

Re: Can't Edit Qty of Items in Cart

Oh! I have those set to off so it doesn't ask people for a qty before they add to cart. Does that also turn off the ability to edit qty in the cart? I hadn't thought of that at all!

7 Feb 2012, 7:10 PM
#4
aprilmarie avatar

aprilmarie

New Zenner

Join Date:
Aug 2009
Posts:
24
Plugin Contributions:
0

Re: Can't Edit Qty of Items in Cart

I tested it, and yes, that did it!

Thanks! I did not realize that affected the ability to edit the qty in cart as well as on the product page. I will change them back.

Thanks so much!:bigups:

7 Feb 2012, 7:33 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Can't Edit Qty of Items in Cart

Thanks for the update that this fixes things for you ... :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!

8 Jan 2013, 5:18 PM
#6
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Can't Edit Qty of Items in Cart

Hello,

Is there anyway to achieve both, do not display quantity box on product page but have the ability to edit in the cart?

This comes useful when a customer mistakenly adds the product twice (we have a lot of attributes so it wouldn't be so convenient to remove all together)

8 Jan 2013, 5:40 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Can't Edit Qty of Items in Cart

If I understand what you are trying to do here ... using your templates and overrides, customize the file:
tpl_shopping_cart_default.php

and add the code in RED for around line 68:

  if ([B]false && [/B]$product['flagShowFixedQuantity']) {

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!

8 Jan 2013, 6:43 PM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Can't Edit Qty of Items in Cart

To hide the quantity box in the product info page, add to your stylesheet ```
#cartAdd input[name='cart_quantity'] {display: none;}

To remove the text before the box, you can edit the define for it. Search in Tools > Developers Toolkit for Add to Cart to find the file to edit. Change the defined value from 'Add to Cart:' to ''.