All of the querystring operations described above also support passing a coupon code to the cart in the querystring. When coupon code is passed in the querystring the cart will look up the coupon code and apply the appropriate discount you have defined in the “Manage Coupon” screen. Coupon codes can apply to entire order or to a specific product.
Single Product and Coupon
To add a single product to the cart using a product id with a coupon format the url as follows:
https://www.mydomain.com/BuyNow/cart.aspx?ProductID=2&Coupon=50dollarsoff
Multiple Products and Coupon
To add multiple products to the cart using product ids with a coupon format the url as follows:
https://www.mydomain.com/BuyNow/cart.aspx?ProductID=5,6&Coupon=50dollarsoff
Product Variants and Coupon
To add products with variants to the cart with a coupon format the url as follows:
https://www.mydomain.com/BuyNow/cart.aspx?Variants=1~3~5;14~34~35~38&Coupon=50dollarsoff
Product Sku and Coupon
To add a product to the cart using product sku with a coupon format the url as follows:
https://www.mydomain.com/BuyNow/cart.aspx?Sku=ABC123&Coupon=50dollarsoff
In the BuyNow module settings coupons section the following radiobutton list affects coupon querystring operations:
• Disable Coupons - When selected coupons are not allowed on the cart page. The coupon textbox is hidded and coupons are not allowed to be passed in the querystring.
• Show Coupons - When selected a coupon textbox is displayed on the cart page and coupons can be passed in the querystring to apply discounts.
• Hide Coupons - When selected the coupon textbox on the cart page is hidden but coupons are still allowed to be passed in the querystring.