File tree 1 file changed +8
-0
lines changed
app/code/Magento/Tax/Plugin/Checkout/CustomerData
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,14 @@ public function afterGetSectionData(\Magento\Checkout\CustomerData\Cart $subject
68
68
$ this ->itemPriceRenderer ->setItem ($ item );
69
69
$ this ->itemPriceRenderer ->setTemplate ('checkout/cart/item/price/sidebar.phtml ' );
70
70
$ result ['items ' ][$ key ]['product_price ' ]=$ this ->itemPriceRenderer ->toHtml ();
71
+ if ($ this ->itemPriceRenderer ->displayPriceExclTax ()) {
72
+ $ result ['items ' ][$ key ]['product_price_value ' ] = $ item ->getCalculationPrice ();
73
+ } elseif ($ this ->itemPriceRenderer ->displayPriceInclTax ()) {
74
+ $ result ['items ' ][$ key ]['product_price_value ' ] = $ item ->getPriceInclTax ();
75
+ } elseif ($ this ->itemPriceRenderer ->displayBothPrices ()) {
76
+ $ result ['items ' ][$ key ]['product_price_value ' ]['incl_tax ' ] = $ item ->getPriceInclTax ();
77
+ $ result ['items ' ][$ key ]['product_price_value ' ]['excl_tax ' ] = $ item ->getCalculationPrice ();
78
+ }
71
79
}
72
80
}
73
81
}
You can’t perform that action at this time.
0 commit comments