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 341 to 360 of 847
13 Jan 2009, 6:41 PM
#341
attroll avatar

attroll

Zen Follower

Join Date:
Dec 2007
Posts:
103
Plugin Contributions:
0

Quantity Discounts for 1.3

My taxes are getting all screwed up and as far as I can see everything is set up correctly. Can someone offer me some advice?

I am only charging sales tax to FL.
My shipping is a flat rate of $3.95
I have a discount set up so if they order 2 they get a 5% discount

In my quality discounts I have the Re-Calculate Tax set to standard.

Here is what I get when I do this for one item:

1 x Appalachian Pages 2009 Northbound 0% $15.95

$3.95 Zone Rates (Shipping to US):
$0.00 Sales Tax:
$0.24 FL TAX 6.0%:
$20.14 Total:

Here is what I get when I order two items:

2 x Appalachian Pages 2009 Northbound 0% $31.90

$3.95 Zone Rates (Shipping to US):
-$1.70 Quantity Discount:
$0.00 Sales Tax:
$0.14 FL TAX 6.0%:
$34.29 Total:

If you look at this you will see that the sales tax for FL is less when the total amount is higher. This is not right, the more the cost the more the sales tax should be.

I must be doing something wrong. Can someone offer some advice?

13 Jan 2009, 8:20 PM
#342
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

dw08gm:

Upon installing the Quantity Discounts mod together with the marketing promo in my 1.3.8a, I notice much to my annoyance that there are two lines of space between the "Store Quantity Discount Policy" heading and the discount schedule on all product pages with the promo, but not on the Quantity Discounts Promo page itself. What I wish is to have only one line, or rather 1em of space, between the heading and the schedule.

The way to solve problems like this is to create a static table with the same contents with your own styling, get the appearance the way you want, then work backwards to see the code changes you need to do to get the marketing text displayed this way.

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.

13 Jan 2009, 8:23 PM
#343
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

attroll:

My taxes are getting all screwed up and as far as I can see everything is set up correctly. Can someone offer me some advice?

If you look at your figures, you're not charging sales tax on your product. In the first case you're charging tax on your shipping; in the second case you're charging tax on your shipping less 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 Jan 2009, 3:24 PM
#344
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,022
Plugin Contributions:
2

Re: Quantity Discounts for 1.3

swguy:

The way to solve problems like this is to create a static table with the same contents with your own styling, get the appearance the way you want, then work backwards to see the code changes you need to do to get the marketing text displayed this way.

All theory aside, I suppose the question I should have asked is what css affects the display of the discount schedule. As I could not find any styling in your code, I spent many hours tinkering with my css but to no avail. Is the answer in the css.

14 Jan 2009, 3:44 PM
#345
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

dw08gm:

All theory aside, I suppose the question I should have asked is what css affects the display of the discount schedule. As I could not find any styling in your code, I spent many hours tinkering with my css but to no avail. Is the answer in the css.

If you copy and pasted the marketing text off my site, it will say something like:

echo '<div class="content" id="discountPolicy3">';

Plus most of these things create tables so you'd get the table styling.

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 Jan 2009, 5:49 PM
#346
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,022
Plugin Contributions:
2

Re: Quantity Discounts for 1.3

swguy:

If you copy and pasted the marketing text off my site, it will say something like:

echo '<div class="content" id="discountPolicy3">';

Plus most of these things create tables so you'd get the table styling.

Thanks for such a quick response.

I have neither a class="content" nor id="discountPolicy3" in any of my css, although I do have a rem'd id="content" and I did create an id="discountPolicy1" in my stylesheet.css based on the styling in your Quantity Discounts Marketing Example 1 Code, which is what I am using.

In id="discountPolicy1", I have set both the margin and padding to 0, and there is nothing else therein that affects the layout. I suppose I could create a class="h2discountPolicy1" with margin-bottom set to zero.

I fear I may not have grasped the logic of <div class="x" id="y">, which I tend to treat as one or the other, but not a concatenation or subservience. Any heads up?

