Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Process shortcode from an app using variant metafield driven dropdown menu

Process shortcode from an app using variant metafield driven dropdown menu

iolo72
Shopify Partner
25 1 3

I'm using GLO Related Products app to show related products on a product page. This app provides a typical shortcode (e.g. <div class="globo_widget_12345"></div>) that's embeded into a page to show Related Products when the shortcode is processed and loaded.

 

This product page has a model dropdown menu driven by variant metafields to change content of this product (e.g. specs, descriptions, etc.) on the fly without reloading the page based on which model variant was selected in the dropdown menu (I do this by grabbing and changing div ID to replace content).

 

I also want to change the Related Products content (driven by the app) on the same page without reloading the page, but I can't seem to make that work. I got as far as replacing the id ("12345") contained in the shortcode with another id using the variant dropdown menu, but I'm not sure how to actually process the updated shortcode to load updated Related Products.

 

Is this possible?

Replies 0 (0)