I have created a cart price rule which contains specfic coupon and percentage of product price discount(10%).
How to checkflow of Magento apply these rule.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityFirst check on which websites, which customers group you used in that rule. then check conditions and actions for your rule.
After that, you add the product to the cart and check checkout/cart
page. If cart price rule is applying for this product that you can see discount is applied to the product and you see in a summary also.
Please see below screenshot, I create one cart rule and it is applied to a product when product price greater than 100 and I applied 10$ fixed amount discount.
In your case, after adding the product to cart, you add coupon code in checkout/cart
page. After adding this code your rule work and see a discount label in summary also.
I hope this will help you.
vendor/magento/module-sales-rule/Model/Quote/Discount.php
.