Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2009
    Location
    Coffs Harbour, Australia
    Posts
    74
    Plugin Contributions
    0

    Default Copy products from site to site

    Hi all,

    I've got a customer that has asked for another site to be built. Their first site was very similar to the new site so I thought it would be easy to just export the product tables from the older site and import them into the new site.

    This is where the problem started. The tables imported fine, but there are no products showing in the admin. The Categories showed up fine but none contain any products. I also noticed that when I went into 'admin'catalogue/attributes controller' at the top of the screen there was a yellow bar telling me that there were no option names either.

    The tables I copied were:
    zen_categories
    zen_categories_description
    zen_manufacturers
    zen_manufacturers_description
    zen_products
    zen_products_attributes
    zen_products_attributes_download
    zen_products_description

    Both Zen Cart versions were the same version.

    Any idea's?

  2. #2
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    458
    Plugin Contributions
    1

    Default Re: Copy products from site to site

    Quote Originally Posted by mpforum View Post
    Hi all,

    I've got a customer that has asked for another site to be built. Their first site was very similar to the new site so I thought it would be easy to just export the product tables from the older site and import them into the new site.

    This is where the problem started. The tables imported fine, but there are no products showing in the admin. The Categories showed up fine but none contain any products. I also noticed that when I went into 'admin'catalogue/attributes controller' at the top of the screen there was a yellow bar telling me that there were no option names either.

    The tables I copied were:
    zen_categories
    zen_categories_description
    zen_manufacturers
    zen_manufacturers_description
    zen_products
    zen_products_attributes
    zen_products_attributes_download
    zen_products_description

    Both Zen Cart versions were the same version.

    Any idea's?

    Hi mpforum,

    You also need to copy (zen_products_to_categories)

    Let me know how you go!

    Cheers,
    rlexyd
    *Zen Cart eCommerce Solution - Putting the Dream of Owning an Online Business within reach of anyone!

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Copy products from site to site

    If you are using Attributes you will also need the tables:
    products_options
    products_options_values
    products_options_values_to_products_options

    Note: in your case add the zen_ prefix ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    458
    Plugin Contributions
    1

    Default Re: Copy products from site to site

    Hi Ajeh,

    I recently copied my products from one site to another:

    I didn't care about moving my attributes, I just created them from scratch in the new website:

    I only copied over these tables and the site seems to be working fine:

    zen_categories
    zen_categories_description

    zen_products
    zen_products_description
    zen_products_to_categories

    That is all I need to copy to the new site if I just want the products to be moved over right, not the attributes nor the manufacturers??

    Also,
    When I was adding the zen_products_description to my PHPMyAdmin database, I kept getting an error and it seem to only add 265 products, other products did not add!

    This must be a limitation with sql entries or something right??
    I ended up adding them in smaller blocks in the Admin Instal SQL section and they worked fine!

    Awaiting your further response.

    Best Regards,
    *Zen Cart eCommerce Solution - Putting the Dream of Owning an Online Business within reach of anyone!

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Copy products from site to site

    The Install SQL Patches was not designed to be a substitute for phpMyAdmin so there will be limitations to what you can do in there ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    458
    Plugin Contributions
    1

    Default Re: Copy products from site to site

    I know the admin/install sql has limitation :) But the problem is the limitations were from the PHPMyAdmin databse section as I tried installing the products from there but it seems to be limited to 265 products or something?

    Also,
    zen_categories
    zen_categories_description
    zen_products
    zen_products_description
    zen_products_to_categories

    Was that all I needed to copy to the new site if I just want the products to be moved over right, not the attributes nor the manufacturers??
    *Zen Cart eCommerce Solution - Putting the Dream of Owning an Online Business within reach of anyone!

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

    Default Re: Copy products from site to site

    Quote Originally Posted by rlexyd View Post
    I know the admin/install sql has limitation :) But the problem is the limitations were from the PHPMyAdmin databse section as I tried installing the products from there but it seems to be limited to 265 products or something?
    That's not a normal limit to phpMyAdmin, but maybe yours is incapable of more.
    Quote Originally Posted by rlexyd View Post
    Also,
    zen_categories
    zen_categories_description
    zen_products
    zen_products_description
    zen_products_to_categories

    Was that all I needed to copy to the new site if I just want the products to be moved over right, not the attributes nor the manufacturers??
    No. The complete list is here: http://www.zen-cart.com/wiki/index.p...a#Product_Info
    For example, you must move Manufacturers too, because every product record has a manufacturer number tied to it. If you don't move the manufacturers too, then later when you *do* start adding manufacturers, all your products will be linked randomly to the new manufacturers, causing confusion. Similarly with all the other related tables.
    Similar issues arise with other "selective" extraction of data.
    That's why we always advise moving COMPLETE databases, not just a table here and a table there.
    IT IS STRONGLY DISCOURAGED TO BE SELECTIVELY MOVING PIECES OF DATA WITHOUT INTIMATE KNOWLEDGE OF DATABASE OPERATIONS AND ZC STRUCTURE.
    .

    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.

 

 

Similar Threads

  1. Replies: 3
    Last Post: 24 Feb 2013, 11:54 AM
  2. Copy Customer from one Site to Another
    By Best Price Accessori in forum Managing Customers and Orders
    Replies: 9
    Last Post: 29 Jun 2010, 07:28 AM
  3. Local copy, trouble copying design from live site
    By bakerman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Jan 2009, 09:16 AM
  4. Copy Products to New Zen Cart Site?
    By sara*spixels in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 6 Dec 2008, 08:13 AM
  5. Can I Copy Products & Attributes from another site in phpmyadmin?
    By milobloom in forum Upgrading from 1.3.x to 1.3.9
    Replies: 0
    Last Post: 13 May 2007, 06:00 PM

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