Home›Support›English Support›[Waiting for user feedback] Variable product is not showing Sale price in 1 language
[Waiting for user feedback] Variable product is not showing Sale price in 1 language
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.
Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
Background of the issue:
I am trying to display the sale price for Variable products in multiple languages on my website. I noticed that when I have put Variable products on sale since the 25th of March, the product is not showing the sale price in one of the languages. This issue is only happening with Variable products on sale. Here is the link to a page where the issue can be seen: hidden link
Symptoms:
Variable products are not showing the sale price in the SV language. None of the SV Rain ponchos are on sale, but the sale price seems to be coming through in the other language. I updated all the products, tried changing the date and price, and updating, then I managed to get one SV rain poncho to show. Purged all caches and CDN. But the other two are not working. Tested with another variable product and also with a single product. The variable product has the same issue.
Questions:
Why are the sale prices not showing for Variable products in the SV language?
What steps can I take to ensure all Variable products display the sale price correctly in all languages?
Welcome to the WPML support forum. I will do my best to help you resolve the issue.
Please try the following steps after a full site backup and make sure the issue exists.
1) Upgrade to the latest version of WooCommerce Multilingual & Multicurrency (5.4.3)
2) Increase the *MaxInputVars* of PHP settings to *10000*. Please check the following article for more details or contact your system admin/hosting provider for this purpose.
hidden link
3) Update the Product in the original language after a minor edit in the contents
4) Update the Product translation
Ok I will try that and see. We update the the woocommerce multilingual but the issue persisted. Will try with this fix and let you know if i need further assistance. thanks
Thank you for the updates. Please share the WordPress debug.log (not WPML debug information) with us so we can collect more details on this. Refer to the following pages for instructions
To enable the WordPress Debug log, open your wp-config.php file of site root and look for define('WP_DEBUG', false);. Change it to:
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
In this case, the errors will be saved to a debug.log log file inside the */wp-content/* directory.
Please follow the steps to reproduce the bugs (including the 500 error) and check if you are getting any errors or warnings related to WPML in the log file.
If you can paste your debug.log to http://pastebin.com/index.php and provide me with that link, it would be great! (This is the cleanest way because sometimes the logs are long and create a complete mess of discussion).