Can I access Buy X Get Y products on a product page?

Can I access Buy X Get Y products on a product page?

johnmslickhorn
Visitor
3 0 0

Hello,
I'm the developer of my shopify store. I am trying to write a liquid snippet that works on the product page that will grab a particular product data, let's say "Black Phone Case". If the "Black Phone Case" product has a connection to a Buy X Get Y discount, then I want to pull the correlating product that a user can get with that discount. Let's say it's setup that if a customer adds the "Black Phone Case" to their cart, then if they add the product "Screen Protector" to their cart too, they automatically get the discount without a code. I know this is possible, but what I am not sure about, is this:

On the "Black Phone Case" product page, I need to get a reference to the "Screen Protector" product from the Discounts data in Shopify. With the product reference in liquid, I will show a "Bundle With" section where I list products the "Black Phone Case" pairs with, like the "Screen Protector" in this scenario. When a customer adds one of these products to their cart as well, then they get the discount easily.

 

I DON'T want to make my Shopify team have to add metafields for each discounted product that matches with a particular product. That would work, but would require lots more work and more room for errors. I want to instead just pull the data directly from the discounts on Shopify that correlate with a particular product.

Is this possible to do within Shopify? Or do I need an app?

 

Thanks for your help.

Replies 3 (3)

johnmslickhorn
Visitor
3 0 0

Bump. Really want to know if this is possible.

Abel_Lesle
Shopify Partner
150 1 12

Hi @johnmslickhorn - Lesle this side from Dollarlabs. We make discounting easy for merchants.

 

There are multiple ways to configure this to show up on your product pages effectively. 

  1. Using JS / Liquid to manually code in the offer on your product template 
  2. Using product / variant metafield to store the related product & offer details

The problem with both this is that it needs to be configured separately from what you've setup in your admin and there's no real direct way to keep both in sync without building a custom app / do some complex workaround using Shopify flows / webhooks.

 

Can you help me with a visual for how you want the product page to look like / highlight the buy product A - get product Y at X% off?

 

We're building discount templates for our merchants that make the experience super seamless, and I believe this will be a great theme extension that we can build out for our app.

 

Feel free to reach out if you have any questions / think this is a solution in the right direction. 

 

Regards

 

Founder - Dollarlabs : Ultimate Discounts (5★)
- If you can think of a discount, you can build it
- Built for Plus merchants using Rust
johnmslickhorn
Visitor
3 0 0

Hello Lesle, I'm looking for a something that looks like what Amazon currently does.

CleanShot 2025-02-20 at 08.33.20@2x.png

 

Something that allows a user to see the items and the percent off that they gan get if they choose to bundle.

Do you know of existing apps that have this functionality?