{"id":2939,"date":"2014-06-09T01:31:26","date_gmt":"2014-06-09T01:31:26","guid":{"rendered":"http:\/\/www.tipsandtricks-hq.com\/ecommerce\/?p=2939"},"modified":"2015-10-23T13:11:06","modified_gmt":"2015-10-23T02:11:06","slug":"apply-a-discount-or-coupon-code-via-a-url-or-link","status":"publish","type":"post","link":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/apply-a-discount-or-coupon-code-via-a-url-or-link-2939","title":{"rendered":"Apply a Discount or Coupon Code to the Cart via a URL or Link"},"content":{"rendered":"<p>WP eStore plugin has a feature to apply a discount code via the URL.<\/p>\n<p><strong>Step 1)<\/strong> First, you need to install the <span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-estore-shortcodes-and-functions-reference-460\">extra shortcodes addon<\/a><\/span> (if you haven&#8217;t done it already)<\/p>\n<p><strong>Step 2)<\/strong> Now, you can append the following query argument to the end of an URL to create a link that will apply the discount code in the shopping cart:<\/p>\n<pre>?discount_code=COUPONCODE\r\n<\/pre>\n<p>Lets say for example, the WP eStore shopping\u00c2\u00a0cart is on the &#8220;http:\/\/www.example.com\/cart&#8221; page, then the URL with the discount code will be the following:<\/p>\n<pre>http:\/\/www.example.com\/cart\/?discount_code=COUPONCODE\r\n<\/pre>\n<p>When you create a link using the above URL, it will apply the discount in the cart.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2940\" src=\"http:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-content\/uploads\/2014\/06\/apply-discount-coupon-code-via-url-example.png\" alt=\"apply-discount-coupon-code-via-url-example\" width=\"300\" height=\"289\" \/><\/p>\n<h3>Add Item to the Cart and Apply Discount At the Same Time<\/h3>\n<p>Sometimes you may want to add an item to the shopping cart via a link and then apply a discount to the cart at the same time. You can do that by specifying the discount code in the URL when using the purchase product via link feature.<\/p>\n<p>When you do this, the customer clicking on the call to action link will see that the\u00c2\u00a0item is added to the cart with a discount applied to it.<\/p>\n<p>You can learn how to use this feature <a href=\"https:\/\/support.tipsandtricks-hq.com\/forums\/topic\/estore-how-to-use-a-text-link-to-accommodate-the-purchase-of-a-product\" target=\"_blank\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WP eStore plugin has a feature to apply a discount code via the URL. Step 1) First, you need to install the extra shortcodes addon (if you haven&#8217;t done it already) Step 2) Now, you can append the following query argument to the end of an URL to create a link that will apply the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[13],"tags":[188,37,146,145,32],"class_list":{"0":"post-2939","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-additional-resources","7":"tag-coupon","8":"tag-coupons","9":"tag-discount-coupons","10":"tag-dynamic-coupons","11":"tag-wp-shopping-cart","12":"entry"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts\/2939"}],"collection":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/comments?post=2939"}],"version-history":[{"count":0,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts\/2939\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/media?parent=2939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/categories?post=2939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/tags?post=2939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}