Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚠️ SHIPPING - SHIPPING METHODS NAME NOT TRANSLATED as displayed on CART/CHECHOUT/ORDER DETAILS in the language that the seller has added his methods #65

Open
3 tasks
Sophie-2e opened this issue Apr 7, 2024 · 5 comments
Assignees

Comments

@Sophie-2e
Copy link

Sophie-2e commented Apr 7, 2024

Another issues related to the Shipping Module not well translated:

I noticed that the Shipping Methods Name of vendors are not translated and are instead displayed in the language that the seller used to add his shipping methods.

So let's say a french seller add his shipping methods from his french dashboard, then all customers we see the vendor shipping method names in french even if they order from the english or dutch websites.

The issue occurs on:

  • Cart page:
    Screenshot 2024-04-07 at 13 08 51

  • Checkout page:
    Screenshot 2024-04-07 at 13 06 46

  • Order details in emails sent to customers, admin, sellers:
    Screenshot 2024-04-07 at 13 16 31

And here is other ticket related to Shipping Methods translation issue: #62 + #35

@J-H-Mojumder
Copy link

J-H-Mojumder commented Aug 23, 2024

It would be nice to have an update here.

@MdAsifHossainNadim

@pronob1010
Copy link
Contributor

pronob1010 commented Sep 24, 2024

image

/**
 * Get rate label.
 *
 * @return string
 */
public function get_label() {
	return apply_filters( 'woocommerce_shipping_rate_label', $this->data['label'], $this );
}

WooCommerce doesn't send this label in a translatable way. We don't have the privilege to update this method label. If you have any examples or plugins that can create a shipping method or translate this string, please share the reference.

@J-H-Mojumder

@pronob1010
Copy link
Contributor

pronob1010 commented Sep 25, 2024

@J-H-Mojumder

Here are the steps to translate specific texts that are not being translated even when detected in the string list using WPML:

  1. Go to WPML → String Translation.
  2. Click on the "Translate texts in admin screens" link at the bottom of the page.
  3. On the next page, search for the text you want to translate.
  4. Select the text and click "Add to String Translation".
  5. Go back to String Translation and proceed to translate the selected text.

I hope this helps resolve your issue! 👍🏻

@Sophie-2e
Copy link
Author

Sophie-2e commented Oct 4, 2024

Hello @pronob1010, @J-H-Mojumder, no I already tried this previously, and I just tried again to be sure with Dokan v3.12.3 + Pro v3.12.4, after rescanning all Dokan plugins in WPML, but we still cannot find the strings there either. Any other option?

As the shipping methods are associated to the sellers, can we not just make the 'label' translatable for sellers' shipping methods in Dokan plugin files?

@Sophie-2e
Copy link
Author

@pronob1010 @J-H-Mojumder just saw the PR related to it so I see that your dev team is working on a fix with WPML 🎉 Thank for pushing the issue through 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants