
Originally Posted by
Glamorousshoe
The question is: Is there a way where I can input the quanity of more than one product on the same page, or at least the quanity of each different attribute for each item (for example: Input the quanity for different attribute of the same shoe sizes 5-10)?
I don't use the module myself but I looked at the SQL for the table it creates:
Code:
CREATE TABLE products_with_attributes_stock (
stock_id INT NOT NULL AUTO_INCREMENT ,
products_id INT NOT NULL ,
stock_attributes VARCHAR( 255 ) NOT NULL ,
quantity FLOAT NOT NULL ,
PRIMARY KEY ( `stock_id` )
);
If you don't want to bother writing a real SQL query, just use phpMyAdmin to EXPORT the products_with_attributes_stock table from the database.
0. Open the database in phpMyAdmin and click on the EXPORT tab.
1. Select the products_with_attributes_stock table from the list.
2. Choose CSV as the File Type
3. Under CSV Options set "Fields Terminated by to ',' (comma)
4 Click "Save as File" and then "Go".
5. Save the file to your desktop and open it with Excel as CSV.
6. For each style of shoe you can look up the products id in Admin>Categories/Products, or using phpMyAdmin in the database, by model number in the products table or by name in the products_description table. If I were writng a full SQL query I would 'join' these tables and pull the model number and name from those tables into the CSV file.
7. When you have entered all the inventory numbers, save the edited file AS CSV from Excel.
8. Use phpMyAdmin to IMPORT the table. Under CSV Options be sure to check "Replace table data with file".
Done, you have now added all the quantities to your stock file. I would suggest that you might want to do this when there are no customers on the site so that the inventory doesn't change while you are doing the update. As alway, make a backup of your database before you try this the first time.
Hope this helps.
Bookmarks