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 501 to 520 of 847
20 Jan 2010, 8:30 PM
#501
oneworldstudios avatar

oneworldstudios

New Zenner

Join Date:
May 2007
Posts:
47
Plugin Contributions:
0

Quantity Discounts for 1.3

jenbullfrog:

I have the Checkout Without Account (Fast and Easy Checkout mod) installed, and when customer chooses to pay with Paypal IPN, he gets charged full price instead of the discounted price, even though the discounts do show up in cart and on order page.

Now I don't know yet whether the correct total is being passed to payment gateway (authorize.net emulator). We haven't had a qty discount authorize.net sale, but the store has only been live for one day.

Everything appears to be correct in ZenCart Admin, discount and correct total displays on the order, the only thing I can see that's wrong is Gross Amount: in the payment section of the order.

This is exactly the problem we have. It works fine if someone signs in, but doesn't work if they select PayPal as the payment option in COWOA. The gateway processes fine either way. Also the Paypal Express button works fine so it's definitely a COWOA issue, but we can't pinpoint it...

Zack Coffman
Producer/Director of Choppertown and Brittown

20 Jan 2010, 8:35 PM
#502
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 probably want to post in the COWOA thread; someone else supports 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.

21 Jan 2010, 3:33 AM
#504
lunabug avatar

lunabug

New Zenner

Join Date:
Dec 2009
Posts:
94
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

lunabug:

Not quite there yet...

I updated the code as stated in note 3, nothing changed in the text, still no numbers.

So, now it must be the issue about excluding categories. I have all my products in 2 categories: one that is discounted, one that is not. Both these categories are the master categories for the products and are hidden/inactive, all the products are linked into their 'end user' categories.

I have excluded the master category ID in the user exit code:

  • function exclude_category($category) {
    switch($category) {
    case 16:
    return true;
    }
    return false;
    }*

which brings me to note 4... how does it determine "$current_category_id"?

I was able to fix this myself, seems there's a bug when you use linked categories. The code only uses the current_category_id, where I am excluding master categories.

I was also able to exclude my wholesale group from the quantity discount. I created a session variable for the discount_group and was able to excluded it.

I was floating in a peaceful sea...rescued by a sinking ship.

21 Jan 2010, 7:48 AM
#505
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

lunabug:

I was able to fix this myself, seems there's a bug when you use linked categories. The code only uses the current_category_id, where I am excluding master categories.

This issue - and other category related behavior - is described in http://www.thatsoftwareguy.com/zencart_category_issues.html
See "Marketing Text and Linked Items in Quantity Discounts" for my suggested workaround.

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.

30 Jan 2010, 5:16 PM
#506
mldnkslvc avatar

mldnkslvc

New Zenner

Join Date:
Jan 2010
Posts:
7
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

twistertires:

