-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simpler shopping cart. Completely resolve the issue about adding product to shopping cart while checkout in progress
- Loading branch information
Showing
103 changed files
with
6,005 additions
and
31,817 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
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
37 changes: 37 additions & 0 deletions
37
src/Modules/SimplCommerce.Module.Checkouts/Areas/Checkouts/ViewModels/AddressFormVm.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,37 @@ | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations; | ||
using Microsoft.AspNetCore.Mvc.Rendering; | ||
using SimplCommerce.Infrastructure.Models; | ||
|
||
namespace SimplCommerce.Module.Checkouts.Areas.Checkouts.ViewModels | ||
{ | ||
public class AddressFormVm : ValidatableObject | ||
{ | ||
[Required(ErrorMessage = "The {0} field is required.")] | ||
public string ContactName { get; set; } | ||
|
||
[Required(ErrorMessage = "The {0} field is required.")] | ||
public string Phone { get; set; } | ||
|
||
[Required(ErrorMessage = "The {0} field is required.")] | ||
public string AddressLine1 { get; set; } | ||
|
||
public string AddressLine2 { get; set; } | ||
|
||
public long StateOrProvinceId { get; set; } | ||
|
||
public long? DistrictId { get; set; } | ||
|
||
public string CountryId { get; set; } | ||
|
||
public string City { get; set; } | ||
|
||
public string ZipCode { get; set; } | ||
|
||
public IList<SelectListItem> StateOrProvinces { get; set; } | ||
|
||
public IList<SelectListItem> Districts { get; set; } | ||
|
||
public IList<SelectListItem> ShipableContries { get; set; } | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...Modules/SimplCommerce.Module.Checkouts/Areas/Checkouts/ViewModels/CartItemToCheckoutVm.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,11 @@ | ||
namespace SimplCommerce.Module.Checkouts.Areas.Checkouts.ViewModels | ||
{ | ||
public class CartItemToCheckoutVm | ||
{ | ||
public long ProductId { get; set; } | ||
|
||
public decimal ProductPrice { get; set; } | ||
|
||
public int Quantity { get; set; } | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/Modules/SimplCommerce.Module.Checkouts/Areas/Checkouts/ViewModels/CheckoutFormVm.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,7 @@ | ||
namespace SimplCommerce.Module.Checkouts.Areas.Checkouts.ViewModels | ||
{ | ||
public class CheckoutFormVm | ||
{ | ||
public string CouponCode { get; set; } | ||
} | ||
} |
Oops, something went wrong.