Translate texts in the checkout and right sidebar into Italian.

9 replies2 participantsUpdated by Andrew Mitchell

XStore documentationTranslating XStore: Built-In Translations, Loco Translate or WPML
  • Avatar: Redgall
    Andrea
    Participant

    Hi,
    I can’t translate these checkout texts into Italian either. I tried with Loco, but to no avail. There’s also “No products in the cart.” and “return to shop” in the sidebar, which I couldn’t translate.

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.

    9 Answers

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, Andrea,

    First of all, you need to decide on the checkou page, because the page you linked to is not the correct page, the next one is exactly why there are problems with the translation, because the name is not being pulled up from the selected settings. If you go to the correct page, you will see that these problems are not there.

    Best Regards,
    8Theme’s Team

    Please contact administrator
    for this information.
    Avatar: Redgall
    Andrea
    Participant

    Hi,

    I created checkout-2 because I’m testing which is better, because checkout has that incomprehensible last-button problem. As I explained, a user sees a button and clicks it, thinking it will take them somewhere or complete a process. I’ll most likely keep checkout-2, so please tell me how to translate all the parts I highlighted in the screenshot.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    To ensure the translation works correctly, you need to assign checkout-2 as the main checkout page, since a website cannot have two checkout pages at the same time.
    Best regards,
    8Theme Team

    Avatar: Redgall
    Andrea
    Participant

    OK, I’ve assigned the checkout page I’d like to keep. Can you tell me where I should translate the parts I highlighted in the image?

    Files is visible for topic creator and
    support staff only.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, Andrea,

    It seems that the issue is caused by the checkout element you are using, as the specified texts are defined there. However, it appears that they are not functioning correctly. We recommend using one of our checkout elements instead.

    Best regards,
    8Theme Team

    Avatar: Redgall
    Andrea
    Participant

    Even Shipping 1 don’t know how to remove that number 1?

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, Andrea,

    as far as we can see, the text for the coupon has already been translated, and the unit from Shipping 1 has also been removed and translated. Please tell me what you did for this.

    Best Regards,
    8Theme’s Team

    Avatar: Redgall
    Andrea
    Participant

    add_filter( ‘gettext’, function( $translated, $text, $domain ) {

    if ( $domain === ‘elementor-pro’ ) {

    switch ( $text ) {

    // LOGIN
    case ‘Returning customer?’:
    return ‘Sei già cliente?’;

    case ‘Click here to login’:
    return ‘Clicca qui per accedere’;

    case ‘Remember me’:
    return ‘Ricordami’;

    case ‘Lost your password?’:
    return ‘Password dimenticata?’;

    case ‘If you have shopped with us before, please enter your details below. If you are a new customer, please proceed to the Billing section.’:
    return ‘Se hai già acquistato da noi, inserisci i tuoi dati qui sotto. Se sei un nuovo cliente, procedi alla sezione Fatturazione.’;

    // COUPON
    case ‘Have a coupon?’:
    return ‘Hai un coupon?’;

    case ‘Click here to enter your coupon code’:
    return ‘Clicca qui per inserire il codice coupon’;

    case ‘If you have a coupon code, please apply it below.’:
    return ‘Se hai un codice coupon, inseriscilo qui sotto.’;

    case ‘Coupon code’:
    return ‘Codice coupon’;

    case ‘Apply’:
    return ‘Applica’;

    }
    }

    return $translated;

    }, 20, 3 );

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Thank you for the information provided

    Best Regards,
    8Theme’s Team

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register