Finding all the right filters in WooCommerce requires some copying to make this happen, but once you find them, it's pretty simple. These are the various fragments that I use to change the language of the "Cart" to "Quote" and streamline the checkout process:
add_filter('woocommerce_product_single_add_to_cart_text', 'rental_single_product_add_to_cart',10,2); add_filter('woocommerce_product_add_to_cart_text', 'rental_single_product_add_to_cart',10,2); function rental_single_product_add_to_cart( $title,$product ) { return 'Add to Quote'; } add_action('woocommerce_widget_shopping_cart_before_buttons', 'rental_before_mini_cart_checkout',10); function rental_before_mini_cart_checkout(){ //change buttons in the flyout cart echo ' <p class="buttons" style="display: block;"> <a href="'.esc_url( wc_get_checkout_url() ).'" class="button checkout wc-forward">Submit for Quote</a> </p> '; } add_filter('woocommerce_billing_fields','rental_billing_fields',10,1); function rental_billing_fields($fields){ unset($fields['billing_country']); unset($fields['billing_address_1']); unset($fields['billing_address_2']); unset($fields['billing_city']); unset($fields['billing_state']); unset($fields['billing_postcode']); return $fields; } add_filter('woocommerce_checkout_fields','rental_checkout_fields',10,1); function rental_checkout_fields($fields){ //change comment field labels $fields['order']['order_comments']['label'] = 'Notes'; return $fields; } add_filter('woocommerce_order_button_text','rental_order_button_text',10,1); function rental_order_button_text($text){ return 'Submit to Request Confirmed Quote'; }
This plus an offer from / u / crdunst regarding payment methods should make the transition to a quote offer easy!
source share