Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / taking Qty out of product display table

taking Qty out of product display table

Locked

Started by haostaff on 14 Oct 2007, 2:51 PM · Views: 1,632

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
14 Oct 2007, 2:51 PM
#1
haostaff avatar

haostaff

Zen Follower

Join Date:
Oct 2007
Location:
Hong Kong
Posts:
112
Plugin Contributions:
0

Post #1 by haostaff

Hi. I am selling downloadable files and Qty is irrelevant.

I have set all the "Display Quantity" values to 0 in all the places I can find on Admin (Configuration, Product Type, etc.). It worked in most of my product listings (I show All, and New Listings only)

However, the quantity number "1" refuses to go away in my bottom category product listing table. See this page: http://haostaff.com/store/index.php?main_page=index&cPath=8

I have tried to look everywhere.

Also, you will notice that the price is too "high". It does not appear to be on the same row as the product name. I am less concerned about this one.

Thanks.

Jeff:frusty:

14 Oct 2007, 9:45 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

I am not sure what this actually is and do not see it on any install that I have.

From your source this is the entry and I have highlighted the value you are concerned with but still do not know from where this is set???

... more info</a><br /> 1<br /></td>

Zen-Venom Get Bitten

15 Oct 2007, 1:43 AM
#3
ajeh avatar

ajeh

Oba-san

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

Post #3 by ajeh

That looks like a minimum, maximum or unit setting without the text for it ...

Do you have units or maximum set to 1 on your products?

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!

15 Oct 2007, 2:00 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #4 by kobra

Thanks Ajeh!!!

Zen-Venom Get Bitten

15 Oct 2007, 2:01 AM
#5
ajeh avatar

ajeh

Oba-san

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

Post #5 by ajeh

Sneaky code eh? :cool:

The give away was seeing the same thing when added to the cart ... :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!

15 Oct 2007, 8:31 AM
#6
haostaff avatar

haostaff

Zen Follower

Join Date:
Oct 2007
Location:
Hong Kong
Posts:
112
Plugin Contributions:
0

Post #6 by haostaff

Hi, Ajeh and Kokra.

Indeed the "1" comes from Max Qty 1. I removed the "Max", from one of the files (possbly English.php, I can't remember exactly).

So the question is how do I make it NOT show "1". Easy or major?

Jeff learns to Zen:smile:

15 Oct 2007, 9:13 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #7 by kobra

I removed the "Max", from one of the files (possbly English.php, I can't remember exactly).
Get the heck out of the files!!!!

this is in admin > catalog > categories/products > select the product > set Product Qty Maximum: to > "0"

Zen-Venom Get Bitten

16 Oct 2007, 2:18 PM
#8
haostaff avatar

haostaff

Zen Follower

Join Date:
Oct 2007
Location:
Hong Kong
Posts:
112
Plugin Contributions:
0

Post #8 by haostaff

That's it ? That's it ! Dug a hole for myself. Thanks Kobra and Ajeh.
:blink:

16 Oct 2007, 9:48 PM
#9
ajeh avatar

ajeh

Oba-san

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

Post #9 by ajeh

NOTE: Setting the Maximum to 0 means no limit and the message is not shown ...

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!

4 Jan 2008, 2:10 AM
#10
haostaff avatar

haostaff

Zen Follower

Join Date:
Oct 2007
Location:
Hong Kong
Posts:
112
Plugin Contributions:
0

Post #10 by haostaff

For those who view this thread in future, just to let you know the end state of this issue.

I have to reset the Maximum back to "1" in the Product creation Admin, because I am selling downloadable product and don't want the customer to unintentionally add 2 of the same product to the Cart.

See the following thread: http://www.zen-cart.com/forum/showthread.php?t=84115 (Problem No. 1)

The way I finally took the "Max 1" out from the category product listing page is by editing the includes/functions/functions_prices.php file, by commenting out the following codes:

    // quantity max
    // $check_max = zen_get_products_quantity_order_max($product_id);

   // if ($check_max != 0) {
   //   if ($include_break == true) {
   //     $the_min_units .= ($the_min_units != '' ? '<br />' : '') . PRODUCTS_QUANTITY_MAX_TEXT_LISTING . ' ' . $check_max;
   //   } else {
   //     $the_min_units .= ($the_min_units != '' ? '  ' : '') . PRODUCTS_QUANTITY_MAX_TEXT_LISTING . ' ' . $check_max;
   //   }
   // }

   // return $the_min_units;

It did a neat and clean job! See http://haostaff.com/store/index.php?main_page=index&cPath=17

The price is now also horizontally aligned with the product names (achieved by adding a cell padding from the applicable tpl files).

Hooray! :smartalec:

Jeff

For your reference only.

4 Jan 2008, 2:26 AM
#11
ajeh avatar

ajeh

Oba-san

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

Post #11 by ajeh

Thanks for the update ... we appreciate 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!