Skip to content

Instantly share code, notes, and snippets.

View sharespine's full-sized avatar

Sharespine sharespine

View GitHub Profile
--- 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 );