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 4 of 4

Thread: Quick WSI query

  1. #1
    deanfp is offline Senior Member
    Join Date
    May 2009
    Location
    Sweden
    Posts
    556

    Default Quick WSI query

    Does anyone know how to set the weight for ALL products in a db to 100g? We don't have anything in our weight item but would want to try and set the weight so we can begin charge shipping by weight.

    Thanks

    Dean

  2. #2
    deanfp is offline Senior Member
    Join Date
    May 2009
    Location
    Sweden
    Posts
    556

    Default

    No worries I ran a SQL script that worked

  3. #3
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    Product weights are stored in the ProductVariant table. Thanks for the update, we're glad you are all set.

  4. #4
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    For anyone else that's curious, in WSI you would just do something like this:
    Code:
    <AspDotNetStorefrontImport>
      <Query>
        <SQL>
          <![CDATA[ 
            update dbo.ProductVariant set Weight='100'
          ]]>
        </SQL>
      </Query>
    </AspDotNetStorefrontImport>
    It's easier than trying to do this for each product
    Code:
    <AspDotNetStorefrontImport>
      <Product Action="Update" ID="#">
        <Variants>
          <Variant Action="Update" ID="#">
            <Weight>100</Weight>
          </Variant>
        </Variants>
      </Product>
    </AspDotNetStorefrontImport>
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>