add custom data to a product page

Solved
Highlighted
Tourist
8 0 1

Hi, I want to decorate the product page with some data. The data is loaded from a RoR application hosted in a remote server. It seems there many ways to do this: ScriptTags, App Proxy...

What is the best way?

Thanks

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1040 139 163

This is an accepted solution.

Hey @cgregnanin,

 

Is this for a single store? I so, you can modify the theme to send an AJAX request to your server.

 

If it's for multiple stores, a ScriptTag makes sense - but keep in mind every theme/product page is different, so inserting content is challenging.

 

An app proxy isn't required but can hide your server URL behind a local URL, for example:

store.myshopify.com/apps/hello -> forwards to yourapp.com/whatever.

0 Likes