xiron3
Forum Replies Created
-
Thanks for the good information. Can you give an approximate timing for this release? I would like to pass the information on to my client.
Unfortunately, it still doesn’t work for me. An additional problem is that the price element from the CheckBox option is not added to the total price of product in the cart. In the shopping cart, in the text details of the purchased product, we can find this option, but its price is not included. This is a terrible mistake.
I Have
N-Media WooCommerce PPOM PRO – v18.11
PPOM for WooCommerce by N-MEDIA v20.4.3
WPML (2 language and 2 currency)Hi
Add this line $display_key=stripslashes(ppom_wpml_translate($display_key,’PPOM’));
at the end of funcion ppom_woocommerce_order_key fix my problem.Can I ask you to improve in the next release ?
So i Have
function ppom_woocommerce_order_key( $display_key, $meta, $item ) {if ($item->get_type() != ‘line_item’) return $display_key;
$field_meta = ppom_get_field_meta_by_dataname( $item->get_product_id(), $display_key );
if( isset($field_meta[‘title’]) && $field_meta[‘title’] != ” ) {
$display_key = stripslashes( $field_meta[‘title’] );
}
$display_key=stripslashes(ppom_wpml_translate($display_key,’PPOM’));
return $display_key;
}It doesn’t work well. When I add a product to cart in the Polish version of the website and switch to the English version – the PPOM checkbox option disappears from the product summary (in basket). The same error as before – the condition is not met
if( $posted_value == $option_value ) {
$option_label_array[] = $option[‘label’];
$options_data_array[] = array(‘option’=>$option[‘raw’],’price’=>$option[‘price’],’id’=>$option[‘option_id’]);
}
where $posted_value = ‘kino’ (polish)
and $option_value = ‘cinema’ (english)This is in \woocommerce-product-addon\inc\functions.php
z
- This reply was modified 4 years, 8 months ago by xiron3.