Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.



Recommended Posts

I installed Quick-Inventory in oscommerce-2.2rc2a. Works great except when I update after changing quanity it doesn't save the changes.

I get the following error message: Warning: Variable passed to each() is not an array or object in /home1/ineedtru/public_html/doitwithwater/catalog/admin/quick_inventory.php on line 42

Link to comment
Share on other sites

I tried google on your problem


site:www.oscommerce.com/forums Variable passed to each() is not an array or object in quick_inventory.php on line 42


only your post showed up, so I tried


site:www.oscommerce.com/forums quick_inventory.php on line 42


Still no hits, so I tried


site:www.oscommerce.com/forums Variable passed to each() is not an array or object


and found this


I FIGURED IT OUT! I made the changes suggested. Then I decided to compare my files again to make sure I didn't miss any code and I DID. So I inserted the missing code and it works fine!


So I ask myself, was every update done or was a little mistake made during the install and I guess the answer is yes so I'd go back and check the installation is totally correct.





Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile


Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.


For links mentioned in old answers that are no longer here follow this link Useful Threads.


If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

  • 1 year later...

I am trying to install Quick Inventory on OSC 2.3.1 I am not seeing anything new in my admin panel.


Here are the instructions that come with the download.






1. Add these 2 new files into your admin directory:





2. In the admin/includes/filenames.php file add:


define('FILENAME_QUICK_INVENTORY', 'quick_inventory.php');


3. In admin\includes\boxes\catalog.php add:


'<a href="' . tep_href_link(FILENAME_QUICK_INVENTORY, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_QUICK_INVENTORY . '</a><br>' .


4. In admin/includes/languages/english.php add:


define('BOX_CATALOG_QUICK_INVENTORY', 'Quick-Inventory');




Step 1 is either not properly written or the directory structure of the upload files is incorrect. Directions say to add new file as admin/includes/languages/quick_inventory.php

But the upload file is located admin/includes/languages/english/quick_inventory.php


I tried both locations with no luck.


Think though that it's step 3 I am messing up. Does anyone know the proper place within catalogue.php to insert the code in step 3?


I have tried near the top and near the bottom.

Link to comment
Share on other sites

Ok well I changed step 3 and added this instead





'link' => tep_href_link(FILENAME_QUICK_INVENTORY)



Quick Inventory is now showing up in my admin panel and seems to be working, at least partially. I don't yet understand what the quick model column is about or what the quick show does but I was able to update product quantities, weight and price in a table and that's what I was after in the first place.


When using Quick Inventory though my admin panel looks strange. All subcategories of the main options (configuration, catalog, modules, etc.) are expanded but they return to normal after I select a different area. Could be I still have something in the wrong place or maybe this contribution is just a little buggy with OSC 2.3.1.


I am pleased. I am just setting up shop so editing my products often and this will save some time.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...