-
Notifications
You must be signed in to change notification settings - Fork 2
Installation Setup
Install on the .net Core MVC project the HBS.Kentico.Ecommerce package.
Add to your services
services.RegisterEcommerceServices(new EcommerceServiceConfiguration() { CheckoutUrl = "/Store/Checkout", ThankYouUrl = "/Store/Thank-You" });
Available Settings for the EcommerceServiceConfiguration. With defaults in place.
/// <summary>
/// If set to true, then cart items with custom data will be considered unique items.
/// Default (false) will increment quantity even if custom data fields are different.
/// </summary>
public bool UseCustomProductFields { get; set; } = false;
/// <summary>
/// Specify the minutes to store the ecommerce cached items.
/// </summary>
public int CacheMinutes { get; set; } = 30;
public string CheckoutUrl { get; set; } = "/Checkout";
public string ThankYouUrl { get; set; } = "/ThankYou";In order to use a custom url, create a page type by the name of Generic.Ecommerce and set it to either the checkout or the shopping cart url. Make sure that the url path matches what you have set in the configuration. Generic.Ecommerce is just the page name that has the Ecommerce page templates automatically filtered. you may use any page type and add your own filters, the two page template code names are Generic.Ecom.Checkout, and Generic.Ecom.ShoppingCart
Add to the bottom
<script src="~/hbscommerce/js/ecommerce.min.js"></script>
<script src="~/hbscommerce/js/ecommerceEvents.js"></script>You may also add any payment gateway you need. Currently there are 2 payment gateways, StripeJS and shortly we will have an Authorize.Net AcceptJS payment gateway.
- Installation / Setup
- Design Principle
- Basic Usage
- Operations and Interfaces
- Customization Points
- Creating Custom Payment Gateways