Shortcodes
Place the quote page, a button or a count link anywhere WordPress runs shortcodes. All three are listed with a Copy button on the General tab.
| Shortcode | Shows |
|---|---|
[siteryn_request_a_quote] | The quote list and quote form (Quote Page) |
[siteryn_raq_button] | The Add to quote button for one product (Add to Quote Button) |
[siteryn_raq_count] | A link to the quote page with the number of products (Quote Count) |
Each prints nothing while Enable request a quote is off. The plugin's styles and script load automatically on pages that use them.
[siteryn_request_a_quote]
"The shopper's quote list and quote request form. Place it on any page if you are not using the automatically created Request a Quote page." It has no attributes. Set that page as Quote page so the View quote links and emails point to it. It shows the list and form, the empty message, the thank-you message after sending, or the log-in message when guests can't quote. With Pro it also shows a customer's quote offer.
[siteryn_raq_button]
"The add-to-quote button for one product. Optional product_id attribute; defaults to the current product inside The Loop."
| Attribute | Default | Use |
|---|---|---|
product_id | The current product | The product's ID. With WPML or Polylang, the translation in the current language is used. |
[siteryn_raq_button product_id="123"]
It uses your Quote Button labels and style, and works even with both placement switches off. For a variable product it shows its own option dropdowns ("Choose an option") above the button. Products that can't be quoted show nothing.
[siteryn_raq_count]
"A link to the quote page showing how many products are in the shopper's quote." The number is a badge in your accent color and updates as products are added or removed.
| Attribute | Default | Use |
|---|---|---|
label | Quote | The link text before the badge. |
hide_empty | no | yes hides the link while the quote is empty. |
[siteryn_raq_count label="My quote" hide_empty="yes"]
It counts different products, not the total quantity, and prints nothing if no quote page is set.