Skip to content

Request for quote (RFQ)

The RFQ module of Polski PRO adds a "Request a quote" button to WooCommerce products that opens a form. The customer sends their name, email, quantity and a message, the shop gets an email and the request appears under Polski > Quote requests. It suits B2B stores and products with individual pricing.

Go to Polski > Modules and enable Request a quote (RFQ) (module id quotes). Since Polski PRO 1.32.4 the module has its own row there, and the settings below are the fields on that row; saving the row writes them into the polski_quote option. The module ships off. Before 1.32.4 nothing wrote its settings, so it could not be switched on from the admin.

Setting Key Default Description
Which products availability Only products marked in the product data panel All products, or only products with Offer a quote request ticked
Show on the product page show_on_single On Shows the button and the form on the single product page
Show on product listings show_on_loop Off Replaces the listing button with a link to the product page with ?polski_quote=1, which opens the form
Let logged out visitors send requests allow_guest On With this off, a visitor who is not logged in sees neither the button nor the form
Quote only products cannot be bought replace_add_to_cart Off Makes products marked Quote only not purchasable
Hide the price of quote only products hide_prices Off Replaces the price of Quote only products with "Price available on request"
Button text button_text empty, falls back to "Request a quote" Global button text
Phone is required require_phone On Phone field required
Company is required require_company On Company field required
NIP is required require_nip Off NIP field required, checked as a 10-digit Polish NIP with a valid checksum
Postcode is required require_postcode Off Postcode field required

The option holds more keys that are not on the row: recipient_email (empty means the WordPress admin email), customer_email_enabled (on), privacy_required (on), the email subjects and the form texts. An empty text key shows the default text in the site language.

Since 1.32.4 the Polski Pro tab of the product data box has a Request a quote group while the module is on. See Per-product settings.

Field Meta key Type Description
Offer a quote request _polski_quote_enabled yes / no The product accepts requests when Which products is set to marked products. Not needed with All products
Quote only _polski_quote_only yes / no With the matching module settings on, the product cannot be bought and its price is hidden
Button text _polski_quote_button_text text Overrides the module button text for this product
Minimum quantity _polski_quote_min_qty number Smallest quantity the form accepts. Empty means 1

A variation without its own value takes it from the parent product.

On the product page the button appears in the summary, after the "Add to cart" button (woocommerce_single_product_summary, priority 35). Clicking it opens a modal with the form:

  • Full name and email, always required
  • Phone, company, NIP and postcode, required according to the settings
  • Quantity, with the product minimum
  • Request details, optional
  • Privacy checkbox, if privacy_required is on

On a variable product the chosen variation is sent with the request.

The "Add to cart" button does not disappear by default. It stops working only on products marked Quote only with Quote only products cannot be bought on.

The form is posted to admin-post.php and returns to the product page with the success or error message. Visitors who are not logged in can send at most 5 requests per hour from the same IP.

If the customer ticks the privacy checkbox and the Polski consent logging module (consent_logging) is on, a row is saved in {prefix}polski_consent_log with the identifier quote_privacy, the date, the IP, the user agent and the user or session. The request itself also stores whether consent was given.

Requests are under Polski > Quote requests (capability manage_woocommerce). The menu label comes from the admin_page_title key of the polski_quote option and falls back to "Quote requests". Requests are stored in the {prefix}polski_quote_requests table. The list shows the 100 most recent for the chosen filter, with:

  • Date
  • Product and the customer's message
  • Customer: name, email, phone and postcode
  • Company and NIP
  • Quantity
  • Status and buttons to change it
Status Label Typical use
new New Request just received
contacted Contacted You have contacted the customer
quoted Quoted You sent the quote
won Won The customer accepted
lost Lost The customer did not accept
archived Archived Request archived

Every new request starts as new. The buttons in the actions column move it to any other status.

The status is for your own tracking. Changing it sends nothing to the customer. The panel has no price field, notes or conversion to an order: you reply to the customer from your own mailbox.

The emails go out through wp_mail() as plain text. They are not WooCommerce email templates and do not appear in WooCommerce > Settings > Emails.

Email Recipient Content
New request recipient_email or the admin email Product, quantity, customer data, message and a link to the panel. Reply-To points to the customer
Confirmation Customer, if customer_email_enabled is on Success text, product and quantity

The subjects are set in admin_email_subject and customer_email_subject and accept {product_name}, {request_id} and {customer_name}.

Hook Type Arguments Use
polski/quote/submitted action int $request_id, int $product_id Fires after the request is saved and the emails are sent
polski-pro/quote/rate_limit_window_seconds filter int, default 3600 Window of the guest limit
polski-pro/quote/rate_limit_max_attempts filter int, default 5 Requests allowed per window; 0 turns the limit off

Example - sending to a CRM:

add_action('polski/quote/submitted', function (int $request_id, int $product_id): void {
// Read the request from the {prefix}polski_quote_requests table and send it to your CRM.
}, 10, 2);

The button does not appear Check that Request a quote (RFQ) is enabled on Polski > Modules. With Which products set to marked products, the product needs Offer a quote request ticked in the Polski Pro tab. With Let logged out visitors send requests off, visitors who are not logged in do not see the button. Clear the page cache if you use a caching plugin.

The customer sees "Too many quote requests from this address" They sent more than 5 requests per hour from their IP without logging in. Adjust the limit filters if needed.

Emails do not arrive The emails use wp_mail(). Check WordPress mail delivery (SMTP) and the value of recipient_email.

Does the module hide the "Add to cart" button?

Section titled "Does the module hide the "Add to cart" button?"

Not by default. Only on products marked Quote only with Quote only products cannot be bought on.

Where do I see the requests I received?

Section titled "Where do I see the requests I received?"

Under Polski > Quote requests. Each request also sends an email to recipient_email or to the admin email.

Yes. Turn on NIP is required. The plugin checks that it has 10 digits and a valid Polish checksum.

Can I limit the form to customers with an account?

Section titled "Can I limit the form to customers with an account?"

Yes. With Let logged out visitors send requests off, visitors who are not logged in see neither the button nor the form, and the server rejects their submissions.

This page is for informational purposes only and does not constitute legal advice. Consult a lawyer before implementation. Polski for WooCommerce is open source software (GPLv2) provided without warranty.