Wholesale For WooCommerce by WPExperts
- in file wp-content\plugins\woocommerce-wholesale-pricing\inc\class-wwp-wholesale.php add next code:
if (class_exists('WOOCS')) { global $WOOCS; $min_wholesale_price = $WOOCS->woocs_exchange_value(floatval($min_wholesale_price)); $max_wholesale_price = $WOOCS->woocs_exchange_value(floatval($max_wholesale_price)); $min_original_variation_price = $WOOCS->woocs_exchange_value(floatval($min_original_variation_price)); $max_original_variation_price = $WOOCS->woocs_exchange_value(floatval($max_original_variation_price)); }
- to the same file add next code:
if (class_exists('WOOCS')) { global $WOOCS; $r_price = $WOOCS->woocs_exchange_value(floatval($r_price)); $original_price = $WOOCS->woocs_exchange_value(floatval($original_price)); $wholesale_price = $WOOCS->woocs_exchange_value(floatval($wholesale_price)); }
This edit is inside another plugin's file, so a plugin update will undo it. Write the change down, and re-apply it after every update of that plugin — or ask its authors to include the fix on their side, which is the only version that survives. If the change is inside FOX itself, tell us: a fix that has to be re-applied by hand is a bug on our side, not a solution.