Quick view & swatches
Let quick view, variation swatch and wishlist plugins add their buttons to the cards.
- Badges: Sale badge on (Discount), "New" badge off, 30 days, Featured off, Out of stock on, Low stock off
- Loading More Products: Default loading Off, Maximum pages 20
- Quick View & Swatches: Quick view button and Run WooCommerce loop hooks, both off
Quick View & Swatches (Pro Features tab)
Siteryn โ Product Grid & List โ Pro Features โ Quick View & Swatches.
A "Quick view" button in each card footer, after add to cart (quick_view). Shown only when a quick view plugin handles it, so the button never appears with nothing to open.
Lets plugins that add swatches, wishlist or quick view buttons to shop pages add them to these cards too (wc_loop_hooks).
Quick view button
The button appears only when a quick view plugin says it handles it (with the siteryn_pgl_pro_quick_view_enabled filter). The plugin can print its own button, or use Pro's: clicking it sends a siteryn-pgl:quick-view event with the product ID for the plugin to open its window. Screen readers hear "Quick view" plus the product name. See JavaScript.
WooCommerce loop hooks
Many plugins add their buttons to the shop page through WooCommerce's product loop. With this option on, each card also runs WooCommerce's woocommerce_after_shop_loop_item_title (after the price) and woocommerce_after_shop_loop_item (in the footer, after add to cart). WooCommerce's own rating, price and add to cart are held back while these run, so nothing appears twice. Turn it on per grid with wc_loop_hooks="yes".
Swatches
Variation swatch plugins can print their swatches in the card footer, before the add to cart button, with the siteryn_pgl_pro_swatches action. This hook always runs while Pro is licensed.