OrchardCMS / OrchardCore.Commerce

The commerce module for Orchard Core.
MIT License
210 stars 87 forks source link

Product Promotions (i.e. Coupons / Discounts) Support (OCC-56) #9

Open jeffolmstead opened 5 years ago

jeffolmstead commented 5 years ago

First goal is to differentiate difference between a coupon and a discount - possible they can both just be called Discounts, though likely all could be handled through an IPromotion or IDiscount interface.

Coupons That expression to me is a price adjustment provided to people who have a "code" to enter at time of checkout

Discounts I see these as more of a price adjustment applied to target markets, no checkout "code" required

Coupons or Discounts Both Coupons or Discounts should be able to be a percentage based price adjustment or a unit of currency based adjustment. They could be flagged as single use (globally or per user - per user would require an authenticated user for purchase though). They can be conditioned on products existing in the cart and can only apply to individual products as opposed to the full cart.

Jira issue

jeffolmstead commented 5 years ago

Adding in information from @MatteoPiovanelli-Laser:

MatteoPiovanelli-Laser commented 5 years ago

As I look at things, I am thinking that the "way to sort" promotions should really be just a workflow.

sarahelsaig commented 2 years ago

I have created a separate issue for a smaller scope version of this, for the MVP. It's a rough draft of the minimum what I think we'd need for basic discounts. Could you share your thoughts there? https://github.com/OrchardCMS/OrchardCore.Commerce/issues/136

(this issue remains open for the more general discussion)

dpomt commented 1 year ago

Hi, thanks for implementing OrchardCore Commerce!

I have just cloned the actual repo and did some tests. Regarding the discounts: In Nwazet commerce, there has been a content type Discount with a DiscountPart. The concept was having different discounts with "rules" when they apply - see screenshot:

image

I have used this to apply discount depending on user role.

In the current implemtation, it seems that the DiscountPart is attached to the product. Are the any plans to change that like it previously was in NwazetCommerce? If yes, is there any timeline? If no, how could a role-based discount be integrated in the currenct concept/implemtation?

Thanks, Dieter