Zen Cart Logo
Forums / Addon Order Total Modules / Quantity Discounts for 1.3

Quantity Discounts for 1.3

Views: 226,318

Results 81 to 100 of 847
18 Apr 2007, 5:18 AM
#81
swguy avatar

swguy

Administrator

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

Quantity Discounts for 1.3

Download it and take a look at the help or look at the examples on my home page. You do not have to activate it on each product; it's very configurable. You can include or exclude products or categories in many ways.

Good luck,
Scott

20 Apr 2007, 12:17 AM
#82
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

I have quantiy discounts set up per category or total number of items purchased basis..
Ok, why is the total on checkout step 2 of 3 different that the total in the side box Shopping cart [more].

Mark,

20 Apr 2007, 12:33 AM
#83
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Why are you showing the shopping cart sidebox on the checkout page?

But the answer to your question is that the shoping cart sidebox only
shows the subtotal from the shopping cart page, not all the other totals,
grossups and credits that you see on page 2.

20 Apr 2007, 12:36 AM
#84
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Thank you,
I will look into not showing the sidebox Shopping Cart [more] on checkout.

Mark,

20 Apr 2007, 3:37 AM
#85
bobbyt avatar

bobbyt

New Zenner

Join Date:
Nov 2005
Posts:
42
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

swguy, great mod its just what i was looking for. quick question though i need to have 12 discount levels i have read all the documentation in the package plus what is on your site. but i cant seem to figure out how to add more levels.

where and how do i add the extra levels. i saw the example at the bottom of ot_quantity_discount.php but im just not sure what to do, im kind of new to php.

thanks

20 Apr 2007, 9:04 AM
#86
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

In setup() you will call

   $this->add_extra_level_discount($quantity, $discount);

7 more times to get 12 levels.

20 Apr 2007, 2:35 PM
#87
bobbyt avatar

bobbyt

New Zenner

Join Date:
Nov 2005
Posts:
42
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

L that's all i just uncomment this line
$this->add_extra_level_discount(100, 50);
and add it 6 more times?

my mind is retarded, i always thing something is more complicated then it is it always turns out to be so much easier then i make it for myself.

thanks

20 Apr 2007, 2:49 PM
#88
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

bobbyt:

L that's all i just uncomment this line
$this->add_extra_level_discount(100, 50);
and add it 6 more times?

Bingo! Adjust the quantities and discount amount to your requirements, and you're done. This also interoperates with the marketing text, so you should have no further changes.

Scott

20 Apr 2007, 2:51 PM
#89
bobbyt avatar

bobbyt

New Zenner

Join Date:
Nov 2005
Posts:
42
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

thanks alot, i appreciate the help i wish i had known it was as easy as that, i just never expect anything to be that easy.

thanks again and thanks for the mod its great.

21 Apr 2007, 2:27 PM
#90
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

haredo:

Thank you,
I will look into not showing the sidebox Shopping Cart [more] on checkout.

Mark,

I could have sworn there was logic in the shopping cart sidebox to prevent it from being
shown on the checkout pages and the shopping cart page, but I just checked it and sure enough there isn't. Hmm.... guess I was remembering a customization someone had done.

21 Apr 2007, 10:01 PM
#91
enchantedlingerie avatar

enchantedlingerie

Zen Follower

Join Date:
Nov 2005
Posts:
101
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

is it possible to use more then one discount level.
what im looking to do is set this up so that its based on the total of the items, but the same items not mixed.

say a customer buys

4 of the same item #45854
total for the 4 items is = 50.00
discount = 10.00

but say they also buy 4 of another item #58956
total for the 4 items is = 68.00
Discount = 13.50

so when they check out their total discount will be 23.50

i have played around with the settings and the exclude cat and item, but i don't seem to be having any luck.

is this possible and if so can someone point me in the right direction.

thanks a ton

22 Apr 2007, 1:11 AM
#92
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

You don't want exclude cat and item, you want apply_special_category_discount and apply_special_item_discount. Examples are provided in the help on my home page.

Scott

22 Apr 2007, 2:35 PM
#93
enchantedlingerie avatar

enchantedlingerie

Zen Follower

Join Date:
Nov 2005
Posts:
101
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

ok i will have a look i got a little confused with all the exits and customizations for this. thanks for the help.

3 May 2007, 12:58 PM
#94
stehodges avatar

stehodges

New Zenner

Join Date:
Jun 2005
Posts:
52
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

am i missing something here?

have set up one discount level in admin.

have added excluded categories in the .php file, but the discount is still being applied to all categories

3 May 2007, 1:09 PM
#95
virtualahmad avatar

virtualahmad

Zen Follower

Join Date:
Jan 2006
Location:
Toronto, Ontario, Canada
Posts:
179
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

stehodges:

am i missing something here?

have set up one discount level in admin.

have added excluded categories in the .php file, but the discount is still being applied to all categories

are you sure you have entered the category id for exclusion ? Also, I believe it will only work on the parent category of products. So for example if you have:

CAT 1
     |___ SUBCAT A
     |___ SUBCAT B
                 |______ PRODUCT ABC001
                 |______ PRODUCT ABC002

You will need to enter the category id for SUBCAT B; entering CAT 1 ID will not work (to my knowledge)

3 May 2007, 1:48 PM
#96
stehodges avatar

stehodges

New Zenner

Join Date:
Jun 2005
Posts:
52
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Thanks for the reply

I have tried that

I have 4 main categories, one of which has an ID of "37"

Within that category, there are many categories - ive tested a few with no luck.

I've even tried adding 37, and an id of one of the subcats - no luck

3 May 2007, 1:50 PM
#97
virtualahmad avatar

virtualahmad

Zen Follower

Join Date:
Jan 2006
Location:
Toronto, Ontario, Canada
Posts:
179
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

stehodges, could you perhaps post the code you are using for the exclusion

3 May 2007, 1:52 PM
#98
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

You can only specify a category with only products underneath it.

Scott

3 May 2007, 1:55 PM
#99
stehodges avatar

stehodges

New Zenner

Join Date:
Jun 2005
Posts:
52
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

function exclude_category($category) {
switch($category) {
case 107: //a category with only products under it
return true;
}
return false;
}

3 May 2007, 1:58 PM
#100
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

This works, but requires ZC 1.3.5 or better.