I cannot comment on any table styling until I am next at work.

I appreciate your help.

15 Jan 2009, 10:05 PM
#347
betterbanner avatar

betterbanner

New Zenner

Join Date:
Jan 2009
Posts:
4
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

We just installed ZenCart and snatched up your module right away! We have discount tiers here based on order sub-totals... this thing rocks! Thanks so much for your contribution.

17 Jan 2009, 2:52 PM
#348
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,022
Plugin Contributions:
2

Re: Quantity Discounts for 1.3

dw08gm:

Thanks for such a quick response.

...I suppose I could create a class="h2discountPolicy1" with margin-bottom set to zero.

Further to my above post (#348) I solved the excess space issue by creating a css class="discountpolicy1 h4" with {margin-bottom:0;} to negate the retained class="h4" with {margin-bottom:1em;}.

18 Jan 2009, 11:16 PM
#349
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,022
Plugin Contributions:
2

Re: Quantity Discounts for 1.3

dw08gm:

Further to my above post (#348) I solved the excess space issue by creating a css class="discountpolicy1 h4" with {margin-bottom:0;} to negate the retained class="h4" with {margin-bottom:1em;}.

Further to above post (#350)
For the discounts table to appear on promo page as per css, you can edit includes\templates\lavender\templates\tpl_quantitydiscounts_promo_default.php (lines 25-42)

<br class="clearBoth" /> <?php if (count($marketing_data) > 0) { echo '<div class="content" id="discountPolicy1">' . "\n"; echo '<h4>' . STORE_POLICY . '</h4>'; echo '<ul>' . "\n"; for ($i=0, $n=count($marketing_data); $i<$n; $i++) { echo '<li>'.$marketing_data[$i] . "</li>" . "\n"; } echo '</ul>' . "\n"; echo '<br /></div>'; echo '<br class="clearBoth" />'; } else { echo '<div class="content" id="discountPolicy1">' . "\n"; echo '<p>' . NO_QUANTITYDISCOUNTS_DISCOUNTS . '</p>'; echo '</div>' . "\n"; } ?>

It is a pity this kind of information/instruction is not easily located within ZC or with the addons, where it could save novices like myself countless hours of hapless searching and a good deal of frustration.

19 Jan 2009, 4:32 PM
#350
ryanb4614 avatar

ryanb4614

Totally Zenned

Join Date:
Feb 2008
Posts:
556
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Thank you for the nice instructional documentation for this mod that comes with the installation, was a big help.
I am looking into using the Reward Points Module mod is there a way that I can set Quantity Discounts not to apply to order if they select to "cash in" the rewards points?

19 Jan 2009, 4:39 PM
#351
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

ryanb4614:

Thank you for the nice instructional documentation for this mod that comes with the installation, was a big help.
I am looking into using the Reward Points Module mod is there a way that I can set Quantity Discounts not to apply to order if they select to "cash in" the rewards points?

There's nothing prepackaged.

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.

19 Jan 2009, 10:04 PM
#353
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Like I said, there's nothing prepackaged to disallow quantity discounts on orders using rewards points. You could write custom software to do this, of course, but nothing exists at the moment to do this.

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.

22 Jan 2009, 5:11 AM
#354
ryanb4614 avatar

ryanb4614

Totally Zenned

Join Date:
Feb 2008
Posts:
556
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

swguy, quick question... has there ever been a way to make quantity discounts disabled if a coupon is being used? thank you! this mod is excellent

22 Jan 2009, 11:10 AM
#355
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.

23 Jan 2009, 2:04 AM
#356
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hi -

I've installed the module and it works fine. Then I added the exclusions -- and most of my product page has disappeared along with the table for categories that were not excluded.

I'm perplexed. Here's the page, if that matters. I'm not sure what to do, I really need to add quantity discounts for one category, which contains multiple subcategories.

Help, please!

Completed: BellaFavori.com
In Progress: WeddingDivasLV.com
Coming Soon: ???

24 Jan 2009, 3:10 AM
#357
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Ok, guess I pm'd you too soon. I had reinstalled zc because of issues with the cherry_zen template. So I reinstalled Quantity Discount on a stock osc template. The discount itself works fine, but when I exclude categories my right column gets wiped out.

I dunno, maybe I did something wrong. I did refer to your website & here is the code I used (just the part I changed, it's too long to post):

<?php
/**
 * Quantity Discounts in the order_total module
 * Version 1.10
 * By Scott Wilson (swguy) 
 * @copyright That Software Guy (www.thatsoftwareguy.com) 
 * @copyright Portions Copyright 2004-2006 Zen Cart Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 */

  class ot_quantity_discount {
    var $title, $output;
    var $explanation; 

    // Add categories you wish to exclude to this list.
    // Go to Admin->Catalog->Categories/Products and look 
    // at the left hand side of the list to determine 
    // category id.   Note that 99999 and 99998 are just given
    // as examples.
    function exclude_category($category) {
        switch($category) {
           case 14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
                return true;
        }
        return false;
    }

Now, I took out the exclusions & reuploaded and my right column came back. :wacko:

Completed: BellaFavori.com
In Progress: WeddingDivasLV.com
Coming Soon: ???

24 Jan 2009, 12:34 PM
#358
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's a bug in your syntax. Instead of

        switch($category) {
           case 14:
15:
16:
17:
etc.

you want

        switch($category) {
           case 14:
case 15:
case 16:
case 17:
etc.

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.

24 Jan 2009, 1:58 PM
#359
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

swguy:

There's a bug in your syntax. Instead of

    switch($category) {
       case 14:

15:
16:
17:
etc.

> 
> you want 
> 
> ```
        switch($category) {
           case 14:
case 15:
case 16:
case 17:
etc.

OH, ok thanks!!!

Completed: BellaFavori.com
In Progress: WeddingDivasLV.com
Coming Soon: ???

28 Jan 2009, 6:48 PM
#360
myworld20091 avatar

myworld20091

New Zenner

Join Date:
Oct 2008
Posts:
85
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

hi, i have quantity discount installed, but i met the problem when checkout

  • i check out 2 items (price 20 + 30), total shipping cost 15.90, quantity discount 5%, tax 19.6%,
  • i set the price with tax, and shipping cost no tax.
  • i set the sort order which i want in module:
    sub-total -- 200
    shipping cost -- 210
    quantity discount -- 220
    taxes -- 230
    total -- 240

which i should get is :

sub-total: 50.00
shipping cost: 15.90
quantity discount: -2.50
tax: 7.78
total: 63.40 [ total = 50+15.9-2.5 = 63.40 ]


But, no matter how i set up, its not what i want:

i set quantity discount: include tax - true, re-calculate tax - standard, i get

sub-total: 50.00
shipping cost: 15.90
quantity discount: -2.50 [ 2 items 41.81*0.05=2.09 (include tax = 2.50) ]
tax: 7.70
total: 62.91

i set quantity discount: include tax - true, re-calculate tax - none, i get

sub-total: 50.00
shipping cost: 15.90
quantity discount: -2.50 [ 2 items 41.81*0.05=2.09 (include tax = 2.50) ]
tax: 8.19
total: 63.40

i set quantity discount: include tax - false, re-calculate tax - none, i get

sub-total: 50.00
shipping cost: 15.90
quantity discount: -2.09 [ 2 items 41.81*0.05=2.09 ]
tax: 8.19
total: 63.81

i set quantity discount: include tax - false, re-calculate tax - standard, i get

sub-total: 50.00
shipping cost: 15.90
quantity discount: -2.09 [ 2 items 41.81*0.05=2.09 ]
tax: 7.78
total: 63.40

if i add more items, the amount would be more outrageous

when i turn off quantity discount, everything calculates correctly.

i'm using 1.38a

how do i fix the problem ? i like this module very much, i dont want to loos it. thanks