Custom html page with automated liquid pricing

Hi Guys,

Happy Festive Season to all.

Was hoping to get some advice. Have created a few custom html pages on my Shopify theme which are highlighting specific products on a the store with there prices. Problem is every time the specific products pricing get updated i have to go into the custom html pages and update the pricing manually to match as currently they are hard coded, and the pricing updates often.

I would like to automate this process and make it so that when the products pricing gets updated on the product page it automatically updates on all the custom pages i have that product. I am aware this can be done with liquid and snippets but not sure how to code this as I’m very new to liquid.

I am also aware that this can be achieved with shogun and the product box component but would like to achieve the same thing without shogun and using just my custom html/css code.

Could anyone help?

Thanks

sorted.

If anyone is wondering how to achieve this, it’s done through handles in order to identify the product and then you can access it’s attributes.

{{ all_products[‘apple-macbook-pro-13-inch-wqxga-laptop-apple-m1-256gb-ssd-8gb-ram-macos-big-sur-space-grey-myd82-137628’].price | money_without_trailing_zeros }}

Thanks