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 241 to 260 of 847
19 Feb 2008, 9:32 PM
#241
stuffdone avatar

stuffdone

Zen Follower

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

Quantity Discounts for 1.3

I installed your V.1.8 in the current release of ZEN 3.8.1. While all the controls are in place in admin no discounts are calculated. Not sure if I did something wrong or have failed to do something I should have.

I need to apply a discount on each item when 5 different items in same category are purchased for download. These are songs priced at $0.99 per dowload and we want to be able to discount each different song if they buy 5 or more by $0.19 each.

I entered discount
[currency per item]
[total by item]
[discount levl 1 = 5]
[discount amount 1 = 0.19]

I don't see anything in price manager etc. To activate discounts?

Do I need to do something in particular to make them active for specific products? I did not see anything to tell me that in the Readme file.

Thanks for your help.

:cry:

28 years web design and counting.
https://stuffdone.com

19 Feb 2008, 10:49 PM
#242
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 Quantity Discounts contribution doesn't use the price manager. Did you go to checkout page 2 to look for the discount? This is an order total module and the discount is not shown until checkout time.

Also, if you're selling downloads, you probably don't want total by item because noone's buying 5 of the same song. Use total by items in cart.

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.

21 Feb 2008, 12:25 AM
#243
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Re: Quantity Discounts for 1.3

swguy

Thanks for repyling to my other thread.
I did not know that this mod existed.

My site is very heavy in mods.
I have loads of attributes and alot of product already use the qty
discounts in the pricing manager.

I have alot of new products that I want to put in and was thinking of something
that this mod does. Will it effect the items I already put in?
I didn't want this to effect my other products.
So this doesn't actually fill the discounts in the Pricing attributes section?

21 Feb 2008, 1:38 AM
#244
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Will it effect the items I already put in?
I didn't want this to effect my other products.
So this doesn't actually fill the discounts in the Pricing attributes section?

There are user exits you can use to bypass products you have discounted using another mechanism. Click the help link in the admin and search for "user exits" or read the FAQ.

It does not fill in the discounts in the pricing attributes section; it uses a completely different mechanism.

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.

26 Feb 2008, 10:55 PM
#245
danebrood avatar

danebrood

New Zenner

Join Date:
Sep 2007
Posts:
7
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Howdy,

I'm using quantity discounts v. 1.8

I'm not quite getting the numbers I'm expecting during checkout when used with a group discount. Here's my settings:

  • include tax in calc: false
  • recalc tax: STANDARD
  • discount units: currency per item
  • discount basic: total items in cart

Example calculation is using discount level 2 with 0.45 discounted per item

I also am using a Group Discount of 10%, also set to NOT include tax and recalculate tax at STANDARD.

What I get is:

Sub-Total: $790 (200 items X $3.95)
Quantity Discount: - $90 (200 X $0.45)
Group Discount: - $69.24 (10% off)
Shipping: $98.95
Tax: $60.40 (0.084)
Total: $790.11

What I expect is:

Sub-Total: $790 (200 items X $3.95)
Quantity Discount: - $90 (200 X $0.45)
Group Discount: - $70.00 (10% off)
Shipping: $98.95
Tax: $61.23 (0.084)
Total: $790.18

The first part where it goes wrong is with the 10% group discount (off by $0.76). I think, after some fooling around, I have a clue as to why that 10% is off. It looks like the Quantity discount mod is not only reducing the $90, but also $7.56, which is the tax on that $90. So the group discount was calculated by (10% of ($700 - $7.56) = $69.24).

Anyways, is there a bug, or do I need to make an additional configuration change somewhere to get what I want?

Thanks!

26 Feb 2008, 11:53 PM
#246
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 should be using recalculate tax = none in quantity discounts if these are the number you wish to get.

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 Feb 2008, 12:17 AM
#247
danebrood avatar

danebrood

New Zenner

Join Date:
Sep 2007
Posts:
7
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hey there, thanks for the reply.

That definitely fixed the amount discounted. But then I have the issue of the final tax being too high.

