Tagged: translate
-
AuthorPosts
-
October 23, 2018 at 1:14 pm #1025391
Hi!
I can’t seem to find the place where to edit the “select options” button on my products.
I checked some solutions already but all didnt work.
Please give me a hint.
An example you can find on my homepage.
I will link it in Private Content FieldI tried loco translate,
And in Childtheme i tried to add this code to function.php:
add_filter( ‘woocommerce_product_add_to_cart_text’, function( $text ) {
global $product;
if ( $product->is_type( ‘variable’ ) ) {
$text = $product->is_purchasable() ? __( ‘Custom options text’, ‘woocommerce’ ) : __( ‘Read more’, ‘woocommerce’ );
}
return $text;
}, 10 );Thank you very much
October 24, 2018 at 10:27 pm #1026135Hey webbiz215,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
BasilisOctober 25, 2018 at 12:04 pm #1026313Hi there,
Thank you for your reply.
Maybe there is a misunderstanding? I only want to translate 1 thing.
“Select Options”
I think this is useful for everybody using Enfold Theme with Woocommerce.
I found an older reply to the same question, but it doesn’t work for me, because maybe woocommerce was updated since that time?would be great if you can have a look again.
Thank you !Maik
October 30, 2018 at 3:27 am #1027817Hi,
Thanks for the update.
Use the following plugin to translate the string or text of the product select field.
// https://wordpress.org/plugins/say-what/
I can’t see the page, so I’m not really sure if that’s what you’re referring to.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.
