Add free gift to Shopify cart - (NEED DONE TODAY)
- or -
Post a project like this205
£65(approx. $82)
- Posted:
- Proposals: 5
- Remote
- #4067566
- Awarded
Description
Experience Level: Entry
We want to automatically add a free gift to cart when value is over £80 and then remove it if value drops below £80 - This needs to be only for new customers or customers with 0 orders.
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.
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
-
could you please share more details about your current Shopify setup and any existing apps or customizations you have in place that might interact with the cart or customer data?
1073981
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