SplatDev.Umbraco.Plugins.ShopCart 2.3.4

dotnet add package SplatDev.Umbraco.Plugins.ShopCart --version 2.3.4
                    
NuGet\Install-Package SplatDev.Umbraco.Plugins.ShopCart -Version 2.3.4
                    
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="SplatDev.Umbraco.Plugins.ShopCart" Version="2.3.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SplatDev.Umbraco.Plugins.ShopCart" Version="2.3.4" />
                    
Directory.Packages.props
<PackageReference Include="SplatDev.Umbraco.Plugins.ShopCart" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SplatDev.Umbraco.Plugins.ShopCart --version 2.3.4
                    
#r "nuget: SplatDev.Umbraco.Plugins.ShopCart, 2.3.4"
                    
#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.
#:package SplatDev.Umbraco.Plugins.ShopCart@2.3.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SplatDev.Umbraco.Plugins.ShopCart&version=2.3.4
                    
Install as a Cake Addin
#tool nuget:?package=SplatDev.Umbraco.Plugins.ShopCart&version=2.3.4
                    
Install as a Cake Tool

ShopCart

Simple shopping cart for Umbraco — add/remove items, quantity management, and session-based cart with a backoffice dashboard.

ShopCart dashboard

NuGet

Compatibility

Umbraco .NET Package Version
13.x 8.0 2.3.4
17.x 10.0 2.3.4

Installation

dotnet add package SplatDev.Umbraco.Plugins.ShopCart

Quick Start

The plugin auto-registers via ShopCartComposer, which sets up the EF Core DbContext and IShopCartService.

Configuration

Add to appsettings.json:

{
  "ConnectionStrings": {
    "umbracoDbDSN": "Server=localhost;Database=umbraco;Trusted_Connection=True;"
  }
}

API Endpoints

Method Route Description
GET /umbraco/api/shopcart/GetCart?sessionId= Retrieve cart contents
POST /umbraco/api/shopcart/AddItem Add item to cart
POST /umbraco/api/shopcart/UpdateQuantity Update item quantity
DELETE /umbraco/api/shopcart/RemoveItem?id= Remove item from cart
DELETE /umbraco/api/shopcart/ClearCart?sessionId= Empty the cart
GET /umbraco/api/shopcart/GetTotal?sessionId= Get cart total

Usage

Call the API from your front-end with a session identifier:

// Add item to cart
fetch('/umbraco/api/shopcart/AddItem', {
    method: 'POST',
    body: JSON.stringify({ sessionId: 'abc123', productId: 1, quantity: 1 }),
    headers: { 'Content-Type': 'application/json' }
});

The plugin includes a ProductDocumentType scaffolding class for creating Umbraco product content types.

Known Limitations

  • Session-based cart management — no authentication integration or persistent user carts
  • No built-in checkout or payment flow; must be integrated with a separate payment plugin
  • Uses the same ConnectionStrings:umbracoDbDSN as Umbraco (no separate database)
  • No auto-install mechanism for the Product document type scaffolding

Changelog

2.3.4 — 2026-08-26

The NuGet listing now shows the dashboard. It had no screenshot before, so the listing gave no picture of what the plugin looks like in the backoffice.

2.3.3 — 2026-08-26

Fixes a duplicate registration on sites that still have a physical App_Plugins folder for this plugin, left behind by an older release that copied content into the site. Umbraco registered those extensions twice - once from its own scan of the folder, once from this package's embedded manifest - and logged "Extension with alias ... is already registered". The embedded manifest now yields to the physical copy.

2.3.2 — 2026-08-24

Removes a dashboard screenshot that showed an error toast. It was captured against a site where this plugin's API was unreachable, so it advertised a broken dashboard. No screenshot is better than a misleading one; a replacement will be taken against a working install.

2.3.1 — 2026-08-24

Package metadata only: the listing now carries an icon and search tags, and the project and repository links point at the organisation that actually hosts this code. No code changes.

2.3.0 — 2026-08-23

The Umbraco Marketplace listing now carries this plugin's screenshots. The listing keeps its own screenshot list rather than reading the README, and this one was empty — so the entry showed no images at all.

2.2.2 — 2026-08-21

  • Dashboard now sends the backoffice token with its API calls. On Umbraco 17 those calls were arriving unauthenticated and coming back 401, which the dashboard rendered as an empty state rather than an error.
  • A failed request now raises a notification instead of leaving the dashboard looking like there is simply no data.
  • The plugin's tables are created on startup. They were never created before, so anything touching them failed on a fresh install.
  • Runs on SQLite as well as SQL Server. It previously assumed SQL Server and failed with "Keyword not supported: 'cache'" on the database Umbraco's installer offers by default.

License

MIT © SplatDev

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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.3.4 109 8/27/2026