You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a coupon code set up to discount each cart item by 50%, the discount is not included in some important calculations.
Steps to Reproduce:
Configure a Discount Rule to discount each cart item by 50%, and attach a coupon code to it
Add any number of items to the cart (can be on sale or full price)
Apply the coupon code when viewing the cart.
Observe that the Total column shows the correctly discounted total price for the product (price * quantity)
Observe that the Price column does not correctly reflect the discount. A full price item still shows its full price, while an item on sale shows the full price crossed out with the sale price underneath, but not further reduced to include the discount that is applied by the coupon.
Observe that the price of each item in the mini-cart (in the page header) also does not correctly reflect the discount. Neither does the Subtotal.
Complete checkout, and arrive at the Order Receipt page
Observe that the Price column now does correctly reflect the discount provided by the coupon code.
Additional Information:
Both cases use the same partial (cart-contents.htm)
The Price is retrieved using {{ item.price() }}, which LS documentation states 'Returns the current price of the cart item after discounts.'. The problem is that it appears to fail to include the discount applied by the coupon code while the item is still in the cart. Once it is part of a completed order, it correctly includes the discount.
The mini-cart price of each cart item is also retrieved using {{ item.price() }}.
The mini-cart subtotal is retrieved using {{ cart.getSubtotal() }}.
Screenshots:
Mini-cart
- Cart
- Order Receipt
The text was updated successfully, but these errors were encountered:
Using a coupon code set up to discount each cart item by 50%, the discount is not included in some important calculations.
Steps to Reproduce:
Additional Information:
Screenshots:
![screen shot 2017-12-07 at 4 23 48 pm](https://user-images.githubusercontent.com/12742234/33745506-0e133c76-db6c-11e7-8b16-bfb33664ccfb.png)
- Cart![screen shot 2017-12-07 at 3 46 49 pm](https://user-images.githubusercontent.com/12742234/33745486-fe497774-db6b-11e7-827b-377972222c9f.png)
- Order ReceiptThe text was updated successfully, but these errors were encountered: