Forums / Templates, Stylesheets, Page Layout / Inserting a product directly in to the database

Inserting a product directly in to the database

Locked

Started by ryudice on 27 Apr 2008, 9:46 PM · Views: 1,592

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
27 Apr 2008, 9:46 PM
#1
ryudice avatar

ryudice

New Zenner

Join Date:
Apr 2008
Posts:
14
Plugin Contributions:
0

Inserting a product directly in to the database

Hi,
I'm trying to insert a product using a direct query with a program that will connect remotely to my database, I know the table where I have to insert the row to add the product but how do I insert the description? How can I get the product id of the product I just inserted so that I can insert the description after? Thanks for your help.

27 Apr 2008, 9:53 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

Re: Inserting a product directly in to the database

Unless you are willing to figure out ALL the 10 - 14 table entries that are required with a new product, you are better off using the admin.

Many before you have tried with little success.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

28 Apr 2008, 1:45 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Inserting a product directly in to the database

Or get - learn and use easy populate module available in the downloads section

Zen-Venom Get Bitten

4 May 2008, 9:12 PM
#4
ryudice avatar

ryudice

New Zenner

Join Date:
Apr 2008
Posts:
14
Plugin Contributions:
0

Re: Inserting a product directly in to the database

I was able to make function correctly. The three tables you need to modify are products, products_description and products_to_categories, assuming that you already have the categories created.

4 May 2008, 9:15 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Inserting a product directly in to the database

I was able to make function correctly. The three tables you need to modify are products, products_description and products_to_categories, assuming that you already have the categories created.
There are additional tables and indexed relationships and especially if the product has attributes

Zen-Venom Get Bitten