HotcakesCommerce / hotcakes-commerce-core

The core of the e-commerce part of the overall solution. This is an ecommerce shopping cart solution built on top of the DNN (DotNetNuke) CMS. Anyone can do commerce online now!
https://mmmcommerce.com
MIT License
68 stars 55 forks source link

Check Store ID when Checking for Duplicate Variants #492

Open mtrutledge opened 1 month ago

mtrutledge commented 1 month ago

When multiple stores exist, and you attempt to add a variant to a product, it is not currently filtered by StoreId. It gives an error message about the SKU already existing even though the SKU doesn't exist in the current store.

This adds a stored check based on the current context.

Related to Issue

No issue currently exists

Description

Gets the current store id from the context and filters what variants we are looking for by the store id.

Types of changes

Checklist: