Posted on

Quote Request for WooCommerce: More Options

Additional options for “normal checkout”

(Option 1 in general setting)

Additional options for “RFQ checkout”

(Option 2 in general setting)

Additional option for price visibility


Posted on

The plugin seems to be registered, but there we still get a message that is not activated

Each time the plugin is deactivated, the license if removed ( so you can install it on another site). 

If the plugin was deactivated without going through the deactivate menu on the plugins screen (such as renaming the directory or deleting the directory),

then plugin also can go out of sync.

If you have trouble saving the license key, please try the followings:

  • 1: please check your license keys on and delete any activation first.

  • 2: deactivate and re-activate the plugin

  • 2: Please make sure your server firewall is not blocking calling to

Posted on

How to make the NP Quote Plugin work with page caching plugins

Depending on your caching plugin you need to exclude dynamic pages and sometimes exclude cookies from cache. The pages to exclude are the quote request, product category (archive), shop and the product page. The most common problem caused by page caching is that items which are added to the quote cart cannot be found afterwards.

WP Rocket:


Never Cache URL(s)





Never Cache Cookies


WP Optimize:

If are using Pantheon:



You could also change the session method to PHP Sessions as an alternative method. 

Posted on

Do I need to download/reinstall the plugin after purchasing the plus version

The NP Quote Request WooCommerce Plus is an extension that you install in addition to the free version to provides a lot more options and features.

After purchasing and downloading the Plus file ( to your computer , you can install by:

1: Navigate to the plugins page in your admin area.

2: Click add new on the top of page.


3: Click on upload plugin


4: Click on choose file


5: Browse to where you stored and select the click open.


6. Click install now and then activate.


7: after activating the plugin you will see a notification


Click on the “Click Here” and  the license key and the email you used to purchase.



Posted on

Adding recipients to quote (customer and admin emails) dynamically

// Add recipients to new quotes sent to admin by adding the following to functions.php
add_filter( ‘woocommerce_email_recipient_new_rfq’, ‘new_rfq_conditional_email_recipient’, 10, 2 );

function new_rfq_conditional_email_recipient( $recipient, $order ) {

$order_id=$order->get_id() ;

$some_field_name = get_post_meta( $order_id, “some_field_name”, true );

//add recipient based on order metadata
if ($some_field_name == “abc”) {
$recipient .= “,”;
elseif ($some_field_name == “xyz”){
$recipient .= “, receipt_xyz@somemail . com”;
//add recipient based on products in the order
$order = wc_get_order( $order_id );
$items = $order->get_items();
foreach ( $items as $item_id => $item ) {
$product_id = $item->get_variation_id() ? $item->get_variation_id() : $item->get_product_id();
if ( $product_id === 1 ) {
$recipient .= “,”;
if ( $product_id === 2 ) {
$recipient .= “,”;

return $recipient;

//You can repeat the same pattern for the following emails:
//email sent to customer
add_filter( ‘woocommerce_email_recipient_customer_rfq’, ‘customer_rfq_conditional_email_recipient’, 10, 2 );
function customer_rfq_conditional_email_recipient( $recipient, $order ) {
//follow the same pattern as above

//proposal email sent to customer
add_filter( ‘woocommerce_email_recipient_customer_rfq_sent’, ‘customer_rfq_sent_conditional_email_recipient’, 10, 2 );
function customer_rfq_sent_conditional_email_recipient( $recipient, $order ) {
//follow the same pattern as above
//email sent to admin for notes
add_filter( ‘woocommerce_email_recipient_admin_note’, ‘admin_note_conditional_email_recipient’, 10, 2 );
function admin_note_conditional_email_recipient( $recipient, $order ) {
//follow the same pattern as above

Posted on

How to enable quote request only to selected roles in WooCommerce.


The following setup enables you to enable quote request checkout only to selected roles and allow others to buy and checkout normally.

If you need help setting it up, we can help.

Set the default setting to RFQ.


In the roles, leave 4a blank and in 4b add the role(s) that can only request a quote. You have to create the role first.


At the very bottom of the page, enter a label for people who can purchase(everybody else). This

Is the label for the cart button .


In the labels section use “Add to Quote”


And finally add this to the bottom of your functions.php

if(function_exists('gpls_woo_rfq_purchase_only')) {

    add_action('init', 'gpls_woo_rfq_check_role', 1);

    function gpls_woo_rfq_check_role()
        $in_role = false;

        if (is_user_logged_in())

            $user = wp_get_current_user();

            $user_roles = $user->roles;

            $eligible_roles = get_option('settings_gpls_woo_rfq_plus_visible_price_roles', 'no');

            $option_value_list = explode(',', $eligible_roles);

            foreach ($user_roles as $cat_id) {

                if (in_array(trim($cat_id), $option_value_list)) {
                    $in_role = true;

        if($in_role == false){
            gpls_woo_rfq_purchase_only(); // user can see prices and purchase normally



Posted on

NP WooCommerce Quote Request “Add to Quote” Shortcode

With Plus version, in the normal checkout mode you can create a “add to quote” button with [gpls-woo-rfq-quote-button product_id=’115′ show_image=’yes’ image_size=’thumbnail’ show_title=’yes’ div_width=’200px’].
The sizes include thumbnail,shop_thumbnail, shop_catalog and shop_single.
The resulting image size depends on your shop settings for these images. The short code does not resize the image.

Posted on

How to have a custom form for each product or service in the NP WooCommerce Quote Request?

If you need a form ( or different forms for different types of products) in the product page, then if you can use the powerful WooCommerce product Add-Ons (which requires the Plus version) or our simple product extra fields. product extra fields does not requires the Plus version

The advantage of WooCommerce product add-on is you can attach a price to the extra fields. With extra fields, you cannot assign a price to the extra options or fields. Please note that in product page, the form is attached to that line item in the quote. By contrast the forms in the checkout pages, are attached to the whole order