Jump to content
Latest News: (loading..)
aespinal

Quick Inventory

Recommended Posts

I downloaded the contribution Quick Inventory by yansfung that consists in one file going to admin folder.

It works when I access it directly via url, but there is not link I could use inside the store admin.

Any help will be appreciated.
Thanks in advance.

Share this post


Link to post
Share on other sites

@@aespinal did you add this In admin\includes\boxes\catalog.php ??

 

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

Share this post


Link to post
Share on other sites

If have oscommerce 2.3 add this one :

array(

'code' => FILENAME_QUICK_INVENTORY,

'title' => BOX_CATALOG_QUICK_INVENTORY,

'link' => tep_href_link(FILENAME_QUICK_INVENTORY)

),

Share this post


Link to post
Share on other sites

I have 2.3
I added the second note you indicated.
Do I have to add also the first one?
Where do I see the link for Inventory?

Share this post


Link to post
Share on other sites

Two issues:
1. The link shows like the image attached.
2. When I click the link receives the message:
 

Not Found
The requested URL /admin/FILENAME_QUICK_INVENTORY was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
 
But the file quick_inventory.php is in the admin folder.

 

 

post-24540-0-52126500-1481315756_thumb.png

Share this post


Link to post
Share on other sites

@@aespinal

 

1. The link shows like the image attached.

 admin/includes/languages/english.php add:
 
 

  define('BOX_CATALOG_QUICK_INVENTORY', 'Quick-Inventory');
Edited by Omar_one

Share this post


Link to post
Share on other sites

@@aespinal  @@Omar_one

 

You also need this file: public_html/my_admin_name/includes/languages/english/quick_inventory.php

 

This goes in it:

<?php/*quick_inventory.phpMODIFIED from quick_inventory.php v1.0 by pyramids  Released under the GPL licence.*/define('QUICK_OR',             '( Or )' ) ;define('QUICK_HEAD1',          'Quick-Inventory');define('QUICK_HEAD2',          'Enter model # or partial model #');define('QUICK_MODEL',          'Model');define('QUICK_ID',             'ID');define('QUICK_NAME',           'Name');define('QUICK_PRICE',          'Price');define('QUICK_COST',           'Cost');define('QUICK_WEIGHT',         'Weight');define('QUICK_STOCK',          'In Stock');define('QUICK_STATUS',         'Status');define('QUICK_QTY',            'Quantity');define('QUICK_ACTIVE',         'Active');define('QUICK_INACTIVE',       'Not Active');define('HEADING_TITLE_SEARCH', 'Enter Model #: ');define('QUICK_MODEL',          'Choose Model Number');define('QUICK_SHOW',           'Show Images:');define('QUICK_BRAND',          'Brand');define('SEARCHBYMODEL',        'Search by Model') ;define('SHOWIMAGES',           'Images') ;define('SHOWPRICELESS',        'Show Products with this price or less:' ) ;define('SELECTMODEL',          'Select Model' ) ;define('SEARCHCATEGORY',       'Search By Category' ) ;define('SELECTCATEGORY',       'Select a Category:' ) ;define('SEARCHBRAND',          'Search By Brand' ) ;define('SELECTBRAND',          'Select Brand:' ) ;?>

Also, you have to make sure the spelling is correct for both quick_inventory.php file names or your system won't recognize it.

 

Take care

Bill

Share this post


Link to post
Share on other sites

1. I created the new file for the admin/includes/language/english folder
1. Previously I put the contribution into admin folder

Continue with the no found error.

Share this post


Link to post
Share on other sites
<?php

/*

  $Id$

 

  osCommerce, Open Source E-Commerce Solutions


 

  Copyright © 2010 osCommerce

 

  Released under the GNU General Public License

*/

 

  $cl_box_groups[] = array(

    'heading' => BOX_HEADING_CATALOG,

    'apps' => array(

      array(

        'code' => FILENAME_CATEGORIES,

        'title' => BOX_CATALOG_CATEGORIES_PRODUCTS,

        'link' => tep_href_link(FILENAME_CATEGORIES)

      ),

      array(

        'code' => FILENAME_PRODUCTS_ATTRIBUTES,

        'title' => BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES,

        'link' => tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES)

      ),

      array(

        'code' => FILENAME_MANUFACTURERS,

        'title' => BOX_CATALOG_MANUFACTURERS,

        'link' => tep_href_link(FILENAME_MANUFACTURERS)

      ),

      array(

        'code' => FILENAME_REVIEWS,

        'title' => BOX_CATALOG_REVIEWS,

        'link' => tep_href_link(FILENAME_REVIEWS)

      ),

      array(

        'code' => FILENAME_SPECIALS,

        'title' => BOX_CATALOG_SPECIALS,

        'link' => tep_href_link(FILENAME_SPECIALS)

      ),

 array(

        'code' => FILENAME_WHOLESALE,

        'title' => BOX_CATALOG_WHOLESALE,

        'link' => tep_href_link(FILENAME_WHOLESALE)

      ),

      array(

      'code' => FILENAME_QUICK_INVENTORY,

      'title' => BOX_CATALOG_QUICK_INVENTORY,

      'link' => tep_href_link(FILENAME_QUICK_INVENTORY)

      ),

      array(

        'code' => FILENAME_PRODUCTS_EXPECTED,

        'title' => BOX_CATALOG_PRODUCTS_EXPECTED,

        'link' => tep_href_link(FILENAME_PRODUCTS_EXPECTED)

      )

    )

  );

?>

Share this post


Link to post
Share on other sites

Thanks, Omar.
With the line in filenames, it works fine now.
Thanks also to William.
You are great helpers.

Share this post


Link to post
Share on other sites

@@aespinal

 

The file that you downloaded probably wasnt a full package. If it was the top one in the addons list, then it wasnt as it clearly states. Make sure in future that you download a full package then add the altered files after. It would have been better however if the addon package creator, did actually upload a full package, which would save any confusion.


REMEMBER BACKUP, BACKUP AND BACKUP

 

Find information about the bootstrap community version here

 

Make it idiot proof and someone will make a better idiot.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×