Product Options and Price Calculation Formulas for WooCommerce — Uni CPO PREMIUM
- dans le fichier \wp-content\plugins\uni-
woo-custom-product-options- premium\includes\uni-cpo- functions.php ajoutez le code : if (class_exists('WOOCS')) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $price = $WOOCS->woocs_exchange_value(floatval($price)); } }
- ET commentez/supprimez le code :

- dans le fichier includes\class-uni-cpo-ajax.php ajoutez le code suivant :
if (class_exists('WOOCS')) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $price_display = $WOOCS->woocs_exchange_value(floatval($price_display)); } }
- Dans le fichier wp-content\plugins\woocommerce-currency-switcher\js\front.js modifiez le code suivant :
if (data.ids[jQuery(item).data('product-id')] != undefined && !jQuery(item).find('.js-cpo-price-starting')).length) {
Modifiez le sélecteur de prix : .summary.entry-summary .price .woocs_price_code > .amount