Back to Community feed
Question

Add a gift product based on discount code in shopify

I am trying to add a discount code in the admin panel to "FREEGIFT" buy x get y, so when the customer add any product in the cart, he can proceed to the checkout page where we have the Discount code field, but my issue is, in Shopify the customer needs to add both x and y to the cart in order to get the discount code, which is not working for me. So, what i was trying to do is, editing the checkout page to get the input value, if it is equal to "FREEGIFT" then add the gift product to the cart page. But i figured out that we can't access the checkout page code or add any javascript code. So what do you suggest? i appreciate any help. Thank you in advance.

How to implement marketing automation?

ActiveCampaign is a marketing and sales automation platform that helps growing businesses meaningfully connect and engage with their customers. Its SaaS platform enables businesses to create optimized customer experiences by automating many behind the scenes processes and communicating with their customers across channels with personalized messages.

Ads

Answers

Pipedrive
Sponsored
Pipedrive is a Flexible, highly focused on driving the sales, and easy-to-use CRM software built by salespeople and marketing professionals with a single goal – to simplify your sales process and assist salespeople in clinching the deals. Using Pipedrive CRM you can focus on the right people at the right time and convert those people into deals.
4 answers, 0 articles
Reply