Solved

Custom Back in Stock form (Shopify)

  • 11 March 2021
  • 1 reply
  • 108 views

Badge

The Back in Stock implementation for Shopify (described here: https://help.klaviyo.com/hc/en-us/articles/360001895651-How-to-Install-Back-in-Stock-for-Shopify) doesn’t provide us with the level of customization that we would like to have. As such we are looking at implementing a custom Back in Stock form either via a legacy form method (similar to https://help.klaviyo.com/hc/en-us/articles/115005249588-How-to-Add-and-Customize-a-Legacy-Embedded-Signup-Form) or via a custom form and API request in the frontend (in JS).

This developer documentation for the API https://help.klaviyo.com/hc/en-us/articles/360006565332-Back-in-Stock-for-Mobile-App-Developers while not explicitly stated I believe is only for server side API calls as CORS blocks POST requests via JS.

Can anyone point me in the right direction here - add a user to back in stock list for a product via a custom form on the frontend, without need for server-side api calls. (or if there is no right direction - let me know!)

Many thanks!

Olly

icon

Best answer by julie.accardo 14 March 2021, 14:12

Hi @OllyWalker,

 

You do have the ability to make a front end API call to our Back in Stock endpoint. Below are a few screenshots from a PDF that we send to customers that are looking to set up a custom catalog. The only thing I am not 100% sure about would be whether you would need to set up a custom catalog or if you are good to pull the above data from the Shopify catalog. 

 

Figured I’d give you a starting point!

 

Hope this helps!

Julie

View original

1 reply

Userlevel 3
Badge +3

Hi @OllyWalker,

 

You do have the ability to make a front end API call to our Back in Stock endpoint. Below are a few screenshots from a PDF that we send to customers that are looking to set up a custom catalog. The only thing I am not 100% sure about would be whether you would need to set up a custom catalog or if you are good to pull the above data from the Shopify catalog. 

 

Figured I’d give you a starting point!

 

Hope this helps!

Julie

Reply