How to send custom data with Shopify Buy Button?

tabrock
Visitor
2 0 1
I have a third-party website that currently hosts buy buttons using the Shopify Buy Button. These buttons work great for selling regular products!!

 

However, I want to sell customized products fulfilled through my Shopify back-end. The customer does not need to enter any data; all I need to keep track of is a single GUID associated with the product line item. It looks like people have been asking for this for a long time: https://github.com/Shopify/buy-button-js/issues/598

Is it possible send some data with Shopify Buy Button?

 

After digging through the documentation, forums, and APIs, I couldn't find a way to send custom data with the Shopify Buy Button in 2024.

 

The closest 'solution' I found was using metafields, but this approach requires creating a new product for each order. This complicates things:

 

  1. There is no API-supported way to hide the product from the online store while still rendering a buy button. So if a custom product is created, it will show up on my store. There doesn't seem to be an API way to set the sales channel either.

  2. It's not ideal to create an entirely new product for each customer when they are essentially buying the same base product with customizations. There could be hundreds of products added per day, at the low end. If I HAVE to do this, I am open to cleaning up the data- but I am blocked by 1) above.

My goal is to link the custom information (the GUID) between my back-end and Shopify without creating a new product for each order. I'd prefer to just set this as a line item property when adding the item to the cart, because customers can add more than one custom product to their cart?

Is there any way to achieve this using the Shopify Buy Button or any other Shopify API? If not, what would be the recommended approach to handle customized product orders from my 3rd party site?

This is a major blocker... Thank you in advance for your help!

Replies 2 (2)

characterzoom
Visitor
1 0 0

I also need this same functionality.  I want to be able to send a guid identifier with the digital product buy now button order and then be able to use that guid in a link in the email that get's sent to the customer to download their digital product which is a dynamically generated report on the website where the buy now button is hosted.  How can we make this work?

tabrock
Visitor
2 0 1