Both of these questions are answered in the notes that follow the marketing text examples. See notes 3 and 7.
Printable View
Both of these questions are answered in the notes that follow the marketing text examples. See notes 3 and 7.
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"?
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...
You probably want to post in the COWOA thread; someone else supports that.
The solution at the following link fixed the issue for us:
http://www.zen-cart.com/forum/showth...nt+code&page=2
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.
This issue - and other category related behavior - is described in http://www.thatsoftwareguy.com/zenca...ry_issues.html
See "Marketing Text and Linked Items in Quantity Discounts" for my suggested workaround.
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
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.