Skip to product information
1 of 1
Published:2024.09.10

Example of setting up a gift when a purchase is made from a specific source on Shopify

Example of setting up a gift when a purchase is made from a specific source on Shopify

Applications

  • DiscountEdit

How to implement

  • LIQUID
  • Shopify Flow
View full details

With Shopify, you can use a discount (coupon) promotion URL to offer discounted sales to visitors who come from a specific page (such as an influencer account), but this is an example of how to set it up if you want to run a campaign that automatically gives away products instead of offering a discount.


Example of setting up a gift when purchasing from a specific source


[Method 1] Add a customized Liquid section to the header group and insert code that sets the from parameter to the cart attributes.


[Setup Method 2] Create a Flow that adds a product to an order when specified values are set in the cart attributes.


After making a purchase (all items are ¥0), you will be able to view the sample code.

If you have already made a purchase, please login here.

Sample Codes

Test Theme :Dawn/Rise 15.2.0

Add a customized Liquid section to the header group and insert code that sets the from parameter to the cart attributes.

Related Post