About this block
A full product page for your store: a photo gallery on one side, and the name, price, description, option chips, quantity and buy buttons on the other. Picking a size or colour updates the price and photo to match that version, and the cart charges for exactly what was chosen. One page can serve every product, because it finds the product from the slug at the end of the page address.
When to use it
- Products in your shop come in sizes, colours or other options.
- You want one product page that works for your whole catalog.
- Your products have several photos that shoppers should be able to flip through.
What's inside
- A large square main photo with up to 4 thumbnails underneath. Clicking a thumbnail, or tabbing to it and pressing Enter, swaps the main photo. A neutral placeholder tile shows when a product has no photo.
- A back-to-shop link, the product name as the page h1, the price, and the description, which hides when there is none.
- One row of pill-shaped chips for each product option. Picking chips updates the price, and the photo too when that version has its own.
- A labelled Quantity field, then Add to Cart and Buy Now. Both stay greyed out until every option is picked, and a Sold out label replaces them when stock runs out.
- Side by side on desktop, and stacked with the gallery first on phones and tablets.
How to customize it
- Point the back link at your shop or collection page.
- Rename the buttons to fit your store, for example Add to bag or Buy it now.
- Delete the Buy Now button if you would rather shoppers review their cart before paying.
- Delete thumbnails you do not need. Each one already hides when the product has fewer photos.
Questions
- How does it know which product to show?
- It reads the product's slug from the page address and shows that product from your catalog. Put the block on a page with the slug products, then set its URL pattern to :handle in Page settings, so /products/classic-tee shows the Classic Tee. PageHub's store templates and the Shopify import set this up for you.
- Where do the size and colour chips come from?
- From the options on the product in your catalog. Each option gets its own row of chips, and a product with only one version shows no chips.
- What does Buy Now do?
- It adds the product with the chosen options and quantity to the cart, then opens Stripe checkout straight away.