Apply Discount Code via URL

Developer Nut
License Free
Compatibility CubeCart v6
Date Added 27th Jul 2015, 22:26
Last Updated 27th Jul 2015, 23:47
Downloads 1,455

Free

  • apply-discount-via-url.zip
Description
Documentation

Apply discounts automatically by adding "coupon_code=" to your inbound URLs, eg:

  • http://www.example.com/?coupon_code=ABC123
  • http://www.example.com/myproduct.html?coupon_code=ABC123
  • http://www.example.com/index.php?_a=account&coupon_code=ABC123

Coupons can be applied on any page, the discount value is displayed at the checkout.

Install:

Download the zip file and extract the xml file.

Login to the admin side of your store and go to "Manage Hooks" > "Import Code Snippets".

Select the extracted xml file and click "import".

To change the key name in the URL from 'coupon_code', once installed, edit the snippet and edit $_GET['coupon_code'] in both places.

 

 

Ref: 112/215