If this is your first visit, check our documentation. To post, register or login.
Forums / Addon Order Total Modules / Quantity Discounts for 1.3

Quantity Discounts for 1.3

Started by swguy on 13 Aug 2006, 10:22 AM · Views: 226,694

Results 181 to 200 of 847
27 Oct 2007, 6:11 PM
#181
swguy avatar

swguy

Administrator

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

Quantity Discounts for 1.3

Yes. You post an ad in Commercial Help Wanted saying "subcontractor needed with data import experience and knowledge of built-in quantity discounting mechanism." Someone will respond and do this for you.

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.

27 Oct 2007, 6:13 PM
#182
webguygary avatar

webguygary

New Zenner

Join Date:
Oct 2007
Posts:
17
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

no need to be nasty, I was just looking for some info that might help me figure out how to do the data import.

4 Nov 2007, 7:25 AM
#183
mohinder avatar

mohinder

Zen Follower

Join Date:
Mar 2007
Posts:
115
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

The mod is.. simply not working for me. I've customized it to work w/ a certain category:

  function exclude_product($id) {
        switch($id) {
           case 137:
           case 99998:
                return false;
        }
        return true;
    }

Set the discount to "total by category."

I installed it following all the instructions, first removing the old group discount mod. The quantity discount is simply not showing up at the checkout page. What did I possibly do wrong?

4 Nov 2007, 8:59 AM
#184
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

You said

I've customized it to work w/ a certain category:
but then you showed the exclude_product function.
The function exclude_product() excludes products not categories.

What are your levels in admin? Are you running ZC 1.3.5 or higher? Did you read the FAQ about the possible root causes of category problems?

http://www.thatsoftwareguy.com/zencart_quantity_discounts.html#faq

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.

4 Nov 2007, 10:38 PM
#185
mohinder avatar

mohinder

Zen Follower

Join Date:
Mar 2007
Posts:
115
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

It clearly says on your page that, if you want to apply the discounts to a certain category, you use this code:

       function exclude_category($category) {
        switch($category) {
           case 11:
                return false;
        }
        return true;
    }

which i thought made sense, since you switched the false and the true around.

I am running ZC 1.3.7. My levels in admin:

4 Nov 2007, 11:20 PM
#186
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Quantity Discounts for 1.3

mohinder:

It clearly says on your page that, if you want to apply the discounts to a certain category, you use this code:

   function exclude_category($category) {
    switch($category) {
       case 11:
            return false;
    }
    return true;
}
>  
> which i thought made sense, since you switched the false and the true around.
 
 
Your first post shows code for products and this post shows the code for categories, perhaps this is the problem?
 
Matt


Zen Cart and it's community are the best!!

7 Nov 2007, 8:01 PM
#187
jagge avatar

jagge

Zen Follower

Join Date:
Jul 2007
Posts:
110
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hi,
please help me with this one if you are familiar to the issue.
I installed the discount-mod and thought i set it up correct. But at checkout the values are not calculated right. The tax included should only be 20% of the total sum but its 10 SEK extra???

I have tried solving this several times but cant fix. please help me!

See attached image on checkout.

best regards,
Ola

**www.blingofsweden.se**

7 Nov 2007, 9:23 PM
#188
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

There are a bunch of knobs and switches for tax calculation, and they're not easy to understand. I explained some of them here:

http://www.thatsoftwareguy.com/zencart_order_total_sales_tax.html

The tax regime in some countries is so complicated that you have to write additional code; don't know if that's the case for Sweden or not.

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.

8 Nov 2007, 10:33 PM
#189
jagge avatar

jagge

Zen Follower

Join Date:
Jul 2007
Posts:
110
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

hi there!
Thanks for putting in time. The page you pointed me to didn´t help me though. It seems to be a small number that is wrong somewhere but I have gone through all settings lots of times and cant find it. It calculates the values wrong at checkout. If I do one change so for ex. the 10% discount shows up correct there is an error somewhere else. For ex. how much tax there is included. And if the tax shows correct the discount doesnt.
This is my settings.

**This module is installed
**true[/B]

Sort Order
150[/B]

Include Tax
false

Re-calculate Tax
Standard

Discount Units
percentage

Discount Basis
Total Items in Cart

Discount Level 1
2

Discount Amount 1
10%

Display Prices with Taxtrue[IMG]http://www.blingofsweden.se/admin/images/icon_info.gif[/IMG] Display Prices with Tax in Admintrue[IMG]http://www.blingofsweden.se/admin/images/icon_info.gif[/IMG] Basis of Product TaxShipping[IMG]http://www.blingofsweden.se/admin/images/icon_info.gif[/IMG] Basis of Shipping TaxShipping[IMG]http://www.blingofsweden.se/admin/images/icon_info.gif[/IMG] Sales Tax Display Status1[IMG]http://www.blingofsweden.se/admin/images/icon_info.gif[/IMG] Store Status0

www.blingofsweden.se

Please help, I´ve been messing around with this issue for a week now...

/Ola

9 Nov 2007, 2:24 AM
#190
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

What you'll need to do is post two sets of figures: the numbers from checkout page 2 that you get now and the numbers you believe you should get. All numbers from subtotal on down. Type them in please, don't post images.

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.

9 Nov 2007, 6:43 AM
#191
jagge avatar

jagge

Zen Follower

Join Date:
Jul 2007
Posts:
110
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hi again,
here is the wrong figures.

308:-
Summa: (total)

-31:-
Mängdrabatt: (discount)

