Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Clear inventory and categories to test imports?

  1. #1
    feiwebmaster is offline Junior Member
    Join Date
    Apr 2010
    Posts
    5

    Default Clear inventory and categories to test imports?

    We are testing ML V9 XML import processing. Does anyone know if there a method / stored procedure to clear all inventory, categories and entities to test an import process? That is without loosing all store settings by dropping the database and starting all over?

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    There's no sproc to do that, but a few quick SQL queries will do it:

    This will clear ALL product data:
    Code:
    DELETE FROM Product
    DELETE FROM ProductAffiliate
    DELETE FROM ProductCategory
    DELETE FROM ProductCustomerLevel
    DELETE FROM ProductDistributor
    DELETE FROM ProductGenre
    DELETE FROM ProductLocaleSetting
    DELETE FROM ProductManufacturer
    DELETE FROM ProductSection
    DELETE FROM ProductVariant
    DELETE FROM ProductVector
    DELETE FROM ShippingByProduct
    This will clear ALL entities:
    Code:
    DELETE FROM Category
    DELETE FROM Distributor
    DELETE FROM Genre
    DELETE FROM Manufacturer
    DELETE FROM Section
    DELETE FROM Vector
    DELETE FROM Library
    Make sure you have a backup first just in case.