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

Change how "Quantity Discount" display

Locked

Views: 1,221

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

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);
      }
    }
  }
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!