Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1955 Added "Shipping by Total" functionality to "Shipping by Weight…
…" plugin Upgrade instructions: do not forget to manually delete "/Plugins/Shipping.FixedOrByWeight" directory (it's not used anymore) and replace the plugin «Shipping.FixedOrByWeight» by the plugin «Shipping.FixedByWeightByTotal» in the App_Data/installedPlugins.json file.
- Loading branch information
Showing
35 changed files
with
775 additions
and
401 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
111 changes: 62 additions & 49 deletions
111
.../Controllers/FixedOrByWeightController.cs → ...rollers/FixedByWeightByTotalController.cs
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...ing.FixedOrByWeight/Data/EfStartUpTask.cs → ...ixedByWeightByTotal/Data/EfStartUpTask.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
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
16 changes: 16 additions & 0 deletions
16
...Plugins/Nop.Plugin.Shipping.FixedByWeightByTotal/Data/ShippingByWeightByTotalRecordMap.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,16 @@ | ||
using Nop.Data.Mapping; | ||
using Nop.Plugin.Shipping.FixedByWeightByTotal.Domain; | ||
|
||
namespace Nop.Plugin.Shipping.FixedByWeightByTotal.Data | ||
{ | ||
public partial class ShippingByWeightByTotalRecordMap : NopEntityTypeConfiguration<ShippingByWeightByTotalRecord> | ||
{ | ||
public ShippingByWeightByTotalRecordMap() | ||
{ | ||
this.ToTable("ShippingByWeightByTotal"); | ||
this.HasKey(x => x.Id); | ||
|
||
this.Property(x => x.Zip).HasMaxLength(400); | ||
} | ||
} | ||
} |
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.