Seems easy enough, I modified the ot_quantity_discount.php page with the following in case it helps anybody in the future. (the add dealers portion)

   for ($i=0, $n=sizeof($products); $i<$n; $i++) {
      // Add categories you wish to exclude to exclude_category()
      if ($this->exclude_category($products[$i]['category'])) {
          continue; 
      }
      // Add products you wish to exclude to exclude_product()
      if ($this->exclude_product($products[$i]['id'])) {
          continue; 
      }
// Add dealers

if ($_SESSION['customer_id']) {
$customers_id = $_SESSION['customer_id'];
$customer_check = $db->Execute("select * from " . TABLE_CUSTOMERS . " where customers_id = '$customers_id'");
if ($customer_check->fields['customers_whole'] != "0") {
$disc_amount = 0;
continue;
}
}

where exactly did jou put this code..? i am using quantity discount mod v 1.10.... i have some troubles putting that code in the script... where ever i put it and ther eload the page,the page is blank.... i need this badly...thank you in advance...

31 Jan 2010, 3:33 PM
#507
olieve avatar

olieve

New Zenner

Join Date:
Nov 2008
Posts:
5
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

hello,

I installed quantity discounts module.
Zen-cart version 1.3.8a.
Admin-Modules-Order Total : Include Tax = False / Re-calculate Tax = Standard

Now I noted following problem.

I sell products with **2 differtent taxes **(6% and 21% - belgium).

I apply quantity discount (% ) for only one category-id.

If customer only buys products from that category, calculation just works fine.
But if customer selects products form another category (where tax% also is different) order calculation is wrong.

I give an example.
Category = 69 ; if quantity is more than 3 than discount of 7% must be applied.

Customer selects 4 products in the category 69.
Price 12,50 euro each.
tax : 6%

So subtotal : 50,00
Quantity discount : -3,30 (= 50 x 7% / 1,06 tax excluded)
vat 6% : 2,63
total : 46,50 (that's correct)

Now customer add 1 item of another category, and subject another tax % (21%) , 41,94 tax included

Subtotal : 91,94
Quantity discount : -3,30
vat 6% : 2,63
vat 21% : 6,59 (not correct) 7,28
total : 87,75 (not correct) - must be : 88,44

Can anyone tell me how to solve this ?
Now I loose money because I have to pay the right Vat to the VAT Administration.

Thanks for your quick reply.
Olieve
http://www.olieve.be

31 Jan 2010, 3:47 PM
#508
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

This situation is not well handled by the current code. In 2.0 the checkout logic is changing to I might be able to do a better job of tax calculation.

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.

1 Feb 2010, 6:22 PM
#509
olieve avatar

olieve

New Zenner

Join Date:
Nov 2008
Posts:
5
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Do you mean "Quantitiy Discounts version 2.0" ? Is it already downloadable ?

Olieve

1 Feb 2010, 6:45 PM
#510
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

No, I meant Zen Cart 2.0.

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.

2 Feb 2010, 8:27 PM
#511
mldnkslvc avatar

mldnkslvc

New Zenner

Join Date:
Jan 2010
Posts:
7
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Is there a way to disable quantity discount for wholesale users but not the discount set in quantity discount module but the discount set in product price manager?

23 Feb 2010, 3:52 PM
#512
taggtristan avatar

taggtristan

New Zenner

Join Date:
Feb 2010
Posts:
1
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Zen Cart™ Version: v1.3.8
Quantity Discounts Version: 1.10a

I want my first item to be $4.50.

I want every item after that to be $2.00.

What's the best way to do this?

23 Feb 2010, 4:50 PM
#513
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

This sort of tiered pricing is not supported in 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.

13 Mar 2010, 11:36 PM
#514
shelby89 avatar

shelby89

New Zenner

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

Re: Quantity Discounts for 1.3

I am using Zen 1.38a with 1.10a quantity discount mod.
I want to discount 2nd and 3rd products from the same category by 25% but not the first item in the cart.
I have got it to work by using the currency amount. My problem is I want to exclude other product id's.
I edited the function Product Exclusion in file ot_quantity_discount but it didn't work. It's in the custom folder. When I add the excluded product to cart it still shows discount for 2 products.

Here is what my ot_quantity_discount file looks like

// Add products you wish to exclude to this list.
// Go to Admin->Catalog->Categories/Products->[Your category]
// and look at the left hand side of the list to determine
// product id. Note that 99999 and 99998 are just given
// as examples.
function exclude_product($prid) {
$id = (int)$prid;
switch($id) {
case 3:
return false;
}
return true;
}

3 is the product id I want to exclude. Is this code correct?

I figured out how to get the discount correct but can't get the other products excluded.

Thanks, Shawn

14 Mar 2010, 1:22 AM
#515
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 statement

It's in the custom folder.

may be the problem. The file should be under includes/modules/order_total. These files cannot be overridden.

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.

31 Mar 2010, 2:20 PM
#516
christene avatar

christene

New Zenner

Join Date:
Apr 2008
Posts:
2
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Does this module allow me to do "Buy 5 Get One Free" for a category? I have items of a few prices in a category. If my user buys 5, they get the lowest priced item free. Thanks. Christene

31 Mar 2010, 2:39 PM
#517
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

No, this kind of thing is not what Quantity Discounts does. 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.

3 Apr 2010, 12:49 PM
#518
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Quantity Discounts 1.11 is now available. This version features another tax setting (Re-Calculate Tax = VAT) for tax included shops. If you do not run with Display Prices with Tax = true, you may skip this upgrade.

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 Apr 2010, 12:36 AM
#519
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Quantity Discounts will work fine for non-VAT liable, non-tax-included shops in 1.3.9. I will release another version after 1.3.9 is finalized which is compliant with the new style of tax handling for tax-included shops in 1.3.9.

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 May 2010, 7:32 PM
#520
vvhorus avatar

vvhorus

New Zenner

Join Date:
May 2009
Posts:
10
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hello:

I'm running ZenCart 1.3.9c and Quantity Discount 1.10. Here's my configuration:

Discount Units: currency per item
Discount Basis: Total By Category
Counting Method: items
Discount Level 1: 1
Discount Amount 1: 0
Discount Level 2: 6
Discount Amount 2:.51
Discount Level 3: 21
Discount Amount 3: .70
Discount Level 4: 36
Discount Amount 4: .83
Discount Level 5: 51
Discount Amount 5: .92

I have a category in which all items have the same price ($6.44), and according to the amount of items you order, it should apply the corresponding discount. But, at checkout, I noticed that it applies the discount per individual item count, and not by total items of that category. For example, if I order 17 items of product A and 52 items of product B @ $6.44 each, your module (with my current configuration) is applying the discount to each individual group ($6.44 - $.51 per item of product A and $6.44 - $.92 per item of product B). Is there a way for the module to count all items of the same category and apply the discount then (69 items @ $6.44 - $.92 per item)?

Here's what I get at checkout with the following example:

Subtotal: $444.36
Discount: -56.51 -- if you do the math, the discount should be $63.48 (69 items @ 5.52 each = $380.88 and 444.36 - 380.88 = 63.48 discount)

How can I change the configuration to apply the discount to all items in the same category?

Thanks!!