Forums / Setting Up Categories, Products, Attributes / Change how "Quantity Discount" display

Change how "Quantity Discount" display

Locked

Started by margecc on 3 Jul 2008, 6:25 PM · Views: 1,225

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
3 Jul 2008, 6:25 PM
#1
margecc avatar

margecc

Zen Follower

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
234
Plugin Contributions:
0

Change how "Quantity Discount" display

I was wondering what line of code I had to remove and from what file to get the quantity discount to display just the first quantity.

IE instead of 250-499, I just want 250

Thanks, Colleen
www.af-company.com
To err is human, but to really foul things up requires a computer. Farmers' Almanac, 1978

3 Jul 2008, 6:30 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Change how "Quantity Discount" display

You would need to customize the products_quantity_discounts.php module, specifically the section around line 132:

  $quantityDiscounts[$columnCount]['show_qty'] = number_format($products_discounts_query->fields['discount_qty']);
  $products_discounts_query->MoveNext();
  if ($products_discounts_query->EOF) {
    $quantityDiscounts[$columnCount]['show_qty'] .= '+';
  } else {
    if (($products_discounts_query->fields['discount_qty']-1) != $show_qty) {
      if ($quantityDiscounts[$columnCount]['show_qty'] < $products_discounts_query->fields['discount_qty']-1) {
        $quantityDiscounts[$columnCount]['show_qty'] .= '-' . number_format($products_discounts_query->fields['discount_qty']-1);
      }
    }
  }

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!

3 Jul 2008, 6:46 PM
#3
margecc avatar

margecc

Zen Follower

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
234
Plugin Contributions:
0

Re: Change how "Quantity Discount" display

Ok I got it to work for all the additional quantities, but not the first one. Is this in a different line?

http://transportation.actionforms.ca/cart/index.php?main_page=product_info&cPath=203_205_209&products_id=2210

Thanks, Colleen
www.af-company.com
To err is human, but to really foul things up requires a computer. Farmers' Almanac, 1978

3 Jul 2008, 6:51 PM
#4
margecc avatar

margecc

Zen Follower

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
234
Plugin Contributions:
0

Re: Change how "Quantity Discount" display

Forget it, I found it up in line 81.

Thanks for the super speedy reply though!

Thanks, Colleen
www.af-company.com
To err is human, but to really foul things up requires a computer. Farmers' Almanac, 1978