How To Change The Add To Cart Label

On each line of the WooCommerce Wholesale Order Form you will see the add to cart button (in the standard layout).

Sometimes depending on the naming convention used in your site, the text “Add To Cart” on the button might need to be changed and you can do so using a quick filter.

Modify and add the following code to your functions.php file in your theme:

function filterAddToCartLabel($actionHtml) {
	$actionHtml = str_replace('Add To Cart', 'Add To Order', $actionHtml);
	return $actionHtml;
}

add_filter('wwof_filter_product_item_action_controls', 'filterAddToCartLabel', 10, 1);

You can change “Add To Order” to whatever you wish your button text to be.

in WooCommerce Wholesale Order Form

Solve The Big Three Problems With Wholesaling In WooCommerce

Add wholesale pricing to products   Streamline your ordering   Register & manage wholesale customer

Explore The Plugin Suite  

[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']