0:-
Frakt: (Brev/Paket): (shipcost)

62:-
Moms ingår med: (tax)

277:-
Totalsumma: (total to pay)


IT SHOULD LOOK LIKE THIS:

308:-
Summa: (total)

-31:-
Mängdrabatt: (discount)

0:-
Frakt: (Brev/Paket): (shipcost)

55:-
Moms ingår med: (tax 25% - 277x0,2)

277:-
Totalsumma: (total to pay)

9 Nov 2007, 7:14 AM
#192
jagge avatar

jagge

Zen Follower

Join Date:
Jul 2007
Posts:
110
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hi again,
a new example. Think I see the issue now. It calculates tax on the origin totalcost. It should calculate tax after the discount is away.

546:-
Summa: (first total)

-55:-
Mängdrabatt: (discount)

0:-
Frakt: (Brev/Paket): (shipping cost)

109:-
Moms ingår med: (tax is included with )

491:-
Totalsumma: ( Total to pay, it should calculate tax on this value)


THIS IS MY SETTINGS TO GET THIS VIEW:
This module is installed
true

Sort Order
150

Include Tax
true

Re-calculate Tax
None

Discount Units
percentage

Discount Basis
Total Items in Cart

Discount Level 1
2


AND MY ORDER IN ORDERTOTAL

Postens avgift för postförskottot_cod_fee950 Rabattkoderot_coupon
Grupp Rabattot_group_pricing
Gift Certificatesot_gv
Lågt ordervärdesavgiftot_loworderfee Mängdrabattot_quantity_discount150
Fraktot_shipping200
Summaot_subtotal100
Momsot_tax990
Totalsummaot_total998

Regards,
Ola

9 Nov 2007, 10:50 AM
#193
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

.... but you have recalculate tax = none.

If you have display prices including tax, you probably want recalculate = standard, include tax = yes. This grosses up the discount to cover the additional tax.

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.

10 Nov 2007, 7:01 AM
#194
jagge avatar

jagge

Zen Follower

Join Date:
Jul 2007
Posts:
110
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hi,
and thanks for the answer. That didnt solve it though. This is what I get now.

645:-
Summa: (total) (Should be 10% of 645)

-81:-
Mängdrabatt: (discount)

0:-
Frakt: (Brev/Paket): (shipping)

113:-
Moms ingår med: (tax (should be 110:- 552x0,2)

552:-
Totalsumma: (total to pay)

10 Nov 2007, 9:32 AM
#195
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

The calculation you are looking for is beyond the current capabilities of Quantity Discounts. Rework on the checkout system i s scheduled for a future release of Zen Cart; perhaps the additional settings to support Sweden will be provided at that time.

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.

10 Nov 2007, 9:51 PM
#196
legris avatar

legris

New Zenner

Join Date:
Jul 2005
Posts:
5
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hi, I've installed qty disc on my 1.3.7 zen site. and purchased one of your other modules that shows the discount in the shopping cart sidebox.

I'm having a problem with the price quantity discount module. It is subtracting the discount from the shipping price instead of the merchandise price, which is causing the sales tax to be calculated on the difference between shipping and qty disc.
And actually in this instance all of these products are not even supposed to be taxable, so the shipping should not be taxable either, this may be another glitch, but the main problem I see is that the 8. Discount is being subtracted from the 10.34 shipping charge and the 8.25% tax is being calculated on the 2.34 difference:

Sub-Total:$115.20
United Parcel Service (3.08lbs) (Ground):$10.34
Quantity Discount:-$8.00
TX TAX 8.25%: $0.19
Total:$117.73

I tried re-ordering the discount up above the shipping Like this:

Quantity Discount:-$8.00
Sub-Total:$115.20
United Parcel Service (3.08lbs) (Ground):$10.34
TX TAX 8.25%: $0.19
Total:$117.73

But this made no difference in the calculation. I tried changing the Re-calculate Tax to None, and that didn't help either.
These are the settings I have now:

Quantity Discount

This module is installed
true

Sort Order
55

Include Tax
false

Re-calculate Tax
None

Discount Units
percentage

Discount Basis
Total Items in Cart

Discount Level 1
5

Discount Amount 1
6.25

Discount Level 2
10

Discount Amount 2
12.5

Discount Level 3
20

Discount Amount 3
18.75

Discount Level 4
40

Discount Amount 4
26

I appreciate your help.

R LeGris

10 Nov 2007, 9:54 PM
#197
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Put QD immediately below subtotal and use free shipping (or flat rate) and retest.

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.

10 Nov 2007, 10:24 PM
#198
legris avatar

legris

New Zenner

Join Date:
Jul 2005
Posts:
5
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Yes, that fixes it when free shipping is selected with a 0.00 shipping charge. No tax shows at all.
If I put in 10.00 for a flat rate shipping charge, then it charges the .83 tax on shipping instead of .19.
I took off free shipping, and chose the UPS and now it is correctly charging
.85 for tax on the shipping. (Which is still wrong because none of the products are taxable so there is not supposed to be tax on shipping, but that is another mod's problem, not yours)
Thanks for the help!
RLeGris

18 Nov 2007, 2:07 PM
#199
kevinlee avatar

kevinlee

New Zenner

Join Date:
Apr 2007
Posts:
14
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Can i use the Quantity Discounts make like this
i don't like to display the price in level 3-level 5
when the customer login,then can display it.
how can i modify the code

18 Nov 2007, 3:35 PM
#200
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Response by PM.

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.