Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Setting Up Categories, Products, Attributes / Ooops, Quantity box on cart page is TEXT ONLY

Ooops, Quantity box on cart page is TEXT ONLY

Locked

Started by jamieboulder on 22 Feb 2008, 5:01 PM · Views: 2,644

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
22 Feb 2008, 5:01 PM
#1
jamieboulder avatar

jamieboulder

New Zenner

Join Date:
Jan 2008
Location:
Germany, Istanbul, Pune, India
Posts:
37
Plugin Contributions:
0

Post #1 by jamieboulder

Somehow the quantity box, that little text field of 2 characters that allows the user to update the quantity of the item they're buying on the shoppingcart page, to a text read out. It is no more a text field which the user can change. It's a text of the number of items in the cart which is NOT changeable by the user.

Not good. That needs to change back to a text fielf which can be updated, anyone can tell me where to do that? In the admin section under

Configuration->Product Info

I have the Product Quantity Box Status - Adding New Products set to 1, which is ON. Still no function. (http://oshoboulder.org/store )

Help. :huh:
thanks,
JSC

Jamie/Boulder

17 Mar 2008, 1:10 PM
#2
berthz avatar

berthz

New Zenner

Join Date:
Feb 2008
Posts:
4
Plugin Contributions:
0

Post #2 by berthz

I am having the same problem! Did you manage to set it back to an editable form field rather then the fixed non-changeable number?

17 Mar 2008, 1:31 PM
#3
jamieboulder avatar

jamieboulder

New Zenner

Join Date:
Jan 2008
Location:
Germany, Istanbul, Pune, India
Posts:
37
Plugin Contributions:
0

Post #3 by jamieboulder

As you add each product in the Catalog->Categories/Products section, there is a radio button which asks if you want the quantity field to show up on the product and cart pages for this item. You select the YES button and it shows up.

Jamie/Boulder

17 Mar 2008, 1:47 PM
#4
berthz avatar

berthz

New Zenner

Join Date:
Feb 2008
Posts:
4
Plugin Contributions:
0

Post #4 by berthz

HmmI dont have that option in my admin. The thing is that the website was completely custom made and modified by another designer. After that the company I work for took over the development of this website. The adding of product is completely redesigned, and since I am not used to zen-cart it is quite a hassle to find all the options. I guess this option was switched off by hand in the script of the shopping cart. The problem is that I can not find the draw_form function of the shopping cart to check whether he did or not... Anyone any ideas?

17 Mar 2008, 2:17 PM
#5
berthz avatar

berthz

New Zenner

Join Date:
Feb 2008
Posts:
4
Plugin Contributions:
0

Post #5 by berthz

I have changed it by hand to override the text option. For anyone interested in how to do this:

In includes/templates/your template/templates find tpl_shopping_cart_default.php

In this file find:

echo $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];

Simply change this to:

echo $product['quantityField'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];

That should do the trick. Very nasty and user-unfriendly. But at least it shows the editable text field.

17 Apr 2008, 7:48 AM
#6
dinnages avatar

dinnages

Zen Follower

Join Date:
May 2007
Location:
Brighton/Hove/Sussex
Posts:
146
Plugin Contributions:
0

Post #6 by dinnages

jamieboulder:

As you add each product in the Catalog->Categories/Products section, there is a radio button which asks if you want the quantity field to show up on the product and cart pages for this item. You select the YES button and it shows up.

It took me a while to realise that one too, mainly for customers buying items & could not change the cart amount.

Having a thought, can that change to all the products me done globally?
Ive only have about 65 items so far but if I had 650 items, I would have a very long job opening EACH item & changing, previewing & then update buttons just for this.

So is there a global function in the Developers Took Kit for example to do this simple change or others in product pages in one go?

Anyone?

Original store was 1.39:- TransportPostcards.co.uk/shop (redirecting out)
Working on a fresh new store... 1.56a TransportPostcards.co.uk/store
Appreciate Zen-Cart? - Always keep a banner link on your shop

7 Aug 2008, 2:27 PM
#7
dontknowwhatimdoing avatar

dontknowwhatimdoing

Zen Follower

Join Date:
Aug 2008
Posts:
131
Plugin Contributions:
0

Post #7 by dontknowwhatimdoing

berthz:

I have changed it by hand to override the text option. For anyone interested in how to do this:

In includes/templates/your template/templates find tpl_shopping_cart_default.php

In this file find:

echo $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];

> 
> Simply change this to:
> 
> ```php
echo $product['quantityField'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];

That should do the trick. Very nasty and user-unfriendly. But at least it shows the editable text field.

This was a critical solution for me.

The reason is, I NEVER want to show an open text box to add quantity on the general tab--I think its easier & faster for the user to simply click a "Buy Now" button. However, if you try to set things this way, it tries to FORCE you to not allow quantity changes in the cart, which honestly makes no sense at all to me.

In fact, I think Zen Cart should default to buy now buttons, and default to allow quantity changes on the Shopping Cart page...

Anyway, I did this edit above on my custom template. Thanks for the fix!

Now things works perfectly--I have a single add to cart button... "Buy Now" on the product listing pages (I don't like that open text box) and I am still allowing users to make quantity changes on the shopping cart page.

29 May 2009, 6:47 PM
#8
calouroj avatar

calouroj

New Zenner

Join Date:
May 2009
Posts:
25
Plugin Contributions:
0

Post #8 by calouroj

Does anyone know which file I need to change the "add to cart" text for the qty box on my product info. page?

1 Jun 2009, 3:39 PM
#9
ajeh avatar

ajeh

Oba-san

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

Post #9 by ajeh

I would peek in your Zen Cart Admin and look in the Tools ... Developers Tool Kit ... and in the bottom input box enter:
add to cart

select Catalog ... and click search ...

This will give you the constants that have this define statement ...

You can change the text on the language file using your templates and overrides ...

If you see the text defined in several places, now search for the define statement constant associated with it to see where it is used in the code ...

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!