Hi
I have noticed that Smith cart allows duplicate SKU's. Surely this should not be the case? An SKU should be unique and a primary key in the DB.
This is clearly not the case. Can anyone explain this?
Also according to Kevin the code the does an import calls this proc which is not even using SKU. It is using variant name which can't be guaranteed unique either.
It seems no wonder to me that we are having so much trouble with import when there is no guarantee that the code can find the right variants and update them correctly.
Is this a mess or can you explain it?
ALTER PROCEDURE [dbo].[dnn_Smith_GetProductVariantsByGroupAndName]
SELECT * from dnn_Smith_ProductVariant pv
left outer join dnn_Smith_ProductVariantGroup pvg
on pvg.variantgroupid = pv.variantgroupid
WHERE pv.ProductID = @ProductID and pvg.VariantGroupID = @VariantGroupID and VariantName = @VariantName
ORDER BY pv.SortOrder