Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discounts #380

Closed
glennjacobs opened this issue Mar 4, 2022 · 0 comments · Fixed by #324
Closed

Discounts #380

glennjacobs opened this issue Mar 4, 2022 · 0 comments · Fixed by #324
Labels
admin-panel Improvements or additions to admin panel core Improvements or additions to core package feature Adds new functionality to GetCandy

Comments

@glennjacobs
Copy link
Contributor

glennjacobs commented Mar 4, 2022

This discounts system will use the Cart modifiers to implement discounts on products.

Discounts will be made up of conditions and discounts.

E.g.

Conditions

  • Coupon SAVE20 is applied
  • Cart sub-total is over $100 (inc. tax)

Discounts

  • Get 20% off products in the shoes collection
  • Get 10% off products in the t-shirt collection

Types of conditions can include...

  • Coupon
  • Spend x (from list)
  • Buy x (from list)
  • Cart total (inc. or ex. tax)

Discounts can include

  • % off (products or entire cart)
  • Cheapest free

Discounts should have a name that can be shown on the storefront.
We need to somehow set the priority of discounts and whether a discount is allowed to be applied more than once.
Also, should a discount allow further discounts to apply?

It would be good if we can make the system extendable to add custom conditions or discounts.

Tables

  • discounts
  • discount_condiditions (json)
  • discount_rewards (json)

DiscountManager

Discounts::getFreebies();
@glennjacobs glennjacobs changed the title Advanced Discounts Discounts Jun 7, 2022
@glennjacobs glennjacobs added core Improvements or additions to core package admin hub labels Jun 15, 2022
@glennjacobs glennjacobs transferred this issue from another repository Jul 15, 2022
@glennjacobs glennjacobs added feature Adds new functionality to GetCandy and removed admin hub labels Jul 15, 2022
@glennjacobs glennjacobs linked a pull request Jul 15, 2022 that will close this issue
@glennjacobs glennjacobs added the admin-panel Improvements or additions to admin panel label Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin-panel Improvements or additions to admin panel core Improvements or additions to core package feature Adds new functionality to GetCandy
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant