HomeHome Product Discus... Product Discus...SmithCartSmithCartProduct Import - only initial setup or bulk price change, also?Product Import - only initial setup or bulk price change, also?
Previous
 
Next
New Post
9/17/2010 8:20 AM
 

Is the product import feature only used to initially load products or can it also be used to bulk update price and other product attributes? Would the update assume Unique SKU's for the key?

How does it work?

Thanks.

Regards,

Art

 
New Post
9/17/2010 9:50 AM
 

You can use it to bulk update products also. The import program will lookup products by sku, if the product currently exists in the database it will update the existing product. If the product sku does not exist it will insert a new record.

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
7/28/2011 3:15 AM
 

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]

            @ProductID INT,

            @VariantGroupID INT,

            @VariantName varchar(50)

AS

 

            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

 
New Post
7/28/2011 12:35 PM
 
In the BuyNow module settings "Product Listing Setup" section there is a checkbox titled "Force Unique Sku". If you check that box the cart will require unique skus be saved at the product level. Currently, the cart doesnt have a similar setting to force unique skus at the variant level. I do see your point about forcing unique skus, however there are some cases where businesses would want to allow duplicate skus in the database. For example, if they clone a product and deactivate the old product to test drive a new pricing structure or maybe they just have deactivated a product and want to keep it in the database and have created a new product wih the same information. Another example would be if you are running multiple buynow modules on different pages secured by different dnn roles for different customer types may drive the requirement to have duplicate skus in the database. If the cart enforced this rule if would be less flexible and our goals is to make the product as flexible as possible to support as many different business requirements as possible. The stored procedure above used in the product import program that searches on productid, variantgroupid and variant name is the best way that I can see to determine if an existing variant exists in the database before executing an insert or update. Let me know if you see a better way.


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartProduct Import - only initial setup or bulk price change, also?Product Import - only initial setup or bulk price change, also?