I have custom code that works for certain user roles in the page that needs the circled elements to appear. I am attaching screenshots.
The element <div class="woocommerce-variation-price"><span class="price"><span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">€</span>26,900.00</bdi></span> <small class="woocommerce-price-suffix">με ΦΠΑ</small></span></div> appears properly in greek pages but is missing in english pages.
This issue didn't happen for products added before last September.
The code is PHP functions inserted in the child theme. Changing the theme (thus disabling the custom code) still has the same issue. The variation prices don't appear on the last products of the site.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.
You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.
IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.
I may have to install a plugin called "All In One WP Migration" to make a copy of the website where I can investigate the issue further.
However, I would also be very grateful if you could provide a staging site or copy of the website from your server yourself for this purpose.
If you have any questions about creating such a staging site, you can consult your hosting provider. Just take note that WPML should be registered on this site again.
If you are unable to provide such a copy of the site for testing, please let me know on this ticket.
The private response form looks like this: hidden link
Next time you reply, click "I still need assistance."
Video: hidden link
Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
In the file functions.php of your Child Theme on line 758, I found the respective function and it uses HTML. You can not translate strings coming from HTML with WPML. The strings need to be coded in PHP.
Feel free to use a different theme without custom code. I did and I still have the same problem. The latest products don't display their variation prices in english, only in greek.
I never said that I have trouble translating my custom code. I am having an issue with basic Woocommerce functionality. The strangest thing is that it works perfectly for older products but the newest ones have the following issue:
The site doesn't generate the code that displays the variation's price after the user selects the proper options. This is the price that appears before the Add to Cart button on the woocommerce product page.
I've tried updating all plugins and themes. I've even downgraded WPML to older versions. I've switched theme. Still the same problem.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
It looks ot me as if you declared some attributes directly as custom attributes on the product and such attributes can only be translated when translating the product with the WPML Translation Editor.
Please enable the WPML Translation Editor in the right sidebar of the original product and complete the translation to 100%.
If this does not solve the issue, let me know.
The topic ‘[Closed] Price of variation doesn't appear on translated product page’ is closed to new replies.