Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
--- wp-content/plugins/woocommerce-multilingual/inc/class-wcml-woocommerce-rest-api-support.php.borked 2016-08-29 11:43:57.106977178 +0200
+++ wp-content/plugins/woocommerce-multilingual/inc/class-wcml-woocommerce-rest-api-support.php 2016-08-29 11:47:02.116959116 +0200
@@ -391,6 +391,8 @@
}
} else {
+
+ if ($this->woocommerce_wpml->multi_currency->prices) {
$product_data['multi-currency-prices'][$currency]['regular_price'] =
$this->woocommerce_wpml->multi_currency->prices->raw_price_filter( $product_data['regular_price'], $currency );
if( !empty($product_data['sale_price']) ){
@@ -400,7 +402,7 @@
}
}
-
+ }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment