Memberships - WPML language URL links

Hi

We are using WPML for our translations and are trying to configure the following;

1. Memberships & Memberships Lists pages. We are attaching links for the memberships to custom images. The links in the default language work ok - eg. "https://oursite.com/memberships/?membership_id=240438"

But if we amend the link in the normal way for a language eg. French "fr", we would normally add on the end of the link "?lang=fr" thus making "https://oursite.com/memberships/membership_id=240438/?lang=fr"
When clicked though, whilst it goes to the next stage of the membership purchase process the page is in the default site language page - English. Please can you advise how we should correctly structure these links?

2. Thank you / Registration Complete page - there is a link at the bottom of this page to "Visit your account page for more information", which presumably is hard code in the plugin files as it only returns to the default site language Account page? If this cannot be translated, can you advise how we can code it out (in our functions.php file ?)

Thanks & regards

  • Nastia
    • Support Rock Star

    Hello @BizE, I hope you are doing well today!

    Would you please try the following slug for the Membership List page

    https://oursite.com/memberships/fr/membership_id=240438/

    When clicked though, whilst it goes to the next stage of the membership purchase process the page is in the default site language page - English.

    I tested this on my site and wasn't able to reproduce the same. The second stage of the membership were showing in the translated language.

    Just want to make sure, have you enabled WPML Integration add-on? In case it's not enabled, please navigate from your Dashboard to Membership -> Add-ons and enable WPML Integration add-on as it is shown in the attached screenshot.

    In order to translate the following phrase:

    Visit your account page for more information.

    Navigate from your Dashboard to WPML -> Theme and plugins localisation.
    Place a tick on Membership 2 Pro and click on:

    Scan the selected plugins for strings

    Once the scan is finished, you will able to see a button View Strings That need Translation as it is shown in the TranslationStrings.png below. Click on it and you will be redirected to String Translation. Locate the phrase you wish to translate and insert the translation, like it is shown in the attached StringsTranslation.png screenshot.

    I hope this helps! Let us know if you require any further information regarding this matter!

    Cheers,
    Nastia

  • BizE
    • Site Builder, Child of Zeus

    Hi Nastia

    Thanks for getting back and here's my update.

    1. Membership links - tried your suggestion, but unfortunately doesn't work - just getting a 404
    2. Registration Complete - there is a misunderstanding here I think, as it is not the string translation that is the issue, but my understanding is that the link on the string text only goes to the default language?

    Regards,
    Paul

  • BizE
    • Site Builder, Child of Zeus

    Hi Nastia

    Thanks for getting back and I now confirm;

    1. Support access is now granted.
    2. I have now removed the link to Account on the Registration-Complete page, so do not need any follow up on this.

    Look forward to hearing from you again.
    Kind regards,

  • Nastia
    • Support Rock Star

    Hello @BizE, I hope you are well today!

    I see what the issue is, in order to view the Membership page in other languages you have to duplicate or translate first.

    Once you do this, add the following slug to the page's url:
    yoursite.com?lang=ec

    Change the "ec" to desirable language code.

    Let us know id this answers your question!

    Kind Regards,
    Nastia

  • BizE
    • Site Builder, Child of Zeus

    Hi Nastia

    Hmmm . . . I don't think this is the issue? At the moment we have just translated our pages to 2 languages - EC & US. So if you go to the site and:
    1. select either one of those languages
    2. then go to Memberships page and click on any of the 4 membership products
    3. with the link as we have currently set, you are then directed to a EN - English page for the next stage of the process (this is indicated by scrolling to the bottom of the screen and viewing the WPML language icon)? Surely the membership purchase transaction should continue in the same language?

    I can only assume that we have got the wrong link set at the moment, but it is confusing to see how to add to this to eg. EN "https://oursite.com/memberships/?membership_id=240438" . . . as "https://oursite.com/memberships/?membership_id=240438/?lang=ec" does not work?

    Regards,
    Paul

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.