Re: Buy X get Y not giving discount

Why is my Buy X get Y not applying the right discount?

OptikkoUkkonen
Tourist
8 0 1

Hi!

I have a little problem with the Buy X get Y automatic discount and I'm not sure if I'm making some sort of mistake or if the discount is bugging.

I want to get the discount as: buy 3 products but pay for 2. So for example if my customer buys 3 contact lens solutions for 11€/piece they should be paying 22€ in total.

Right now when I try it and add 3 items to my cart it shows 2 as normal full price and 1 at -100% price but still charges for it? And I tried to go to the payment page but it still doesn't update the price to a correct one.

Untitled1.jpgUntitled2.jpg

You are free to check my store at: https://optikkoukkonen.store/

Its all in Finnish though.

Hopefully someone will be able to help me! Thanks!

Replies 9 (9)

Brie
Shopify Staff
571 48 113

Hi, @OptikkoUkkonen!

The discount appears to be functioning correctly, as the correct price appears once you reach the checkout: 

 

20-29-qbrt5-irt02

 

However, it does appear incorrectly in the cart as you showed above: 

 

20-30-dnzxu-1t4d3

 

As the issue is just on the cart page, this is most likely a theme related issue. What theme are you using? As well, have you done any custom coding on the cart page? Cheers! 

Brie | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

OptikkoUkkonen
Tourist
8 0 1

Oh weird now it shows the correct price for me too when I got to the checout page. I'm using the Simple theme and no, I have not added any custom coding to the cart page. When I upload the page the correct price "flashes" in the screen but is quickly changed to the incorrect price.

OptikkoUkkonen
Tourist
8 0 1

Hello, @Brie 

I think I found the culprit which causes the problem. I recently installed the Infinite Product Options app by HulkApps and did a bit of research. On their sites FAQ they say that the Ajax cart might cause the problem and as an answer tell the user to disable the Ajax cart but I don't find an option for that anywhere. Any ideas on how to solve this? Also I checked the cart.liquid code and installing the app changed that in some way.

jasonavada
Shopify Partner
333 11 42

Hi @OptikkoUkkonen,

We wrote a guide on how to create a buy x get y discount on Shopify. Take your time to have a look at it and maybe your problems will be solved!

I'm Jason Dao, Manager of Research & Development Department at Avada Ecommerce.

ShopMaster_ERP
Shopify Partner
270 7 45

Hi @OptikkoUkkonen,

  This is Ellie from the ShopMaster team. ShopMaster is a complete solution of dropshipping for worldwide sellers.

  Here is a video for you to know more about creating this kind of discount on Shopify.

 

If you are doing dropshipping, you can directly use ShopMaster to create "Buy X Get Y" products.

 

❤️ ShopMaster.com - FREE dropshipping solutions
✔️ Import products | Pirce and Inventory Monitor | Auto-order | Auto Fulfillment
Official dropshipping partner of AliExpress, Banggood, CJDropshipping, and Chianbrands
OptikkoUkkonen
Tourist
8 0 1

The problem is not with creating the discount, it is with the cart not updating correctly. I changed the theme (which I was planning to do anyway and got the customization done today) and now it works a bit better I guess. If I add the 3 items straight away to the cart it shows the discount right but the total price wrong. However if I add 2 items into the cart, go to the cart and manually add one more item it shows the discount and price right? Not sure where the problem is now...

Brie
Shopify Staff
571 48 113

Hey, @OptikkoUkkonen

An app's coding would translate to all of your themes, so I'm afraid changing the theme wouldn't solve the issue if it's being caused by an app. Would you be able to remove the app to test to see if this is the case, or are you currently using that app for your products? 

Brie | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

OptikkoUkkonen
Tourist
8 0 1

Hello, @Brie 

Yes, I'm currently using the app for multiple listings. I'll contact the app developers if they have a solution to this before trying to delete the app to save a lot of hassle if they are able to help me.

Brie
Shopify Staff
571 48 113

@OptikkoUkkonen -

Sounds good! If they take a look and conclude that the issue isn't caused by the app's coding, feel free to let me know here. 

Brie | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog