Skip to content

Commit c26ecf6

Browse files
Andres Akidunot89
authored andcommitted
fixup! fixup! fix: product variation raw price not visible for public users
1 parent f74a472 commit c26ecf6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

includes/model/class-product-variation.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,16 @@ protected function init() {
148148
'type' => function() {
149149
return ! empty( $this->wc_data->get_type() ) ? $this->wc_data->get_type() : null;
150150
},
151-
'priceRaw' => function() {
152-
return ! empty( $this->wc_data->get_price() ) ? $this->wc_data->get_price() : null;
153-
},
154-
'regularPriceRaw' => function() {
155-
return ! empty( $this->wc_data->get_regular_price() ) ? $this->wc_data->get_regular_price() : null;
151+
'priceRaw' => function() {
152+
return ! empty( $this->wc_data->get_price() ) ? $this->wc_data->get_price() : null;
156153
},
154+
'regularPriceRaw' => function() {
155+
return ! empty( $this->wc_data->get_regular_price() ) ? $this->wc_data->get_regular_price() : null;
156+
},
157157

158-
'salePriceRaw' => function() {
159-
return ! empty( $this->wc_data->get_sale_price() ) ? $this->wc_data->get_sale_price() : null;
160-
},
158+
'salePriceRaw' => function() {
159+
return ! empty( $this->wc_data->get_sale_price() ) ? $this->wc_data->get_sale_price() : null;
160+
},
161161

162162
/**
163163
* Connection resolvers fields

0 commit comments

Comments
 (0)