This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
10:00 – 14:00 | 10:00 – 14:00 | 10:00 – 14:00 | 10:00 – 14:00 | 10:00 – 14:00 | - | - |
16:00 – 20:00 | 16:00 – 20:00 | 16:00 – 20:00 | 16:00 – 20:00 | 16:00 – 20:00 | - | - |
Supporter timezone: Asia/Jerusalem (GMT+03:00)
Tagged: Documentation request
This topic contains 13 replies, has 3 voices.
Last updated by Itamar 1 year, 11 months ago.
Assisted by: Itamar.
Author | Posts |
---|---|
July 10, 2023 at 8:20 am #13975349 | |
Arto Hautanen |
I am trying to: Link to a page where the issue can be seen: I expected to see: Instead, I got: |
July 10, 2023 at 10:39 am #13976887 | |
Ahmed Mohammed Supporter Timezone: Africa/Cairo (GMT+03:00) |
Hi there, Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with the first debugging steps or if I can help with the issue quickly. I understand you're using WooCommerce Per Product Shipping, and on the checkout, the shipping cost for the other languages doesn't work as expected. I have created the following sandbox website: hidden link - please use that quick login URL to reproduce the issue and we'll take it from there. Looking forward to hearing back from you. |
July 11, 2023 at 6:24 am #14010087 | |
Arto Hautanen |
I have installed the plugins on the sandbox. I made a test product. I made a shipping method costing 100. I added extra 200 from Per Product Shipping. The shipping costs don't update. Feel free to check the sandbox and tell me if I don't know some setting that should be used. I am talking about the SWEDISH side here. |
July 11, 2023 at 11:53 am #14014181 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, and thanks for replicating the issue on the sandbox site. I'll continue to help you with this issue. However, I don't see the issue. To me, things look like they should. Here is what I tried. 1. I selected the only translated Swedish product and added it to the cart. 2. I then proceeded to the checkout page. 3. I selected Sweden (Sverige) as the country in the address option on the checkout page. 4. On the billing details (right side), I see the 100 kr added to the price. Please see the attached screenshot swedish-kr-shipping-price.jpg. 5. When I switch to the Finnish language, I can see the price in Euros without the shipping added. Please see the attached screenshot sweden-price-no-shipping.jpg. Can you see that it is OK, or have I missed the point of the issue? Regards, |
July 13, 2023 at 11:46 am #14032437 | |
Arto Hautanen |
Hey, The issue is not the 100KR it should be 100KR + 200KR (and maybe even + 200KR more again) from the Per Product Shipping plugin. 100KR is NORMAL shipping method price. Then the product should get more from Per Product Shipping. See attached image for more info. |
July 13, 2023 at 3:47 pm #14034727 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, I see. Please understand I'm unfamiliar with the Per Product Shipping plugin and its settings. I can see that it also does not work for the original product in Finish and if Finlad is chosen as the country. Even in this case, the 'Per-product shipping' cost is not being added, and there is free shipping. Please see the attached screenshots. If you make the Per-product shipping option work for Finland, we will try to see why it is not working for Sweden. Please note that, in case you need further help, I'll be able to help further on Sunday. |
July 17, 2023 at 5:21 am #14045739 | |
Arto Hautanen |
It does work for the Finnish side. I now added a flat rate there. It was only Free Shipping previously. Flat Rate shipping is set to 8€. Product has 15€ additional cost to shipping set within the plugin. Shows correctly in the cart as 23€. It does not do this for the Swedish side. Which of the plugins is not doing what it is supposed to? Is it WPML or Per Product? You say on your site they are compatible. https://wpml.org/plugin/per-product-shipping/ Per Product Shipping is compatible with WPML. This plugin has been tested thoroughly, and you can use it to build multilingual sites without experiencing issues. Seems like that statement is not true. |
July 17, 2023 at 7:15 am #14046273 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, First, I'll start by saying that, indeed, the 'Per Product Shipping' plugin is officially compatible with WPML and WooCommerce Multilingual & Multicurrency, as we state here. https://wpml.org/plugin/per-product-shipping/ It was last tested on: March 29, 2023. However, sometimes new compatibility issues arise, and we are here to check and correct them, if possible. However, this is not what I see. From my checks, this problem that you report does not occur. I'll explain now what I checked and found in the hope that it will help you understand the confusion. You are right, and thanks for pointing out the following to me. If Free Shipping is enabled for a shipping zone and selected in the cart or checkout, then no per-product shipping cost you set will be added to any additional shipping methods. 'Per Product Shipping' explain this in the documentation here. So there needs to be a shipping method with a rate. Not to confuse us, I deleted the Free Shipping method. In addition, please know that you need to add a price for the 'Item Cost (Excl. Tax)'. For Finland (FI) you only added a price to 'Line Cost (Excl. Tax)' and left 'Item Cost (Excl. Tax)' with 0.00. Please see the attached screenshot fi-item-cost-0.jpg. Moreover, you added the per-product price for Sweden on the translated product. Please see the attached screenshot se-per-product-price.jpg. This is not the right way of doing it. It should be added to the original product, and it will also be applied to the translated product. Therefore, I changed it and included FI and SE shipping zones on the original product. Please see the attached screenshot per-product-shipping-on-original.jpg. Now I can see that it works for Finland, Sweden, Euro, and Kr. For Finland, according to the settings, the price is 63 Euros. And the calculation is as follows: 25 product price Please see the attached screenshot finland-checkout-price.jpg. And for Sweden, according to the settings, the price is 525 Kr. And the calculation is as follows: 25 product price Please see the attached screenshot sweden-checkout-price.jpg. Please remember that in WooCommerce -> WooCommerce Multilingual & Multicurrency -> Multicurrency, you have set the exchange rate of Euro <-> Kr to 1 EUR = 1 SEK. So as far as we can see, this is working as expected, and there is no compatibility problem with WooCommerce Multilingual & Multicurrency and the Per Product Shipping plugin. Please let me know if this clears this issue or if you have further questions. Regards, |
July 18, 2023 at 10:54 am #14058381 | |
Arto Hautanen |
Alright. It does seem to work when the Per Product shipping price is set on the main language. WooCommerce should probably disable the option of adding seperate Per Shipping method prices for the language versions as it is confusing. Cheers for the thorough explanations and information! |
July 18, 2023 at 11:43 am #14058787 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Timezone: Asia/Jerusalem (GMT+03:00) |
Great! You wrote: "WooCommerce should probably disable the option of adding seperate Per Shipping method prices for the language versions as it is confusing." I'm not sure what you mean. For your information, the shipping method has nothing to do with the language. In any case, I'm glad that the issue is solved now. Please let me know if you have further questions or mark this ticket resolved. Best Regards, |
July 19, 2023 at 7:22 am #14062779 | |
Arto Hautanen |
I mean the fact that if I go to the in this case Swedish product, shouldn't the Per Product Shipping tab be disabled? As everything should be done on the main language product? Or do I understand wrong? Anyway. I can proceed and things seem to work correctly. The user experience is just quite poor and confusing with the Per Product Shipping. I am talking about this image you sent I attached. There should be no situation where users should edit this on the version of a translation right? Thanks again. |
July 19, 2023 at 11:49 am #14065829 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Timezone: Asia/Jerusalem (GMT+03:00) |
Great, I'm glad things work now, and you can continue working. You wrote: "There should be no situation where users should edit this on the version of a translation right?" I've escalated this issue to our compatibility team. Let's see what they have to say about it. I'll update you here. Regards, |
July 20, 2023 at 7:54 am #14069799 | |
Arto Hautanen |
Cheers. Thank you! |
July 24, 2023 at 12:28 pm #14089353 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, Add the following function to the functions.php file of the site's theme. function add_js_lock_fields_classes( $classes ){ // Add 2 locked field classes return $classes; |