How PVT Shortcode Works With the Translated Product in WPML
PVT uses the product ID to display the variation table on the single product page. So, when you land on a product details/single product page, it will display the table based on the current product ID (whether it is a translated product or the main product).
Note: Please ensure you are using at least 1.9.0 versions for both:
- PVT – Product Variation Table for WooCommerce
- PVT – Product Variation Table for WooCommerce – Pro
Shortcode Not Working on Newly Translated Products?
If you ever see the shortcode not working on newly translated products, follow these steps:
- Go to WPML → Translation Dashboard → Products.
- Check for the affected products.
- Here is a screenshot of how affected products will be listed.
- Then go to that individual product and update the other languages.
- After clicking on the “Update” buttons, you will get the translation screen.
- Make sure you have translated all the strings, and it will display 100%.
- After that, click on “Save and Complete.”
- Then clear all caches (browser cache, caching plugin cache, and server-side cache).
- The table will then display correctly for the other language (e.g., Bengali) if you used the shortcode in the description field.
Product-Level Variation Table Settings Are Automatically Copied to Other Languages
Inside the “PVT – Product Variation Table for WooCommerce – Pro” plugin, a wpml-config.xml file exists.
So, when you save the “Display Rule” from Product Edit → Variation Table tab, the value will be automatically copied to the other languages as well.
For confirmation, you can check it from:
WPML → Settings → Custom Fields Translation
after saving the “Display Rule” from the product edit page.
Here is a screenshot
Note: Please ensure you are using at least 1.9.0 versions for both plugins.
Translate Dynamic Strings (Add to Cart, Available Options, etc.) in WPML
The dynamic texts of PVT – Product Variation Table for WooCommerce are translatable.
You can check the list of the dynamic texts from:
WPML → Translation Dashboard → Other texts (Strings)
Then select the domain:
- product-variant-table-for-woocommerce Or,
- product-variant-table-for-woocommerce-pro
from the “All domains” dropdown to get the available dynamic strings of the plugins.
Note: Please ensure you are using at least 1.9.0 versions for both:
- PVT – Product Variation Table for WooCommerce
- PVT – Product Variation Table for WooCommerce – Pro
Was this article helpful?
YesNo