How can different pages display unique data from the same embedded app theme?

Shopify Partner
2 0 0

Hi there. i'm new to shopify development and trying to learn and understand the platform.

i came up with a question and i wasn't able to find an answer for that.

right now i',m trying to build something like quicky (just for practicing) which is a announcement bar banner. 

you can make different banners. say one of them is enabled for product page and another is enabled for home page. each one has different settings value. the product page and home page banners has different messages/backgrounds/... which i think is stored in a database outside of shopify.

my question is "how different pages can have different data of the same embedded app theme?"

as far as i researched it is not possible to have a dynamic schema to inject your desired dynamic data there. so how this plugin is able to distinguish between pages and show different message according to their page url?


and one final piece of a question. i want to show a message (on the bar banner) in products page where all products show the same message ("welcome to product page") but with two exceptions. product "a" shows "hello happy customer" and product "b" shows "hello amazing customer". how can i achieve that with this assumption those messages are hosted on my database and should be retrieved via my api?

Replies 0 (0)