Sometimes you need to display accompanying information for a product and rather than trying to fit it all on to one web page, displaying it as a modal is often the best option.
Shopify allows different templates to be loaded via a query string url parameter which comes in very handy when working with modals. Alternate templates, as Shopify calls them, allows you to display a simpler version of your content.
Here’s how I usually implement this modal feature.