Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 4 of 4

Thread: Quantity discount per variant

  1. #1
    donttryathome is offline Senior Member
    Join Date
    Apr 2009
    Posts
    171

    Default Quantity discount per variant

    Our site is setup using quantity discounts.

    The problem we're running into is that when a customer adds 10 a product(of variant 1) and then 10 of the same product(variant 2), the quantity discount changes both items in the shopping cart to reflect a quantity discount of 20.

    We need to change this so that quantity discounts aren't linked by variant.

    i.e. If they add 10 of variant one they get the "purchased 10 quantity" discount, and then when they add 10 of variant two they get the "purchased 10 quantity" discount for that item as well, instead of combining both variants and changing the discount to "purchased 20 quantity".

    How is this done?

    Thanks

  2. #2
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    The simple answer is to make two different products, each with 1 of your variants. The quantity discounts apply at the product level, so any variant that belongs to the product falls under those rules.

    The complex answer requires source code, and requires you to modify the underlying discount structure and the way quantity discounts are handled. This will involve changes to the admin section (to set the quantity discount table structure on the variant level), the ProductVariant table (to allow the variant to be mapped to a quantity discount table), the aspdnsf_GetCartSubTotalAndTax stored procedure, the ShoppingCart class, the XSLTExtensionBase class, the AppLogic class, and most likely a few others depending on how in-depth and where you need to make sure this applies.
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  3. #3
    nihon is offline Senior Member
    Join Date
    May 2008
    Posts
    150

    Default

    I have done this change if you need code for this change let me know ..
    Version (Code/DB):
    AspDotNetStorefront ML 8.1.2.0/8.1.2.0

  4. #4
    dgranito is offline Junior Member
    Join Date
    Mar 2009
    Posts
    5

    Default quantity discount by variant

    I would need the code for implementing Quantity Discount per Variant.
    Please let me know if you can help .

    Thank you,
    Dominic