Overview & Architecture Installation Manager Implementation Steps Database Setup Production Environment Server Connections Cron Jobs Setup API Registration System Login Final Config & Activation Downloads

Getting Started with Shophook

Implementation Guide, System Requirements, and Configuration

System Interface Preview

Please upload images to your /assets/Slides/ folder.

Overview & Architecture

Shophook is a comprehensive and mobile-friendly e-commerce web application designed to deliver full client customization. Developed using PHP and JavaScript, Shophook offers a suite of customizable webpages that support every stage of the online shopping experience. These include dedicated category, catalog, registration, login, address entry, cart, and payment pages.

Automated notifications are generated to confirm cart status updates for both buyers and sellers, ensuring clear and reliable communication throughout the transaction process.

Shophook Architecture

CMS & CRM

At the heart of Shophook is an integrated Content Management System (CMS) paired with a Customer Relationship Management (CRM) tool. This robust system allows users to efficiently manage essential business data, including business details, departments, users, vendors, and registered clients.

  • Logistics: Supports integration with courier services via Shiplogic.
  • Payments: Payment gateway integration is straightforward, with PayFast set as the default option and flexibility to add others.

E-commerce Management Screens

  • Category Screen: Every item in the catalog must be assigned to a category, otherwise it will not be displayed.
  • Product Type: Used to define product specifications and warranty defaults. Primarily serves stock management.
  • Catalog Screen: The main interface for displaying products, pricing, images, descriptions, and controls.
  • Size Screen: An optional child of the catalog allowing for size-specific pricing.
  • Design Screen: Can be linked to catalog items or sizes. Takes precedence over both size and catalog data.

Shophook Installation Manager

To streamline your setup process, you can utilize the Shophook Installation & Update Manager. This utility automates the downloading, extraction, and updating of the core system files.

Pre-requisites Required:

The Manager handles file deployment, but you must still manually prepare your server environment before running it:
  • Database: You must create a MySQL Database and User manually.
  • Folders: If you wish to install Shophook in a sub-directory, you must create that folder manually.
  • File: Download the Installation Manager below, unzip it, and copy the file to your domain's root (or folder) where you will install Shophook.
Download Installation Manager

1
Implementation & Requirements

  • Domain: Get your own domain or we will provide one for a monthly fee.
  • MySQL: Your domain must have MySQL to load your database.
  • Storage: No less than ½ GB free space.
WARNING: The CRM contains an index.php file and will overwrite a file with the same name. Please backup your existing index.php file before installation, or install Shophook to a subdirectory.

Installation Process (Manual)

Download the files from Shophook, upload them to your domain, and unzip them into the root (usually public_html):

1. ServerFile.zip (Contains: Assets, Classes, DataLinks, eCommerce, MyInfo, Reports)
2. PHPMailer-master.zip (Unzip into a folder called PHPMailer)
3. CRM.zip (The main application)
Control Panel File Manager

Find your domain root (public_html) or create a subfolder. Upload and extract the files.

Upload Files To Public
Extract Files untick Index

2
Database Configuration

Step 1: Create Database

Go to "Databases" in your control panel and create a new MySQL database. Give it an appropriate name, create a username and password. Write these down.

Control Panel Database Create Database Name Create Database Password

Step 2: Update SQL File

Open the downloaded SQL file. Find the database name (e.g., mallwayc_H2O_Guru) and change it to your new database name.

SQL Code Update DB Name

Step 3: Import Tables

Open PHPMyAdmin, select your new database, go to the SQL tab, paste the content of your modified SQL file, and click Go.

Step 4: Configure UrlMainPath

In PHPMyAdmin, expand your database and find the table UrlMainPath. Edit the entry and enter your domain's main URL (without a "/" at the end).

PHP Admin Table Edit URL Main Path Setup

Step 5: Create User and Access Permissions

From the control panel, go back to the Database and click on the Manage Users button. Add your user to the database with ALL PRIVILEGES.

3
Production Environment Setup

Run the following URL in your browser (adjust for your domain):

CRM Database Setup URL
CRM Database Setup Page

Login using the default environment password. You need to configure the database connection.

Create Connection: H2OConn

  • Remove existing connections.
  • Create a new connection named H2OConn (This name is mandatory).
  • Enter your database credentials (Host, Username, Password, Database Name).
Production Environment 1 Production Environment 2

4
Connecting Server Files

We need to make one more connection for the e-commerce screens to work. In your File Manager, navigate to the DataLinks folder.

1. Edit connect.php

Select connect.php and edit it. Enter your database connection details.

connect.php code

2. Edit pdo_connect.php

Do the exact same for pdo_connect.php.

pdo_connect code

5
Cron Jobs Setup

Cron Jobs are auto-executed commands placed on a timer. This is vital for automating processes like order processing.

Step 1: Access Cron Jobs

Go to your control panel, scroll to Advanced Features, click Cron Jobs, set schedule to Every Minute.

Step 2: The Command

To get the correct path for your server, run https://yourdomain.com/MyInfo/path.php. (Delete this file afterwards).

Standard (No subdirectory):

/usr/bin/php /home/youruser/public_html/MyInfo/cron_process_orders.php >> /home/youruser/public_html/MyInfo/cron_log.txt 2>&1

External Option (cron-job.org)

If internal Cron fails, sign up at cron-job.org and point it to: https://yourdomain.com/MyInfo/cron_process_orders.php

6
API Registration & Keys

To utilize full shipping and logistics features, register with PIL Market to obtain API keys at pilmobi.com.

  • Register as an Agent and fill in your details.
  • Log into your new PIL Market account.
  • Record your PIL Market ID number.
  • Go to AGENCY MENU > Advanced Entries > API Entries.
  • Copy your API Key to a safe place.
PIL Market API Key

7
System Login & Access

Navigate to your login URL in your browser:

Standard Installation:
https://mydomain.com/MainLogin/MainLogin.php

Sub-folder Installation:
https://mydomain.com/AppCMS/AgencyLogin/AgencyLogin.php

Default Credentials

  • Email: myemail@mydomain.com
  • Password: shophook!@
Troubleshooting: If default credentials fail, open database table AgentDetails via PHPMyAdmin and update the fields AMEmail and AMPassword manually.

8
Final Configuration

Link your Shophook store to PIL Market using the ID and Key you saved earlier.

  • Log in to your Shophook Dashboard.
  • From the E-Commerce Menu, click on Agent Details.
  • Add your PIL Agent ID and the PIL API Key.
Account Activation: Once you have completed all previous steps, please send an email to support@pilmobi.com to activate your account with your PIL ID.

Resource Downloads

File Name Description Link
NEW INSTALLATIONS
Installation Manager Automated script for quick setup. Download
Shophook CMS Core Application Files. Download
Database SQL SQL file to set up structure. Download
Server Files Supporting server-side files. Download
UPDATES ONLY
CMS Update Core App Updates. Download
Server Files Update Supporting server file updates. Download
Database Update SQL file for database patches. Download
GUIDES
Implementation Guide PDF setup instructions. Download