Posted on

Automating the proposal process in NP Quote Request WooCommerce Plus

You can automate some of the proposal writing process in NP Quote Request WooCommerce Plus, by using the WordPress actions as in the examples below:

1: Content before the main proposal such as greetings

add_action('gpls_woo_rfqtk_before_proposal','gpls_woo_rfqtk_proposal_before_link',10,3);
function gpls_woo_rfqtk_proposal_before_link($order, $sent_to_admin, $plain_text){
$order =WC_Order_Factory::get_order($order->get_id());
$cutomer_name = $order->get_shipping_first_name();
printf( __( 'Hello %s', 'rfqtk' ) , $cutomer_name.',' );
}

2: Content after the main proposal such as your signature or call to action

add_action('gpls_woo_rfqtk_after_proposal','gpls_woo_rfqtk_after_proposal_link',10,3);
function gpls_woo_rfqtk_after_proposal_link($order, $sent_to_admin, $plain_text){
$url='https://www.yourdomain.com/view-order/'.$order->get_id().'/';
printf( __( 'To accept this offer, please click this link.: %s',
'rfqtk' ),'' . __('Confirm','rfqtk') . '.' );
}

Add the code sections above to your functions.php in your theme and every proposal email will include the above content.

Posted on

Show add to quote button only in the single product page RFQ-ToolKit For WooCommerce

Some themes show the “add to cart” button only in the single product page. You can choose the same thing for “Add to Quote” by unchecking the “Show Add to quote on archive and store page” option in RFQ-ToolKit setting in WooCommerce->Settings->RFQ-ToolKit->Quote Button. By unchecking this option, the “Add to Quote” will only be visible in the single product page.