Hi @dandscontact,
Looking your website we have seen that you are using Wipi framework. Checking this code framework we fund this part of code…:
wipi\classes\class-fl-theme-woocommerce.php:223
/**
* Translate cart button text
* @return string
*/
public static function cart_button_text() {
global $product;
$product_type = $product->product_type;
switch ( $product_type ) {
case 'external':
return __( 'Buy product', 'wipi' );
break;
case 'grouped':
return __( 'View products', 'wipi' );
break;
case 'simple':
return __( 'Add to cart', 'wipi' );
break;
case 'variable':
return __( 'Select options', 'wipi' );
break;
default:
return __( 'Read more', 'wipi' );
}
}
This method gets the current product type and return specific strings depending from type. On our case, our product it′s a ticket-event, for this reason you are getting always ‘Read more’. Wipi theme always overwrite our default text.
We see that Wipi uses woocommerce_product_single_add_to_cart_text
filter to override the strings. You can reuse to overwrite your custom strings…:
Add the following code in your functions.php from your active theme or from your customization plugin.
if ( ! function_exists( 'set_single_add_to_cart_text' ) ) {
function set_single_add_to_cart_text ($text_button) {
global $product;
$product_type = $product->product_type;
switch ( $product_type ) {
case 'external':
return __( 'Buy product', 'your-text-domain' );
break;
case 'grouped':
return __( 'View products', 'your-text-domain' );
break;
case 'variable':
return __( 'Select options', 'your-text-domain' );
break;
default:
return __( 'Add to cart', 'your-text-domain' );
}
}
}
add_filter('woocommerce_product_single_add_to_cart_text', 'set_single_add_to_cart_text', 98);
This should be keep the ‘Add to Cart’ string on your product page.
Please try it and let me know.
Regards.