Kruso.Umbraco.BigCommercePicker 2.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Kruso.Umbraco.BigCommercePicker --version 2.3.0                
NuGet\Install-Package Kruso.Umbraco.BigCommercePicker -Version 2.3.0                
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="Kruso.Umbraco.BigCommercePicker" Version="2.3.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Kruso.Umbraco.BigCommercePicker --version 2.3.0                
#r "nuget: Kruso.Umbraco.BigCommercePicker, 2.3.0"                
#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 Kruso.Umbraco.BigCommercePicker as a Cake Addin
#addin nuget:?package=Kruso.Umbraco.BigCommercePicker&version=2.3.0

// Install Kruso.Umbraco.BigCommercePicker as a Cake Tool
#tool nuget:?package=Kruso.Umbraco.BigCommercePicker&version=2.3.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 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. 
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
2.4.0 317 2/7/2023
2.3.0 266 2/7/2023
2.2.0 280 2/7/2023
2.1.0 373 12/4/2022
2.0.0 467 9/13/2022
1.1.0 544 5/24/2022
1.0.0 532 5/17/2022
1.0.0-preview 181 5/12/2022