Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Quantity Discount Add on - adding levels not working

Quantity Discount Add on - adding levels not working

Started by webmeister on 13 Nov 2012, 11:11 PM · Views: 1,109

Results 1 to 4 of 4
13 Nov 2012, 11:11 PM
#1
webmeister avatar

webmeister

New Zenner

Join Date:
Oct 2012
Posts:
49
Plugin Contributions:
0

Quantity Discount Add on - adding levels not working

In Quantity Discounts I downloaded today it works great. I am trying to add additional levels as discussed using the following code:

function setup() {
// Add extra levels and discounts here in this manner:
// "Buy more than 100 items, get 50 (% or $, as per admin) off"
$this->add_extra_level_discount(100, 50);
}

This is cut & paste from instructions but it does not seem to add the discount - anyone else experience this? thanks

14 Nov 2012, 6:32 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,752
Plugin Contributions:
56

Re: Quantity Discount Add on - adding levels not working

Just tested in 1.5.0 - works fine for me. What are your settings in admin->modules->order total->Quantity Discounts?

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

14 Nov 2012, 2:54 PM
#3
webmeister avatar

webmeister

New Zenner

Join Date:
Oct 2012
Posts:
49
Plugin Contributions:
0

Re: Quantity Discount Add on - adding levels not working

Sorry for the delay:

Attachment 11443

swguy:

Just tested in 1.5.0 - works fine for me. What are your settings in admin->modules->order total->Quantity Discounts?

15 Nov 2012, 7:44 AM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,752
Plugin Contributions:
56

Re: Quantity Discount Add on - adding levels not working

If you want to give $55 off orders over $500, you'll need to use this function setup():

function setup() {
   $this->add_extra_level_discount(500, 55);
}

Your last level was 450 (with $50 off).

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.