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 5 of 5

Thread: Coupon for free item, not already in cart

  1. #1
    bellybandit.com is offline Junior Member
    Join Date
    Jul 2009
    Posts
    24

    Question Coupon for free item, not already in cart

    Hi all,

    We provide our customers with a coupon code for a free item, and would like to know how best to implement this in ASPDotNetStoreFront. We do not want to require the customer to add the item to their cart, prior to entering the coupon code.

    The free item would not need to display in the shopping cart, if that makes a difference to the ease of the solution.

    We thought there would be a way to leverage the checkout event and an existing stored procedure to add the item to the customers cart so that inventory levels are correctly decremented too.

    Any ideas are extremely gratefully received.

    Thank you!

    Rob

  2. #2
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    Well, the only way I see here is to modify the ProcessCart on the shoppingcart.aspx.cs. Coupon validation is already out of the box, so whenever the coupon validator throws a valid flag, then you may force the ProcessCart to execute the sproc: aspdnsf_AddItemToCart to add the free item.

  3. #3
    bellybandit.com is offline Junior Member
    Join Date
    Jul 2009
    Posts
    24

    Smile

    Thank you for the suggestion Jao. We do not want to modify ProcessCart since it does not call AddItemToCart directly.

  4. #4
    Rita is offline Senior Member
    Join Date
    Mar 2009
    Posts
    124

    Default

    Quote Originally Posted by bellybandit.com View Post
    Thank you for the suggestion Jao. We do not want to modify ProcessCart since it does not call AddItemToCart directly.
    Did you find any other way to add a free product using the coupon code. Please share the your suggestion.

  5. #5
    bellybandit.com is offline Junior Member
    Join Date
    Jul 2009
    Posts
    24

    Default

    Hi Rita,

    Without forking out more money for the source code, there did not appear to be a solution to this issue.

    With regards,

    Rob