Zum Inhalt springen
Single product / buy box

WooCommerce product types

The same buy box styled for every product type and stock state, so any of the 4 product layouts can show any product. Try each state: quantities, colour and size, stock tabs, the notify form and gift card amounts all respond, and every button adds to the real cart.

7 product types and stock states / notes for development
02 Variablevariable
Merino turtleneck
€ 0.00
Farbe / choose
Size
On hover: swatch frame, size fill, button sweep
Notes for development
  • Variable: colour attribute shows as swatches, other attributes as square buttons. Sold out variations are struck through. The photo and price follow the chosen variation.
  • Grouped: one quantity stepper per child product, one add to cart button for all. The button is disabled while every quantity is 0.
  • External: button text and URL from the product, opens in a new tab.
  • Sale: shows the countdown only when a sale end date is set.
  • Stock: low stock bar under the stock threshold; out of stock shows the notify form; backorder shows Pre-order.
  • Virtual: hides shipping info and the delivery block.
  • Every add action confirms in a status line under the button, so screen readers announce it.