Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2007
    Posts
    4
    Plugin Contributions
    0

    image problem Adding multiple products to the database with a mySQL query

    I've searched the forums and elsewhere for an answer on this topic, but I could not come up with one.

    Can you add multiple products to the database using a mySQL query or queries? I wrote one with no errors that only updated one table, products, but that product did not show up in the administration pages or on the web.

    I figure there's some other attribute, process or method I'm missing. But is there a way to emulate the Add Product function in admin with mySQL queries to aid automation?

    I would appreciate comment on this issue very much, Zen community.

    Thank you!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Adding multiple products to the database with a mySQL query

    There are several tables that require an insert to key a product to display correctly...

    Look around for a mod named easy populate that does just what you want.

    Check here: http://www.modhole.com/modhole/
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Adding multiple products to the database with a mySQL query

    Thank you, Kobra. I am so impressed with the way the Zen Cart community operates, and how quickly answers come. And while this was my first post to the forum, Kobra's other posts have moved my knowledge along as well. I can say the same about many other "Totally Zenned" folks.

    I appreciate that there is no down-talking to newbies going on, that answers are so readily available to anyone who can work a search engine, and the attention to detail of a free program like Zen Cart.

    I think I'll go donate a cup of coffee to the team.

    Thanks again, Kobra!


  4. #4
    Join Date
    Jul 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Adding multiple products to the database with a mySQL query

    One SNAFU on all of this -- my hosting company, Brinkster, (shrug), has "strict" SQL mode enabled on its installation of MySQL. Is there a workaround for this? Are there alternatives to Easy Populate? Or am I going to have to reverse engineer the whole thing to get around Brinkster's restrictions? I could get my account cancelled and get a pro-rated discount, I suppose. They don't offer cURL support, either. That makes Google Checkout, Linkpoint API, etc. out of the question.



    hiltunna

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Adding multiple products to the database with a mySQL query

    There's also this method using Excel to generate SQL scripts suitable for importing/editing multiple items...
    http://www.zen-cart.com/forum/showthread.php?t=14096
    .

    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.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Adding multiple products to the database with a mySQL query

    Quote Originally Posted by hiltunna View Post
    One SNAFU on all of this -- my hosting company, Brinkster, (shrug), has "strict" SQL mode enabled on its installation of MySQL. Is there a workaround for this? Are there alternatives to Easy Populate? Or am I going to have to reverse engineer the whole thing to get around Brinkster's restrictions? I could get my account cancelled and get a pro-rated discount, I suppose. They don't offer cURL support, either. That makes Google Checkout, Linkpoint API, etc. out of the question.
    I had worked on a site for a client without knowing that they were intending to host on brinkster. What a sad surprise.
    It turns out their services are way to restrictive for the more advanced and inclusive feature-set that Zen Cart offers.
    We wound up hosting on one of the Certified Hosts found by clicking the "hosting" link at the top of this page.
    .

    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. v139h adding attributes to all products with sql query
    By delia in forum General Questions
    Replies: 8
    Last Post: 22 Apr 2014, 07:40 PM
  2. mySQL Query of all Products
    By Keitex in forum General Questions
    Replies: 1
    Last Post: 5 Oct 2011, 02:25 AM
  3. Adding Multiple products to the cart with the same Product ID
    By jamieaus in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 10 Mar 2011, 07:44 AM
  4. Adding more mysql users to avoid query limit by host?
    By surplusoutlet in forum General Questions
    Replies: 4
    Last Post: 6 Dec 2009, 02:37 PM
  5. Multiple sites sharing the same MySQL database but different information
    By Cucaracha in forum Installing on a Windows Server
    Replies: 5
    Last Post: 1 Feb 2007, 01:38 PM

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