-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the extendability of Rules::ItemTotal
- Make operators extendable without reopening the method - Allow to overwrite/extend the total - Allow to overwrite/extend the threshold - Simplify #eligible? making it more readable - Migrate the OPERATORS constant to an extendible method - Fix the default preferred operator
- Loading branch information
Showing
2 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
backend/app/views/spree/admin/promotions/rules/_item_total.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters