Kruso.Umbraco.BigCommercePicker
2.4.0
dotnet add package Kruso.Umbraco.BigCommercePicker --version 2.4.0
NuGet\Install-Package Kruso.Umbraco.BigCommercePicker -Version 2.4.0
<PackageReference Include="Kruso.Umbraco.BigCommercePicker" Version="2.4.0" />
paket add Kruso.Umbraco.BigCommercePicker --version 2.4.0
#r "nuget: Kruso.Umbraco.BigCommercePicker, 2.4.0"
// Install Kruso.Umbraco.BigCommercePicker as a Cake Addin #addin nuget:?package=Kruso.Umbraco.BigCommercePicker&version=2.4.0 // Install Kruso.Umbraco.BigCommercePicker as a Cake Tool #tool nuget:?package=Kruso.Umbraco.BigCommercePicker&version=2.4.0
Kruso.Umbraco.BigCommercePicker
BigCommerce product and category picker for Umbraco CMS.
How to set up
- Add nuget to your Umbraco (v10+) project.
- Create an API account in BigCommerce. The API account needs read-only access to Products. <br> The Access token for this account will be added to the Umbraco.BigCommercePicker configuration.<br>
Configuration
It's possible to connect the BigCommerce picker to one or more BigCommerce stores (different store per language).
Sample configuration, added to ConfigureServices
in Startup.cs
:
services.AddBigCommercePicker(new List<BigCommerceServiceConfiguration>
{
//add store used for en-US language
new ()
{
LanguageCode = "en-US",
StoreHash = "xd3iks453e",
AuthToken = "5rs4rl0ibo54f2c7zht5bsdft3rk97r"
}
//add store for all other languages
new ()
{
StoreHash = "zut2ikj1ae",
AuthToken = "lx2jkul0ibo54f2c7zhtrl0ibo54fe"
}
});
How to use
Add a BigCommerce picker to your content type. Note the configration that can be made when creating the editor (e.g. should this be a picker for products or categories?).
When rendering you can use the strongly typed collection
@foreach (Product product in Model.BigCommerceProducts)
{
@(product.Name + " - " + product.Price) <br/>
@if (!string.IsNullOrEmpty(product.Images[0]?.UrlThumbnail))
{
<img src="@product.Images[0].UrlThumbnail" />
}
@foreach (Variant variant in product.Variants)
{
@if (!string.IsNullOrEmpty(variant.ImageUrl))
{
<img src="@variant.ImageUrl" />
}
}
}
More details are found here .
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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 is compatible. 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. |
-
net6.0
- Umbraco.Cms.Web.BackOffice (>= 10.1.1 && < 11.0.0)
- Umbraco.Cms.Web.Website (>= 10.1.1 && < 11.0.0)
-
net7.0
- Umbraco.Cms.Web.BackOffice (>= 11.0.0)
- Umbraco.Cms.Web.Website (>= 11.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.