What I'd like, and what I'd expect as a shopper, is that the site would add up the costs, subtract the discounts, then apply the tax.

So in this instance (790 - 90 - 70 + 98.95) = subtotal 728.95
728.98 X 0.084 = 62.23 in taxes.

I can't seem to get that to happen

27 Feb 2008, 12:22 AM
#248
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'd have to write code to make it work this way. This is not a feature which is currently provided.

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 Feb 2008, 12:42 AM
#249
danebrood avatar

danebrood

New Zenner

Join Date:
Sep 2007
Posts:
7
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

huh. well I see now that it's nothing to do with this Mod, but the way Zen calculates tax when there are discounts.

It's strange, I can't even duplicate Zen's results. Same strange results when using coupons. Tax is too low.

thanks for you comments

4 Mar 2008, 11:27 PM
#250
lvanderb avatar

lvanderb

New Zenner

Join Date:
Mar 2006
Posts:
27
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

What we've noticed with quantity discounts is that with:
a) Include Tax: false and Re-calculate Tax: None

  • the discounted items are NOT being taxed properly (the taxable amount doesn't have the discount applied), but the non-discounted items in the cart ARE being taxed properly as the taxable amount doesn't have the discount applied to it

b) Include Tax: false and Re-calculate Tax: Standard

  • the opposite happens, the discounted items ARE taxed properly, but the rest of the cart is undertaxed, as the taxable amount for those items is also getting the discount removed from it

Has anyone else noticed this?

Or am I totally off base? we did crunch numbers and this was the conclusion we came to that makes sense numberwise.

Does anyone have a solution for this besides the one we are coming to, which is, we can't use it?

Thanks,
Linda
ps running zen cart 1.3.7 and quantity discounts 1.5

5 Mar 2008, 12:50 AM
#251
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

"include taxes" means the discount is grossed up to include applicable taxes.
"recalculate taxes" means the taxes are lowered based on the new subtotal.

You might try upgrading to QD 1.9 but I don't recall making tax fixes after 1.5.

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.

26 Mar 2008, 2:26 AM
#252
supersnow avatar

supersnow

Zen Follower

Join Date:
Apr 2007
Location:
California, USA
Posts:
233
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Great mod, Just need a little help with the marketing text on the product info page. I am trying to understand the following from your FAQ page on your site:

If you have used the apply_special_category_discount() or apply_special_item_discount() exits, you should add text below the call to the get_() method you use to describe these special cases. As a convenience, each of the get_ methods now takes a product and category id, so you can modify the get_* function you're using in ot_quantity_discount.php to be aware of your exit logic. Alternately, you may make these messages conditional in your template using the logic described in my conditional messages tip.

What text should I be adding as I am using apply_special_category_discount. I have the following in my product info page using the examples from the conditional message to display the discount using the example 2 method.

<?php
if ( ($current_category_id != 6) &&
     ($current_category_id != 5) &&
     ($current_category_id != 1)&&
     ($current_category_id != 10)  )
{
$value = "ot_quantity_discount.php"; 
  include_once(zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . 
          '/modules/order_total/', $value, 'false'));
  include_once(DIR_WS_MODULES . "order_total/" . $value);
  $discount = new ot_quantity_discount();  
  if ($discount->check() > 0) {
     echo '<div class="content" id="discountPolicy3">';
      //echo '<h2>' . STORE_POLICY . '</h2>';  
     echo '<table border="1" bgcolor="#FFFF66"><tr><td>Quantity</td><td>Discount</td></tr>'; 
     $dislist = $discount->get_discount_parms();
     for ($i = 0; $i < sizeof($dislist); $i++) {
         echo '<tr><td>' . $dislist[$i]['level']; 
         if ($i == (sizeof($dislist) - 1)) {
            echo " + " ; 
         } else { 
            echo " - ";
            echo $dislist[$i+1]['level'] - 1; 
         }
         echo "</td><td>" . $dislist[$i]['discount'] .  "</td></tr>";
     }
     echo '</table>';
     echo '<br /></div>'; 
  }
}
?>
<?php
if ( ($current_category_id == 10) ||
     ($current_category_id == 6) )

