We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b93c07 commit 7343ab2Copy full SHA for 7343ab2
includes/model/class-product.php
@@ -241,7 +241,7 @@ protected function init() {
241
: null;
242
},
243
'priceRaw' => function() {
244
- return ! empty( $this->wc_data->get_price() ) ? \wc_get_price_to_display( $this->wc_data ) : null;
+ return ! empty( $this->wc_data->get_price() ) ? $this->wc_data->get_price() : null;
245
246
'regularPrice' => function() {
247
return ! empty( $this->wc_data->get_regular_price() )
@@ -255,8 +255,8 @@ protected function init() {
255
return ! empty( $this->wc_data->get_sale_price() )
256
? \wc_graphql_price(
257
\wc_get_price_to_display(
258
+ $this->wc_data,
259
[
- $this->wc_data,
260
'price' => $this->wc_data->get_sale_price(),
261
]
262
)
0 commit comments