How do I add a store "page" content to the "product description"?

How do I add a store “page” content to the “product description”?

Example:

  • I have a “page” that has sizing info
  • I would like to be able to display that content on select products in the description

How do i do that?

Simplest way in an OS2.0 theme, like dawn, use a separate custom-liquid section, or a block, and something like the following using the pages object (pages plural) and the handle of the page.

https://shopify.dev/api/liquid/objects/pages

https://shopify.dev/api/liquid/objects/page#page-content

{{ pages['page-handle'].content }}

On some themes you can add a custom-liquid block to the product section and disable the description.

So you’d use something like the following in the custom-liquid

{{ product.content}}

{{ pages['page-handle'].content }}

Advanced: if you have a keyword inside the product description to insert external page content search posts on splitting product descriptions.

To have it only for some products make a alternative template and apply it to those products, or vice versa.

https://help.shopify.com/en/manual/online-store/themes/os20/theme-structure/templates#create-a-new-template

If you need this customization setup for you then contact me , info in sig. Please provide context: store url, theme name, post url and detail.

Good hunting.

1 Like

Hi @PaulNewton can you please check my question?
https://community.shopify.com/c/shopify-design/bd-p/ecommerce-design

Thank you, I will give those a try!