{
** WHAT CODE DO I PUT HERE TO DISPLAY THE apply_special_category_discount FOR THE CATID OF 10 & 6 ***
}
?>

The first section shows the global quantity discount I set up in the admin under the order totals area. The second conditional section is to display the apply_special_category_discount for the particular cat I set up in the ot_quantity_discount.php. But I am confused in what code I need to put so it displays the discounts for these special categories and not the global discount. Please help and I don't understand your statement that I quoted above.

Thanks
Supersnow

26 Mar 2008, 5:53 AM
#253
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 no easy interface to this data; you'll have to create narratives for the logic that you coded in apply_special_* routines.

echo "Special offers for this category: buy over 10, get 5% off";

The apply_special* routines can be arbitrarily complex, so I can't reverse engineer the logic to create a message; you have to do that.

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.

11 Apr 2008, 7:05 PM
#254
cgoldberg avatar

cgoldberg

New Zenner

Join Date:
Sep 2007
Posts:
20
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hoping someone can help...the quantity discount is not calculating correctly at checkout.

These are my settings from Admin. Bug when a customer tried to make a $350 purchase, it only gave a 5% discount, when 15% should have been given based on the settings. Also, I realize that customers who order $100, a fairly common amount should be getting 5%, but are getting no discount. Any help/guidance would be greatly appreciated.

Quantity Discount

This module is installed
true

Sort Order
295

Include Tax
true

Re-calculate Tax
Standard

Discount Units
percentage

Discount Basis
Total By Item

Discount Level 1
100

Discount Amount 1
5

Discount Level 2
160

Discount Amount 2
10

Discount Level 3
240

Discount Amount 3
15

Discount Level 4
400

Discount Amount 4
20

Discount Level 5
1000

Discount Amount 5
25

11 Apr 2008, 8:09 PM
#255
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're using total by item. This means when you have discount level 1 set to 100, the person would have to buy 100 of any one item to get 5% off.

The Quantity in Quantity Discounts is Quantity of Products not Quantity of dollars spent.

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 Apr 2008, 9:31 AM
#256
elastic avatar

elastic

New Zenner

Join Date:
Dec 2007
Location:
New Jersey
Posts:
76
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

I have installed the files, but I got them from two different places. the admin side of things is available on the downloads page, but seems to be missing all the catalog files.

I got the catalog files from your website, and now I have installed everything. but! it's not showing up in the modules>>>order totals as an option for me.

maybe i missed crucial data, please point me in the direction of a fill set of files to download....

hmmn. really?

23 Apr 2008, 2:51 PM
#257
elastic avatar

elastic

New Zenner

Join Date:
Dec 2007
Location:
New Jersey
Posts:
76
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

just giving ths a bump. anyone know where the complete file set is?

hmmn. really?

23 Apr 2008, 2:57 PM
#258
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 files in the download area are all you need. Everything else on my site is an extra added bonus. If you can't get your installation to work, you should put an ad on the commercial help wanted forum.

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 Apr 2008, 5:53 PM
#259
elastic avatar

elastic

New Zenner

Join Date:
Dec 2007
Location:
New Jersey
Posts:
76
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

swguy:

The files in the download area are all you need. Everything else on my site is an extra added bonus. If you can't get your installation to work, you should put an ad on the commercial help wanted forum.

the folder in the downloads area is called: discount_1.8

as of right now, is contains only one includes folder, obviously for the admin side:

includes >> languages >>english>>modules>>order_total>>ot_quantity_discount.php

includes>>>modules>>>order_total>>>ot_quantity_discount.php

there are no catalog files in here.

is this really all there is to this mod, no extra data_files, or anything?
there are no catalog files in here?

hmmn. really?

23 Apr 2008, 6:27 PM
#260
elastic avatar

elastic

New Zenner

Join Date:
Dec 2007
Location:
New Jersey
Posts:
76
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

nevermind. i reinstalled and it worked fine, perhaps something in the cache was not getting updated.

hmmn. really?