Skip to content

Instantly share code, notes, and snippets.

@sharespine
Last active September 22, 2016 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sharespine/19b76863dc15cd6930cffa1e861f5fc1 to your computer and use it in GitHub Desktop.
Save sharespine/19b76863dc15cd6930cffa1e861f5fc1 to your computer and use it in GitHub Desktop.
--- 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