Can you help with the translation of a variation item?

This topic has 6 replies, 3 voices, and was last updated 6 days, 15 hours ago ago by Luca Rossi

  • Avatar: Goostaf
    Goostaf
    Participant
    December 13, 2024 at 10:31

    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.

    Files is visible for topic creator and
    support staff only.
    5 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    December 13, 2024 at 12:03

    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

    Content is visible for topic creator and
    support staff only.
    Avatar: Goostaf
    Goostaf
    Participant
    December 13, 2024 at 17:17

    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” ?

    Files is visible for topic creator and
    support staff only.
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    December 14, 2024 at 05:39

    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

    Content is visible for topic creator and
    support staff only.
    Avatar: Goostaf
    Goostaf
    Participant
    December 14, 2024 at 09:44

    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

    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    December 16, 2024 at 09:41

    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!

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.