HBS.Kentico.Ecommerce 13.5.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package HBS.Kentico.Ecommerce --version 13.5.1                
NuGet\Install-Package HBS.Kentico.Ecommerce -Version 13.5.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="HBS.Kentico.Ecommerce" Version="13.5.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HBS.Kentico.Ecommerce --version 13.5.1                
#r "nuget: HBS.Kentico.Ecommerce, 13.5.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install HBS.Kentico.Ecommerce as a Cake Addin
#addin nuget:?package=HBS.Kentico.Ecommerce&version=13.5.1

// Install HBS.Kentico.Ecommerce as a Cake Tool
#tool nuget:?package=HBS.Kentico.Ecommerce&version=13.5.1                

GenericEcommerce

Add Ecommerce to your Kentico Xperience MVC.Net Core Application. ready to use out of box, but can be fully customizable.

Basic Setup

Startup.cs

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.

_Layout.cshtml

Add to the bottom

<script src="~/hbscommerce/js/ecommerce.min.js"></script>
<script src="~/hbscommerce/js/ecommerceEvents.js"></script>

Adding an Add to Cart

You can add the "Add to Cart" through the below View Component:

@*This is an example that will add a sku with a custom field of a color to the cart.  In order to just use as normal, remove the CustomerFields property from the AddToCartViewModel.*@ 

@await Component.InvokeAsync("Generic.Ecom.AddToCart", new AddToCartViewModel() { Quantity = 1, SKUGUID = Model.Page.SKUProduct.SKUGUID, CustomFields = new Dictionary<string, object>() { { "color", "red" } } } )

See project for more customization options.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
13.5.5 584 8/31/2022
13.5.4 711 4/7/2022
13.5.3 606 4/6/2022
13.5.2 694 6/18/2021
13.5.1 468 6/11/2021
13.0.1 489 6/8/2021

13.5.1:
Downgraded to kentico libraries 13.0.5,
Removed tsconfig.json and packages.json from nupkg