All things Shopify and commerce
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.
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!
Hi, @Villle!
The discount appears to be functioning correctly, as the correct price appears once you reach the checkout:
However, it does appear incorrectly in the cart as you showed above:
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
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.
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.
Hi @Villle,
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!
Hi @Villle,
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.
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...
Hey, @Villle!
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
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.
@Villle -
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
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025