We use cookies to improve our services and provide a better experience. By continuing to use this site, you agree with our Cookies Policy.

Tutorials

More than 400 step-by-step articles to guide you through online project development.
HomeTutorialsCMS TutorialsosCommerceosCommerce Plugins

How to install supplier admin area V0.2

Cloud Servers 727 x 90

Supplier admin area is an osCommerce module which allows to create suppliers and define to which categories they are allowed to add their products. Basically, it allows for different suppliers to provide their products in online commerce website. Then those products can be displayed in the store front end for the customers.

  • To start installing this module, firstly we need to download it from osCommerce modules website. Once downloaded, explore the directories inside the archive file and find file named “Install.txt”. In this file we will find the description of this module and instruction how it can be installed. Just scroll to the part where installation instruction starts and follow the steps in order to complete the install process. Basically, we will need to edit various files by replacing code entries. For example, we will need to open file “admin/categories.php” and find the following line.
1
2
3
4
5
6
7
8
$sql_data_array = array('products_quantity' => tep_db_prepare_input($HTTP_POST_VARS['products_quantity']),
'products_model' => tep_db_prepare_input($HTTP_POST_VARS['products_model']),
'products_price' => tep_db_prepare_input($HTTP_POST_VARS['products_price']),
'products_date_available' => $products_date_available,
'products_weight' => tep_db_prepare_input($HTTP_POST_VARS['products_weight']),
'products_status' => tep_db_prepare_input($HTTP_POST_VARS['products_status']),
'products_tax_class_id' => tep_db_prepare_input($HTTP_POST_VARS['products_tax_class_id']),
'manufacturers_id' => tep_db_prepare_input($HTTP_POST_VARS['manufacturers_id']));
  • Then replace it with the following line.
1
2
3
4
5
6
7
8
9
$sql_data_array = array('products_quantity' => tep_db_prepare_input($HTTP_POST_VARS['products_quantity']),
'products_model' => tep_db_prepare_input($HTTP_POST_VARS['products_model']),
'products_price' => tep_db_prepare_input($HTTP_POST_VARS['products_price']),
'products_date_available' => $products_date_available,
'products_weight' => tep_db_prepare_input($HTTP_POST_VARS['products_weight']),
'products_status' => tep_db_prepare_input($HTTP_POST_VARS['products_status']),
'products_tax_class_id' => tep_db_prepare_input($HTTP_POST_VARS['products_tax_class_id']),
'manufacturers_id' => tep_db_prepare_input($HTTP_POST_VARS['manufacturers_id']),
'suppliers_id' => tep_db_prepare_input($HTTP_POST_VARS['products_suppliers_id']));
  • And so on. Full instruction what files should be edited and the lines we should replace can be found in the file “Install.txt”.
  • Second step is to edit file located at downloaded archive “catalog/supplier/includes/configure.php”. This file includes web server variables like website URL and the location of osCommerce installation, etc. There we will need to adjust values according to the current configuration. Also, we shouldn’t forget to set database name, username and the password.
  • After editing the mentioned file, we may proceed with copying entire “supplier” directory to the osCommerce “catalog” directory. We will also need to add additional tables to osCommerce database. This can be done by connecting to the database over phpMyAdmin and importing SQL file “supplier-admin-area-sql.sql” which is also included in module package.

That’s it. For now suppliers can access their members are by going to http://www.domain.com/catalog/supplier/supplier_area.php. We may add this link somewhere in the front end of the website for ease access. It’s also possible to add suppliers in the admin backend with their own login details.

Rate this Tutorial:
No Comments Leave a Comment
Leave a Comment

Cloud Servers 1 230×230

Other (192)

Popular Keywords

Web Banner 3 230×230