Opencart Setup for new users

Opencart Setup for new users

Requirements:

These are the minimum requirements needed so that OpenCart can be installed and work properly. 

  • Web Server (Apache suggested)
  • PHP (at least 5.4)
  • Curl enabled
  • Database (MySQLi suggested)


Before setup, the admin store panel downloads the dump db_dump.sql.zip from the code & extension folder and imports the database in your MySQL server.

Steps to Setup your Admin Store:


1. Extract our opencart_complete.zip file from the code & extension folder and upload all the files in the root directory of your server project path.

2. Once file uploaded open the config.php file and do the below changes 


<?php
// HTTP
define('HTTP_SERVER', 'http://test.co.in/'); //change your domain name

// HTTPS
define('HTTPS_SERVER', 'http://test.co.in'); //change your domain name

// DIR
define('DIR_APPLICATION', '{project_root_path}/catalog/');
define('DIR_SYSTEM', '{project_root_path}/system/');
define('DIR_IMAGE', '{project_root_path}/image/');
define('DIR_STORAGE', DIR_SYSTEM . 'storage/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', ''); // enter your database host
define('DB_USERNAME', ''); // enter your database username
define('DB_PASSWORD', ''); // enter your database password
define('DB_DATABASE', ''); // enter your database name
define('DB_PORT', '3306'); // enter your database port
define('DB_PREFIX', 'oc_');


3. Next, Open the file /admin/config.php and do the below changes


<?php
// HTTP
define('HTTP_SERVER', 'http://{domain_name}/admin/');
define('HTTP_CATALOG', 'http://{domain_name}/');

// HTTPS
define('HTTPS_SERVER', 'http://{domain_name}/admin/');
define('HTTPS_CATALOG', 'http://{domain_name}/');

// DIR
define('DIR_APPLICATION', '{project_path}/admin/');
define('DIR_SYSTEM', '{project_path}/system/');
define('DIR_IMAGE', '{project_path}/image/');
define('DIR_STORAGE', DIR_SYSTEM . 'storage/');
define('DIR_CATALOG', '{project_path}/catalog/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', ''); // enter your database host
define('DB_USERNAME', ''); // enter your database username
define('DB_PASSWORD', ''); // enter your database password
define('DB_DATABASE', ''); // enter your database name
define('DB_PORT', '3306'); // enter your database port
define('DB_PREFIX', 'oc_');

// OpenCart API
define('OPENCART_SERVER', 'https://www.opencart.com/');


4. That’s all. Your Domain is setup with the Opencart admin panel. Open the project in  browser http://{domain_name}/adminIt will show a login screen.

    Username: admin

    Password: admin (you can change your password after login



5. For mobile API extension, the extension is already installed with the code so you no need to worry about extension installation. Just go to your admin menu Extensions->Extension 


a. Click on the “Choose the extension type” select Box

b. Choose the “Module” option

c. Find “Shopping Cart Rest API” click Edit Button. In that form, Click Generate Key Button

d. This will generate the key. place this key in Android Application path app>src>main>java>com.shopzen>common>appconstants.java value variable and change the domain with your domain)