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 |
---|---|---|---|---|---|---|
- | 8:00 – 14:00 | 8:00 – 14:00 | 8:00 – 14:00 | 8:00 – 14:00 | 8:00 – 14:00 | - |
- | 15:00 – 17:00 | 15:00 – 17:00 | 15:00 – 17:00 | 15:00 – 17:00 | 15:00 – 17:00 | - |
Supporter timezone: Europe/Madrid (GMT+01:00)
Tagged: Not WPML issue
This topic contains 21 replies, has 4 voices.
Last updated by Nigel 4 months, 2 weeks ago.
Assisted by: Nigel.
Author | Posts |
---|---|
May 28, 2024 at 2:17 am #15675996 | |
alexeyK-12 |
Hello, We noticed an issue with the prices when purchasing a course. The problem is that in the settings of the test course, the full price is set to $594, and the discounted price is $396: hidden link However, on the homepage, the course price is displayed as follows: full price - $594, discounted price - $15,681. So, it seems that the full price is not being converted, only the currency sign is changed, while the discounted price is converted: hidden link. All attempts to change the price from the instructor dashboard have been unsuccessful. hidden link When editing from the admin panel, the price is displayed correctly. Therefore, WPLMS claims that this issue might be caused by the multi-currency plugin. hidden link |
May 28, 2024 at 6:49 am #15676376 | |
Waqar Ali |
Hi, Thank you for contacting us and I'd be happy to assist. The integration with WPML is managed by WPLMS ( ref: https://wpml.org/plugin/wplms-2/ ), but we can take a look into the admin area to see how WPML is configured on the website. Can you please share the temporary admin login details of a website where the issue can be seen, along with the exact steps? Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details. regards, |
May 29, 2024 at 12:05 pm #15683398 | |
Waqar Ali |
Thank you for sharing the access details. I'm currently performing some troubleshooting around this and will share the findings as soon as this testing is completed. |
May 30, 2024 at 7:13 am #15686127 | |
alexeyK-12 |
Thank you, we are waiting. |
May 31, 2024 at 2:47 pm #15693007 | |
Waqar Ali |
Thank you for waiting as I completed the troubleshooting around this. Considering the example of the course from your screenshot, I don't see a discrepancy in the price calculation and/or conversion. Course: 'Життя в гармонії: Онлайн курс здорового способу життя' EN URL: EN price: UK URL: UK Price: And the product associated with this course is 'Життя в гармонії: Онлайн курс здорового способу життя' The price set for this product is also the same as the EN version of the course: As per the set price conversion "1 USD = 40.45679 UAH", set at WP Admin -> WooCommerce -> WooCommerce Multilingual & Multicurrency -> Multicurrency, the price shown conversion is correct. 50 x 40.45679 = 2022.8395 (rounded to 2023) Please let me know if I'm missing something or if you need any further assistance with this. |
June 3, 2024 at 9:07 am #15697001 | |
alexeyK-12 |
Then please take a look at this course: "Управління проектами" (Project Management) UK Price: EN Price: However, the site displays it differently: UK Price: |
June 3, 2024 at 2:50 pm #15698249 | |
Waqar Ali |
Thanks for writing back. The course's edit link is at: The Product associated with this course is: Original price: $50 There is another product with the same name at: Original price: $2027 But this second product is not associated with this course, so its price doesn't matter for this course. |
June 4, 2024 at 5:59 am #15699724 | |
alexeyK-12 |
We're specifically referring to this course: hidden link If we edit it from the admin panel, the price displays correctly. We're interested in understanding why the price cannot be edited from the instructor's dashboard. Also, why does the price set during the course creation display incorrectly? |
June 4, 2024 at 7:39 am #15699995 | |
Waqar Ali |
About the course that you referenced, as per the attached product ( /wp-admin/post.php?post=21120&action=edit&lang=uk ) the price is displaying correctly. > We're interested in understanding why the price cannot be edited from the instructor's dashboard. - I couldn't figure out how to access the instructor's dashboard. Can you please share the exact steps? Do I need to be logged in using a different user account with an 'instructor' role? > Also, why does the price set during the course creation display incorrectly? -I suspect the confusion is caused by having two products with the same name. ( hidden link ) Still, if you see something out of place, please share the exact steps of how you create a new course and experience this issue. |
June 7, 2024 at 10:18 am #15714795 | |
Waqar Ali |
Thank you for sharing these details. The front-end layer for course management and integration/compatibility with the WPML, both are managed by WPLMS support. Have you shared these further details with them? If the price conversion issue was happening from the WordPress admin area, our development team would be able to add a fix for this. But for any issues arising from the front-end course management screen, WPLMS developers will need to include the necessary changes or fixes. |
June 12, 2024 at 9:31 am #15730289 | |
alexeyK-12 |
We contacted WPLMS and received the following response: well we are creating / editing the price of product in api call which calls to this code : which as you can see we are using proper wp and woocommerce functions and there is no code involved in currency exchange . the wpml is running thier filter in this core woocommerce function from WC_product class : $product->get_price_html() if(function_exists('wc_get_product') && $cpt == 'product'){ $sale_price = $product->get_sale_price(); $regular_price = $product->get_regular_price(); } }else{ }else{ } } hidden link |
June 12, 2024 at 11:31 am #15731218 | |
Waqar Ali |
Thank you for sharing this. In my search, I couldn't find this part of the code in the WPML core plugins. Do I have your permission to download a clone/snapshot of your website? This will allow me to troubleshoot this on a different server further. |
June 14, 2024 at 8:42 am #15738963 | |
alexeyK-12 |
Yes, of course. |
June 17, 2024 at 11:12 am #15744895 | |
Nigel Supporter Timezone: Europe/Madrid (GMT+01:00) |
Hi there Waqar isn't available, so let me take over here. I've been reading through the thread to try and understand the problem. You referred to this course: hidden link That has a post ID of 24940. Editing the post in the back end, I see that the language of the post is Ukrainian. The connected product is "Управління проектами". From the UI it is not possible to determine exactly what product that is (there could be multiple products with the same name). So, I added a plugin to be able to inspect the database directly, and I checked the entries in wp_postmeta for the course with post_id 24940. There I found the custom field "vibe_product" which stores the post ID of the linked product, in this case 21120. Now, if I edit the product with ID 21120 in the back end, I can confirm that it is called "Управління проектами". But! I can also see that the language of the product is English (screenshot). A Ukrainian course connected to an English product. That is inevitably going to cause problems when it comes to displaying prices in the correct currency. I'm not familiar with the course plugin, and I know WPML compatibility is maintained by the plugin authors, so I don't know how you ended up connecting the wrong product to the wrong course. Perhaps you would know that from the workflow you followed. |
June 26, 2024 at 10:38 am #15832667 | |
alexeyK-12 |
This course was created a while ago, but the problem persists with courses we create now as well. |
The topic ‘[Closed] The issue with setting the course price’ is closed to new replies.