Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2006
    Posts
    131
    Plugin Contributions
    0

    Default SQL for moving products from 1 store to another?

    I need to move products that i've entered from one store to another ( DB1 to DB2)
    which tables would i need to Export / Import

    or i can remove all products and just insert all products from DB1 into DB2
    my products have attributes too...
    (the categories/ attributes etc. are the same in DB 1 and 2)


    DB1 is ZC1.3.6
    DB2 is ZC1.3.7

  2. #2
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: SQL for moving products from 1 store to another?

    Upgrade DB1 to 1.3.7 (the install script allows you to run just the DB updates), then pull over all the tables with a prefix of "product_" or "products_".

    This assumes you will overwrite the same tables in DB2. This also will only pull in the products, not any of the orders for said products.
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

  3. #3
    Join Date
    Mar 2006
    Posts
    131
    Plugin Contributions
    0

    Default Re: SQL for moving products from 1 store to another?

    Thanks!


    product_ to products_ should include everything i need right ?
    makes sense, if i need the product info i should look into products
    just wanted to make sure.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: SQL for moving products from 1 store to another?

    That won't bring any attribute definition data over.

    Database schema reference:
    http://www.zen-cart.com/wiki/index.p...rdered_by_Data
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: SQL for moving products from 1 store to another?

    You're right, he is still missing some of the extras (I use "extras" loosely), but the core stuff for products, including attributes, are all indeed in the product* tables.
    • products_options
    • products_options_types
    • products_options_values
    • products_options_values_to_products_options
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

 

 

Similar Threads

  1. v151 Moving store from one server to another
    By Wasim71 in forum General Questions
    Replies: 5
    Last Post: 16 Jun 2015, 05:27 PM
  2. products from one store to another
    By lcarlo1507 in forum General Questions
    Replies: 4
    Last Post: 13 Jul 2011, 11:20 PM
  3. Moving store from one domain to another
    By mferrari in forum Basic Configuration
    Replies: 12
    Last Post: 15 Nov 2010, 07:21 PM
  4. importing products from another store
    By mediathing in forum General Questions
    Replies: 2
    Last Post: 20 Oct 2007, 09:52 AM
  5. Copying and importing products to another store - SQL?
    By kgmmusic in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 13 Aug 2007, 03:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR