Jump to content

Dynamic Product Parameters

Recommended Posts

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
  • Replies 0
  • Views 738
  • Created
  • Last Reply

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.