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        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli
 * @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

  • WooCommerce: Cart and Checkout on the Same Page
    This is your ultimate guide – complete with shortcodes, snippets and workarounds – to completely skip the Cart page and have both cart table and checkout form on the same (Checkout) page. But first… why’d you want to do this? Well, if you sell high ticket products (i.e. on average, you sell no more than […]
  • WooCommerce: Disable Payment Method If Product Category @ Cart
    Today we take a look at the WooCommerce Checkout and specifically at how to disable a payment gateway (e.g. PayPal) if a specific product category is in the Cart. There are two tasks to code in this case: (1) based on all the products in the Cart, calculate the list of product categories in the […]
  • WooCommerce: Add Privacy Policy Checkbox @ Checkout
    Here’s a snippet regarding the checkout page. If you’ve been affected by GDPR, you will know you now need users to give you Privacy Policy consent. Or, you might need customer to acknowledge special shipping requirements for example. So, how do we display an additional tick box on the Checkout page (together with the existing […]
  • WooCommerce: Redirect to Custom Thank you Page
    How can you redirect customers to a beautifully looking, custom, thank you page? Thankfully you can add some PHP code to your functions.php or install a simple plugin and define a redirect to a custom WordPress page (as opposed to the default order-received endpoint). This is a great way for you to add specific up-sells, […]
  • WooCommerce: Disable Payment Gateway by Country
    You might want to disable PayPal for non-local customers or enable a specific gateway for only one country… Either way, this is a very common requirement for all of those who trade internationally. Here’s a simple snippet you can further customize to achieve your objective. Simply pick the payment gateway “slug” you want to disable/enable […]

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

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

  1. 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/

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 *