magento / community-features

Magento Features Development is an Initiative to Allows Community Memebers Join to Development of Magento Features
46 stars 18 forks source link

Add Option to Cart Price Rule that allows Discount to be applied to Shipping Only #305

Open bernieu2 opened 3 years ago

bernieu2 commented 3 years ago

Currently, there is the following option in Cart Price Rule to distribute discount amount across products and shipping "proportionally". "Apply to Shipping Amount" Screenshot from 2020-10-27 13-57-21

I believe this option is slightly unclear. For example, if this is selected, the invoice totals show as discount distributed across all products. Screenshot from 2020-10-27 13-56-23

I think many merchants would prefer options here to either: a) apply discount only to products b) apply discount only to shipping c) apply discount to both

I would like to see option (b) made available. Currently to do this, you need to add a condition in the next panel that excludes all products, so that the discount is only applied to shipping amount. How this is done is dependent on individual store setup but, for me, adding a condition like so results in the following invoice totals. Screenshot from 2020-10-27 11-57-49 Screenshot from 2020-10-27 13-56-41

This now fits in with my business logic. As this cart price rule is to give the customer discounted shipping, I do NOT want the discount to be applied to product prices. Again, this is dependent on business logic and process, but, if I were to not have this extra condition then when my sales figures are sent to accounting, my sales total will be understated and my shipping income will be overstated on an overall basis for the trading period.

Essentially, I think there should be a third option available here to apply discount ONLY to shipping amount. This will help avoiding the product sub-condition workaround that could be difficult to implement when a store has various attribute sets, etc.


In fact, from what I can tell, you MUST put a product sub-condition that excludes all products if you would like to use a cart price rule for shipping discounts. If you do not, this is what happens: Example 1: Screenshot from 2020-10-27 14-18-43 Screenshot from 2020-10-27 14-19-10

Example 2: Screenshot from 2020-10-27 13-57-21 Screenshot from 2020-10-27 14-19-48 !?

Indeed, the documentation here for cart price rules does not seem to work for me at all. https://docs.magento.com/user-guide/marketing/price-rules-cart-free-shipping.html

Perhaps I am misunderstanding the conditions. In any case, I think this behaviour is unclear and confusing for merchants, and a third option should be made available.

m2-assistant[bot] commented 3 years ago

Hi @bernieu2. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this