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: Exclude variant for coupon

  1. #1
    MikeI is offline Junior Member
    Join Date
    Jan 2006
    Posts
    25

    Default Exclude variant for coupon

    I have products that have 3 variants and I want to exclude one of the variants from a product coupon.

    What would I need to modify to enable this function?

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    What version are you using? The coupon handling code changed a good bit in 9.x

  3. #3
    MikeI is offline Junior Member
    Join Date
    Jan 2006
    Posts
    25

    Default

    Ml 8.0.1.2/8.0.1.2

  4. #4
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    That's going to take changes in ShoppingCart.cs, in the ASPDNSFCore project. Most of the work should be in the ValidateNewCoupon method, but you'll also have to add a way to set that in the admin site, and add logic in a few other places in ShoppingCart to pull that variant value.