WPML + Variation product Problem
-
We have a paid version of PPOM PRO purchased two months ago. The problem concerns CheckBox ppom fields that have been translated using the WPML plugin.
I analyzed the code a bit and came to some conclusions.In the plugin file
wp-content \ Plugins \ Woocommerce-product-addon \ inc \ functions.phpPlease find a fragment
if ($ posted_value == $ option_value) {
$ option_label_array [] = $ option [‘label’];
$ options_data_array [] = array (‘option’ => $ option [‘raw’], ‘price’ => $ option [‘price’], ‘id’ => $ option [‘option_id’]);
}
in the ppom_generate_cart_meta functionIn our case, the variable $ posted_value contains translated label text (in Polish) and in the variable $ option_value we have a value derived from PPOM data-optionid, so the condition is never true.
For example, in the variable $ posted_value we have the value “Kino” and in the variable $ option_value the value “Cinema”.
Where “Kino” is cinema in Polish.
So in $posted_value we have value of Label translation and in $option_value we have value from data-optionid.Please help me solve this problem.
- The topic ‘WPML + Variation product Problem’ is closed to new replies.