
Originally Posted by
infocom
For info, this add-on lists ALL products in one big list, so if you have thousands of products it takes ages to load and unmanageable.
So if interested I have added a very simple category listing function to show the category list first, then you click on a category to show products only in that category.
Attachment 7044
The out of memory problem still exists... I had to change our options and attributes to suit this add on to overcome this issue. Its when you have hundreds of attributes. It would be good to instead of adding unused attributes into the stock control, to ignore them for stock control instead. Then we probaby wont have this error.
Thanks
Hey infocom,
I had a look at your modified page and it works really well! nice touch with the images!,
However, for now I have reverted back to my file because I have a custom field in the database that I programmed to auto populate when adding quantities. Obviously I am now keen to try and transfer my code accross to your solution, however when I was looking at your code, straight away I was lost as there was two lots of query = 'insert into which on the original there was only one of these, and this is part of the code I modified... Wasnt sure what to do with it, or maybe to just repeat the same code twice? eitherway, I thought I had better try and get an understanding from you as to what the extra bit is doing??
my code modified the following:
PHP Code:
$query = 'insert into `'.TABLE_PRODUCTS_WITH_ATTRIBUTES_STOCK.'` (`products_id`,`stock_attributes`,`quantity`) values ('.$products_id.',"'.$strAttributes.'",'.$quantity.') ON DUPLICATE KEY UPDATE `stock_attributes` = "'.$strAttributes.'", `quantity` = '.$quantity;
$db->Execute($query);
}
to
PHP Code:
$query = 'insert into `'.TABLE_PRODUCTS_WITH_ATTRIBUTES_STOCK.'` (`products_id`,`stock_attributes`,`quantity`,`smiffy_id`) values ('.$products_id.',"'.$attributes.'",'.$quantity.',"'.$smiffy_id.'")';
}
hope I am making sense... look forward to hearing from you.
PS - the search at the top didnt seem to work for me?
Bookmarks