Merge branch 'feature/admin-apply-discount-15501' into feature/coupon-remove
This commit is contained in:
commit
2a4a078266
|
@ -311,7 +311,7 @@ final class WC_Cart_Totals {
|
||||||
*/
|
*/
|
||||||
protected function get_discounted_price_in_cents( $item_key ) {
|
protected function get_discounted_price_in_cents( $item_key ) {
|
||||||
$item = $this->items[ $item_key ];
|
$item = $this->items[ $item_key ];
|
||||||
$price = $item->subtotal - $this->discount_totals[ $item_key ];
|
$price = isset( $this->discount_totals[ $item_key ] ) ? $item->subtotal - $this->discount_totals[ $item_key ] : $item->subtotal;
|
||||||
|
|
||||||
if ( $item->price_includes_tax ) {
|
if ( $item->price_includes_tax ) {
|
||||||
$price += $item->subtotal_tax;
|
$price += $item->subtotal_tax;
|
||||||
|
|
Loading…
Reference in New Issue