Embedding Coupon Codes in Links

I tried this: https://ecommerce.shopify.com/c/shopify-discussion/t/autofill-discount-via-url-a-step-by-step-walkthrough-eg-auto-apply-discount-code-using-a-link-266537

The idea is to embed this javascript into your theme, then you can add coupon codes directly to URLs.  This means in your marketing emails you can have a “click here to buy at 50% off” link.  Also good for “Free Plus Shipping” offers on adwords.

The tutorial works mostly without a hitch but wasn’t applying the discount.  The trick was that my theme was slightly different.  The <form> tag didn’t have the id=”cartform” element in it that is required for the last snippet of javascript.  Add that to the form and it worked.  I’m using “simple” theme BTW.

One thought on “Embedding Coupon Codes in Links”

  1. Hello! Do you know if they make any plugins to assist with Search Engine Optimization? I’m trying to
    get my blog to rank for some targeted keywords but I’m not
    seeing very good success. If you know of any please share.
    Appreciate it!

Leave a Reply

Your email address will not be published. Required fields are marked *