-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves #1788: Added setting options to restrict order amount in gen…
…eral and for customer roles in specific. * also applied fixes and some modifications to already existing functionality. For example: * offcanvas-cart now hides checkout button dynamically * cart & checkout both now check and use the same validation method for min/max values * streamlined settings - easy config, & more refactoring
- Loading branch information
Marcel Schmidt
committed
Jul 30, 2020
1 parent
1459302
commit e6ddbbf
Showing
24 changed files
with
731 additions
and
337 deletions.
There are no files selected for viewing
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
29 changes: 29 additions & 0 deletions
29
...braries/SmartStore.Data/Migrations/202007301117363_AddCustomerRoleOrderAmount.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
src/Libraries/SmartStore.Data/Migrations/202007301117363_AddCustomerRoleOrderAmount.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace SmartStore.Data.Migrations | ||
{ | ||
using System; | ||
using System.Data.Entity.Migrations; | ||
|
||
public partial class AddCustomerRoleOrderAmount : DbMigration | ||
{ | ||
public override void Up() | ||
{ | ||
AddColumn("dbo.CustomerRole", "MinOrderAmount", c => c.Decimal(nullable: false, precision: 18, scale: 2)); | ||
AddColumn("dbo.CustomerRole", "MaxOrderAmount", c => c.Decimal(nullable: false, precision: 18, scale: 2)); | ||
} | ||
|
||
public override void Down() | ||
{ | ||
DropColumn("dbo.CustomerRole", "MinOrderAmount"); | ||
DropColumn("dbo.CustomerRole", "MaxOrderAmount"); | ||
} | ||
} | ||
} |
126 changes: 126 additions & 0 deletions
126
src/Libraries/SmartStore.Data/Migrations/202007301117363_AddCustomerRoleOrderAmount.resx
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.