
Add free gift to Shopify cart - (NEED DONE TODAY)
- or -
Post a project like this740
£50(approx. $66)
- Posted:
- Proposals: 10
- Remote
- #4066147
- Awarded
WordPress Developer | IT Support Specialist | Social Media Management | Graphics Designer

PPH #1 "Top Rated" Service Provider in Development & IT : Wordpress, Shopify, Magento, Squarespace, ZOHO, WHMCS, Salesforce, Vtiger, Learndash, Moodle

88383271007179726932711036849023598252724255648910791102785795172537323





Description
Experience Level: Entry
We want to add a free gift to cart when value is over £40 and then remove it if value drops below £40 - This needs to be only for new customers or customers with 0 orders.
We're Shopify Plus so can use script editor for this.
Use liquid to check the customer object for past purchases using https://shopify.dev/docs/api/liquid/objects/customer#customer-orders_count If this is 0 output the template logic that triggers the offer
Use JS with the AJAX API to add the free gift to the basket https://shopify.dev/docs/api/ajax/reference/cart
Use the same AJAX API to remove the gift if the offer is no longer valid
Please start your message with "API YAY" otherwise will be rejected.
We're Shopify Plus so can use script editor for this.
Use liquid to check the customer object for past purchases using https://shopify.dev/docs/api/liquid/objects/customer#customer-orders_count If this is 0 output the template logic that triggers the offer
Use JS with the AJAX API to add the free gift to the basket https://shopify.dev/docs/api/ajax/reference/cart
Use the same AJAX API to remove the gift if the offer is no longer valid
Please start your message with "API YAY" otherwise will be rejected.

Joshua C.
100% (8)Projects Completed
3
Freelancers worked with
3
Projects awarded
56%
Last project
5 Sep 2023
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies