Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Feb 2009
    Location
    Salerno, Italy
    Posts
    10
    Plugin Contributions
    0

    help question How to insert products by SQL query?

    Hello,
    I use Zen Cart version 1.3.5.
    I am trying to add a new product (in the category TEST and without attributes) directly by phpmyadmin (then i will write the SQL query, for now I would only to know how it works).

    I have inserted the datas in the following tables:
    products
    products_description
    product_to_categories

    When in the admin section I click on category list, in correspondence of the category TEST, there is written "1 of 1 active".
    When I click on the category TEST I do not found any products.

    Please can anyone help me ? are there other tables to modify ?

    This is my first post, I have read the forum and I hope that I haven't broken any forum law.

    Thank you anyway,
    Carmine

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: How to insert products by SQL query?

    Why are you giving yourself such an awkward challenge?

    Easy Populate will do mass inserts and updates of product data for you, from a tab-delimited TXT (spreadsheet) file.

    See the WIKI article here:
    http://www.zen-cart.com/wiki/index.php/Easy_Populate

  3. #3
    Join Date
    Feb 2009
    Location
    Salerno, Italy
    Posts
    10
    Plugin Contributions
    0

    help question Re: How to insert products by SQL query?

    Dear fairestcape,
    thank you for your reply.
    I know Easy Populate but I need to insert products directly by phpmyadmin to understand how it works.
    I think it is not so difficult ...

    There is something that I neglect, there is some table that I don't update.
    I hope there is someone that know which tables I must update.

    Thank you
    SommoPoeta

  4. #4
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Re: How to insert products by SQL query?

    zildjian,

    To assist in your goal of learning what it takes to add a new product via SQL I recommend:

    1) download a copy of the complete zen cart database from your store
    2) use zen cart to add a new product
    3) download a second copy of the complete zen cart database from your store
    4) compare the two databases.
    5) this will show what changed, or what you could have inserted via sql

    Hope this gives you what you need.

  5. #5
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: How to insert products by SQL query?

    Good technique, Stagebrace.

  6. #6
    Join Date
    Feb 2009
    Location
    Salerno, Italy
    Posts
    10
    Plugin Contributions
    0

    Default Re: How to insert products by SQL query?

    Dear stagebrace,
    thank you for your kindly reply.
    This technic is as simple as efficient.
    I will try...

    Thank you everybody,
    Carmine
    SommoPoeta

 

 

Similar Threads

  1. v151 SQL query setup. How do I TEST a query 'off-line'?
    By lewisasding in forum General Questions
    Replies: 3
    Last Post: 8 Mar 2013, 12:24 AM
  2. sql insert query help
    By chuckb in forum General Questions
    Replies: 1
    Last Post: 27 Jul 2011, 09:59 PM
  3. How insert info SQL? Script basics?
    By Feznizzle in forum General Questions
    Replies: 3
    Last Post: 20 Jul 2010, 09:00 PM
  4. how to do a SQL query?
    By therealex in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 12 Dec 2009, 11:52 PM
  5. Replies: 3
    Last Post: 11 Sep 2007, 05:36 AM

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