This topic has 6 replies, 3 voices, and was last updated 6 days, 15 hours ago ago by Luca Rossi
Can you help with the translation of a variation item? We don’t find it in Loco Translate at all, we need to replace Select options with our text.
Hello, @Goostaf,
Thank you for contacting us and for using XStore.
Should you wish to modify the button text labeled “SELECT OPTIONS,” we kindly suggest utilizing the Loco Translate plugin to accomplish this task. Please navigate to Loco > Plugins > WooCommerce language file and change text as per your requirement and save settings.
Please see the image for reference in the private content area.
For detailed guidance, please refer to our theme documentation. https://www.8theme.com/documentation/xstore/theme-translation/base-theme-translation/
We trust this information will be of assistance to you.
Warm regards,
The 8Theme Team
I have it done, Select options renamed, but it’s like it’s coming from your file from woo.php file and the translation is different altogether, can you somehow fix it to just “Select” ?
Hello, @Goostaf,
We kindly request that you refrain from modifying the “Select options” text that has been renamed in the code. If any changes have already been made, we would appreciate it if you could reset the “Select options” text in the code to its original state.
Upon review, we noticed that the renamed “Select options” text has also been translated in the Loco Translate plugin under the path: Loco > Plugins > WooCommerce language file.
To make any necessary adjustments, we recommend using the Loco Translate plugin.
We hope this information is helpful. Should you have any questions or require further assistance, please do not hesitate to reach out.
Best regards,
The 8Theme Team
We did it through Loco, but it doesn’t work for some reason, that’s why we’re writing 🙂 We translated everywhere: Select, but a completely different translation remains on the button, only this hook helps:
add_filter( ‘woocommerce_product_add_to_cart_text’, ‘custom_variable_add_to_cart_text’, 10, 2 );
function custom_variable_add_to_cart_text( $text, $product ) {
if ( $product->is_type( ‘variable’ ) ) {
$text = __( ‘Выбрать’, ‘woocommerce’ ); // Новый текст
}
return $text;
}
In general, if you help solve a question from our other topic, then this one will be irrelevant if you can help make an icon instead of text: https://www.8theme.com/topic/is-it-possible-to-use-an-icon-instead-of-text-in-design-type-default-when-the-setting-add-to-cart/#post-427537
Hi @Goostaf,
Can you confirm that you’ve sorted it out so we can help you in this topic instead: https://www.8theme.com/topic/is-it-possible-to-use-an-icon-instead-of-text-in-design-type-default-when-the-setting-add-to-cart/#post-427537?
Thank you!
You must be logged in to reply to this topic.Log in/Sign up