Guest Posted March 6, 2020 Share Posted March 6, 2020 I'm working on implementing a third party solution for ratings and reviews (deliberately omitting the name) that's JavaScript based. I've found how to add code blocks, easy enough. However, what I'm struggling to find is if there is an easy way to pull in a value from my products, such as, name, description, image/thumbnail url, etc. I would like to pass these into the JS I'm adding. At a bare minimum, I need to pull in an id value. I realize I could manually change these values for each page, but that seems like it would be difficult to maintain in the long term. My hope is I can add some type of short code into the JS where these values are needed, allowing to me copy and paste the same code into each page to dynamically pull in these values. Thanks for your help. I'm just starting out, so I appreciate your understanding if my terminology is slightly off. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.