Add free gift product to 2nd order (recurring customer)

Add free gift product to 2nd order (recurring customer)

CarloVialiv
Tourist
9 0 1

Hi,

 

as the subject says, we would like to send customers a free gift product with their 2nd order. We are using a fulfillment service, so the gift product needs to be added automatically to the order.

 

So basically the flow would be the following:

Customer order comes in -> if 2nd order of this specific customer -> then add gift product X to the order

 

if not 2nd order, but (1st) or (3rd order or higher) > then do not add gift product X to the order 

 

Does anyone know how to do that? Maybe with an app? We can't do these things manually obv.

Thanks in advance
Carlo

Replies 7 (7)

Guleria
Shopify Partner
3422 681 965

Hello @CarloVialiv ,

Through custom code, count the total or past orders

if customer order == 2 then add gift product automatically in background.
e.g. 

{% if  customer.orders_count == 2 %} 

Do you code to add gift product to cart in background 
{% endif %}
Here you have to take care of cart also means  if cart is empty then free product will not added to cart. 
 

Thanks

- If helpful then please Like and Accept Solution.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com
- Try GEMPAGES a great page builder
PageFly-Richard
Shopify Partner
4668 1069 1726

Hi @CarloVialiv,

 

I'm Richard - CRO Expert at PageFly Landing Page Builder. Welcome to Shopify Community!

 

Regarding your concern, you could refer to the app Free Gifts BOGO Buy x get y by Secomapp https://apps.shopify.com/freegifts. As far as I acknowledge, this app allows merchants to send free gifts based on their customers' order history.

 

Hope my answer will be helpful to you. 

 

Best of luck!

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

CarloVialiv
Tourist
9 0 1

Hey @Guleria ,

 

thank you for the quick response. However how is that possible if a customer doesn't have an account?

How is the history being checked then?

 

Our idea is to add the free gift after the customer has made a purchase. So the customer makes a purchase, then the system checks for customer history and if more than 2 orders in total -> add hidden free product X to the current order.

 

Is something like that possible?

@PageFly-Richard 
we have tried the app but it only works with customer accounts. so they need to be logged in. we don't do customer accounts. but thanks for you tip!

Guleria
Shopify Partner
3422 681 965

Hello @CarloVialiv ,

Possible with webhook or custom app

 

Thanks

- If helpful then please Like and Accept Solution.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com
- Try GEMPAGES a great page builder
CarloVialiv
Tourist
9 0 1

Hi @Guleria 

 

thanks for the answer. I contacted 5 different coders now but they tell me it's impossible to do that.

 

Can you give me more detail on the webhook solution so I can forward that to them?

 

Thank you a lot!

Guleria
Shopify Partner
3422 681 965

With webhook store each order details in database. Before inserting the order details to database check, Is there any order in database with same email ID is available in database If yes count it and do you logic accordingly. 

- If helpful then please Like and Accept Solution.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com
- Try GEMPAGES a great page builder

PackLabelShip
Shopify Partner
36 1 0

Hey Carlo,

 

I've built and app that lets you create rules that do exactly this! I made a short demo video so you can see exactly how it works and get it setup easily. This is unique to customer EMAIL and uses Shopify's logic to distinguish customers.

 

Link to the app: https://apps.shopify.com/pls-smart-pack-ship

 

Video Demo:

 

Putting Custom Packaging and Order Inserts back in the Merchant's hands!