Embed dynamic product listings within content page

bjaxelsen
New Member
1 0 0

I am working on a new shop for a customer having an extensive number of pages for content marketing. These are currently just static content. However, we would like to embed dynamic content within the pages. This would be like showing the top-3 most selling in-stock products within a category. Not before or after, but between the paragraphs of the page. The categories will vary from page to page, so the category can't be fixed in a template.

So the page could have a structure like

  • Page title
  • Large image
  • Paragraph 1
  • Paragraph 2
  • Dynamic content: 3 currently most selling in-stock product within a specific product category
  • Paragraph 3
  • Video
  • Paragraph 4

So most of the page is just plain static stuff, but we would like to embed dynamic content between the paragraphs of the page. Depending on the page, the products will belong to different categories, so we can't just hard-code the category in the template.

What would be the better way to achieve this?

0 Likes