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)

Developer-G
Shopify Partner
3073 603 855

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.
- Want to modify or custom changes or bug fix on store Hire me.
- Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
-Advance Search Filter
PageFly-Richard
Shopify Partner
4206 951 1599

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!


PageFly - #1 Page Builder for Shopify merchants.


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

CarloVialiv
Tourist
9 0 1

Hey @Developer-G ,

 

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!

Developer-G
Shopify Partner
3073 603 855

Hello @CarloVialiv ,

Possible with webhook or custom app

 

Thanks

- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on store Hire me.
- Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
-Advance Search Filter
CarloVialiv
Tourist
9 0 1

Hi @Developer-G 

 

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!

Developer-G
Shopify Partner
3073 603 855

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.
- Want to modify or custom changes or bug fix on store Hire me.
- Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
-Advance Search Filter

PackLabelShip
Shopify Partner
16 0 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!