Quote Button
The quote button replaces the native WooCommerce "Add to Cart" button on products that are in quote mode.
How It Works
When a product enters quote mode:
- The price is hidden and replaced by a configurable label (e.g., "Price on request")
- The "Add to Cart" button is removed (including the quantity field)
- A "Request a Quote" button appears in its place
- The product cannot be added to cart via URL either (
?add-to-cart=IDis blocked)
On Product Pages
The quote button renders on the single product page with these data-* attributes:
data-product-id-- WooCommerce product IDdata-product-name-- Product namedata-product-sku-- Product SKUdata-product-url-- Product permalink
Clicking it opens the quote modal.
On Shop/Category Pages
On listing pages (shop, category), products in quote mode show a "View Product" link instead of "Add to Cart". This redirects to the product page where the full modal is available.
Variable Products
For variable products:
- The variation selector remains visible (color, size, etc.)
- The visitor selects their variation, then clicks the quote button
- The selected variation is captured and included in the quote request
- If no variation is selected, the form still opens (variation is optional)
Customization
Go to WooCommerce > LiteQuote > Button to customize:
- Button text
- Background color
- Text color
- Position (before or after the product form)
- Price label text
All colors are applied via CSS custom properties (--litequote-btn-bg, --litequote-btn-color) for easy theme integration.