
Sometimes, you need to display accompanying information for a product, and rather than trying to fit it all onto one web page, showing 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, allow you to display a simpler version of your content.
Here’s how I usually implement this modal feature.