File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,17 +57,17 @@ protected function init() {
5757},
5858'price ' => function () {
5959return ! empty ( $ this ->wc_data ->get_price () )
60- ? \wc_graphql_price ( $ this ->wc_data -> get_price () )
60+ ? \wc_graphql_price ( \wc_get_price_to_display ( $ this ->wc_data , [ ' price ' => $ this -> wc_data -> get_price () ] ) )
6161: null ;
6262},
6363'regularPrice ' => function () {
64- return ! empty ( $ this ->wc_data ->get_regular_price () ) ?
65- \wc_graphql_price ( $ this ->wc_data -> get_regular_price () )
64+ return ! empty ( $ this ->wc_data ->get_regular_price () )
65+ ? \wc_graphql_price ( \wc_get_price_to_display ( $ this ->wc_data , [ ' price ' => $ this -> wc_data -> get_regular_price () ] ) )
6666: null ;
6767},
6868'salePrice ' => function () {
6969return ! empty ( $ this ->wc_data ->get_sale_price () )
70- ? \wc_graphql_price ( $ this ->wc_data -> get_sale_price () )
70+ ? \wc_graphql_price ( \wc_get_price_to_display ( $ this ->wc_data , [ ' price ' => $ this -> wc_data -> get_sale_price () ] ) )
7171: null ;
7272},
7373'dateOnSaleFrom ' => function () {
You can’t perform that action at this time.
0 commit comments