We have a client that wants to allow a discount based on the total quantity for all products using the same discount table. What's the best way to accomplish this? We have the source code (v.8) and fully expect to do customization.
Thanks,
John
We have a client that wants to allow a discount based on the total quantity for all products using the same discount table. What's the best way to accomplish this? We have the source code (v.8) and fully expect to do customization.
Thanks,
John
Can't this be done by the built-in Quantity Discount mechanism? What do you exactly mean when you say "discount based on the total quantity for all products
using the same discount table"?
Say you had a discount table called "hanger_discount", that took 10% for 100 or more Hangers.
If Product A (Wooden Hangers) uses the "hanger_discount" table and the shopper has 50 of product A in there cart
And Product B (Childrens Plastic Hangers) also used the discount table and the shopper has 50 of Producct B in there cart, then the sum of the quantity for the two products would be 100 and would meet the quantity level for both products to get 10% off.
Hope that clarifies it.
Please note that 50+50 was just a random number chosen, values could be 99 + 1, or 22+78, the important part is the sum of the quanties is >= to the discount limit.
John
In v8 that's going to take changes in quite a few places in ShoppingCart.cs, as well as the aspdnsf_GetCartSubtotalAndTax stored procedure. You'll have to follow these directions before you can edit that.
In version 9, all of that logic's been rewritten and consolidated, which would make that modification much easier. You might want to look into upgrading before taking on a project like that, as it'll be easier to upgrade later on if you're already on the newer codebase.