Short Intro:
I will show you how to change "add to cart" text to a custom screen in woocommerce add to cart button.
Problem:
Add to cart text has no option to change.
Solution:
Add this code to function.php
add_filter( 'woocommerce_product_single_add_to_cart_text', 'custom_add_to_cart_text' );
add_filter( 'woocommerce_product_add_to_cart_text', 'custom_add_to_cart_text' );function custom_add_to_cart_text() {
return __( 'Order', 'woocommerce' );
}
Contact details
More solutions
by ilias
You're using JetFormBuilder and want to make sure users are at least 18 years old based on their birthday input.
by ilias
Roweij Spices wanted to have a filter that can choose number of products display per pagination
by ilias
This article will show you how to add dynamic code to your templates using the Elementor Shortcode widget and custom PHP code.