Hi,
Here is a little info on what I have been doing..
I have recently been working on a stock management program to simply read my suppliers XML feed to update stock levels, remove discontinued products and add new products.
I have the program updating the stock nicely now, but have ran into a bit of an issue which is purely down to my inexperience of the structure of the sellerdeck database tables and how they work.
I have got the program to find a new product and its main details and insert them into the Product Table, name, price, image, description etc.
Then I have a lot of user defined properties that are used with the product, eg Size, Colour, etc.
I worked out which ID represents each property and thought when I inserted them into the database, it would work with that product..
It does populate the database with the correct data, but when I open sellerdeck, and look at the product, nothing appears in the size, colour fields.
So, I had a little mess about, and tried to manually enter the user defined properties as I usually would, I entered colour, pressed apply, and checked back in the database. Suddenly, about 20 different user properties had generated in the database, along with the ones I have inserted with the program.
So my questions are, at the moment, I only update two tables, Product, and user defined properties, Is there any other tables that I am missing out that need data populating which is vital ?
Is there something in the database that initiates all the user defined properties to be populated with blank values? -- this way I could just update them rather than insert.
Hopefully this makes some sense, and I would highly appreciate it if someone could shed some light on this!
Here is a little info on what I have been doing..
I have recently been working on a stock management program to simply read my suppliers XML feed to update stock levels, remove discontinued products and add new products.
I have the program updating the stock nicely now, but have ran into a bit of an issue which is purely down to my inexperience of the structure of the sellerdeck database tables and how they work.
I have got the program to find a new product and its main details and insert them into the Product Table, name, price, image, description etc.
Then I have a lot of user defined properties that are used with the product, eg Size, Colour, etc.
I worked out which ID represents each property and thought when I inserted them into the database, it would work with that product..
It does populate the database with the correct data, but when I open sellerdeck, and look at the product, nothing appears in the size, colour fields.
So, I had a little mess about, and tried to manually enter the user defined properties as I usually would, I entered colour, pressed apply, and checked back in the database. Suddenly, about 20 different user properties had generated in the database, along with the ones I have inserted with the program.
So my questions are, at the moment, I only update two tables, Product, and user defined properties, Is there any other tables that I am missing out that need data populating which is vital ?
Is there something in the database that initiates all the user defined properties to be populated with blank values? -- this way I could just update them rather than insert.
Hopefully this makes some sense, and I would highly appreciate it if someone could shed some light on this!
Comment