WooCommerce: Turn Checkout Into a Quote System

There are certainly ways and plugins to turn WooCommerce into a quote engine, but today I want to share a super simple workaround that could be helpful to many.

In a nutshell, we’ll use the same WooCommerce cart/checkout flow, rename a few strings and buttons, enable an offline payment gateway (so there is no actual payment), let the admin revise the order and send back the final invoice, and finally get the customer to pay for their order.

Enjoy!

You’re looking at the WooCommerce Checkout page, with the only difference being the “PLACE ORDER” button, the page title and the fact the only possible payment method is “cheque” (renamed to “Pay Later”). The customer creates the order, the admin revises it, and sends back the customer to the “Order Pay” page so that they can finally pay for the final invoice.

Setup Info

In order for the quote system to work you must:

  1. Rename the Checkout page to “Quote”, “Your Quote” etc. and possibly, remove the Cart page all together.
  2. Enable “cheque” payment method, hoping you are not already using it for accepting actual checks… Rename it to “Get a Quote”, “Pay Later” or similar. This will be the only visible payment method on the Checkout page.
  3. Take a note of all your online payment gateway IDs e.g. “paypal”, “stripe”, etc., as we need to show these only when the customer receives the invoice back from the admin, on the “Order Pay” page. Besides, these same gateways must be hidden on the default checkout/quote page.
  4. Know that the admin, once they receive the unpaid order, can edit the order from the dashboard (add shipping, revise product prices, add fees, etc.) and set it to “Pending Payment”. This will generate an “Order Pay” URL that can be sent to the customer via the relevant order action i.e. “Send customer invoice”.

Nice add-ons may be removing the coupon form, hiding product prices and shipping totals, turn the page into a distraction-free checkout, and more.

PHP Snippet: Transform the WooCommerce Checkout Into a Quote Engine

This snippet will:

  1. Hide “paypal” and “stripe” gateways on the Checkout page, so that the only remaining method is “cheque”.
  2. Rename “PLACE ORDER” button into “GET A QUOTE”.
  3. On the “Order Pay” page, hide “cheque” so that customers can only pay via the other payment gateways.

Please edit the snippet accordingly based on your payment gateway offer.

/**
 * @snippet       WooCommerce Quote System
 * @how-to        businessbloomer.com/woocommerce-customization
 * @author        Rodolfo Melogli, Business Bloomer
 * @compatible    WooCommerce 7
 * @community     https://businessbloomer.com/club/
 */

add_filter( 'woocommerce_available_payment_gateways', 'bbloomer_checkout_as_quote_system' );
  
function bbloomer_checkout_as_quote_system( $available_gateways ) {
	if ( is_checkout() && ! is_wc_endpoint_url( 'order-pay' ) ) {	
		if ( isset( $available_gateways['cheque'] ) ) {
			unset( $available_gateways['paypal'], $available_gateways['stripe'] );
			$available_gateways['cheque']->order_button_text = 'Get a Quote';
		}
	} elseif ( is_wc_endpoint_url( 'order-pay' ) ) {
		unset( $available_gateways['cheque'] );
	}
	return $available_gateways;
}

Where to add custom code?

You should place custom PHP in functions.php and custom CSS in style.css of your child theme: where to place WooCommerce customization?

This code still works, unless you report otherwise. To exclude conflicts, temporarily switch to the Storefront theme, disable all plugins except WooCommerce, and test the snippet again: WooCommerce troubleshooting 101

Related content

Rodolfo Melogli

Business Bloomer Founder

Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza. Follow @rmelogli

6 thoughts on “WooCommerce: Turn Checkout Into a Quote System

  1. This is great and an easy solution. Thank you.

    However, is there a way to hide prices to everyone, so the customer doesn’t see any prices, including shipping, product options etc. until a quote is returned by email to them?

    1. Kurt, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!

  2. Turn checkout into a quote system.
    Is there any way to have just one specific product present this quote system behavior?

    1. Yes, you can run the function “only if product ID = 123 is in the Cart”. This should help you: https://www.businessbloomer.com/woocommerce-easily-check-product-id-cart/

      1. Hi Rodolfo,
        Is product ID the only way to do this? Could I do it with a product category for instance. so that only products with category “POA” (or something) would present the quote checkout?

        1. Gina, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!

Questions? Feedback? Customization? Leave your comment now!
_____

If you are writing code, please wrap it like so: [php]code_here[/php]. Failure to complying with this, as well as going off topic or not using the English language will result in comment disapproval. You should expect a reply in about 2 weeks - this is a popular blog but I need to get paid work done first. Please consider joining the Business Bloomer Club to get quick WooCommerce support. Thank you!

Your email address will not be published. Required fields are marked *