How to Install

How to install Store System

First-time Install

  1. Upload the contents of the downloaded folder into the root directory of your domain. This file will include an index.php, resources.php, and config.php file.
  2. Go to your webpanel (cPanel, CentOS Web Panel, or DirectAdmin) and create a new database. Make sure to keep track of the database name, database username, and user password.
  3. Enter into that database and insert the provided SQL file (called structure.sql).
  4. Visit here and complete the following steps:
  5. Go back to where you uploaded the files and edit the config.php file to include the following information
    • Edit the $db_user to include the name of your database user.
    • Edit the $db_pass to include the password of your database user.
    • Edit the $db_name to include the name of your database.
    • Edit the $site variable:
      • Set the 'folderName' key to be the location where your download files would be located (from the account page). For example, if your files were located at https://jakehamblin.com/123456 and https://jakehamblin.com is where your Store Template v2 install location is, you'd set it to ../123456.
      • Set the 'currencySymbol' key to your currency symbol (IE: "$").
      • Set the 'theme' key to either "dark" or "light".
      • Set the 'fontAwesomeKit' key to a FontAwesome Kit ID. You can create a FontAwesome kit here.
      • Set the 'admins' key to be an array of Discord IDs for users you want to be administrators.
    • Edit the $discord variable:
      • Set the 'client' key to include the Discord secret from the application created in step #4.
      • Set the 'secret' key to include the Discord secret from the application created in step #4.
      • Set the 'botToken' key to be a bot token of a bot in your guild (this is optional and requires the 'guild' key to have a value).
      • Set the 'guild' key to be the Guild ID of your Discord (this is optional and requires the 'botToken' key to have a value).
    • Edit the $stripe variable:
      • Set the 'enabled' key to true or false (true to enable the module, false to disable it).
      • Set the 'public' key to be your Stripe public key. Please visit here to create one.
      • Set the 'secret' key to be your Stripe secret key (created above).
      • Set the 'code' key to be your Stripe currency code.
    • Edit the $paypal variable:
      • Set the 'enabled' key to true or false (true to enable the module, false to disable it).
      • Set the 'public' key to be your PayPal public key. Please visit here to create a live application.
      • Set the 'secret' key to be your PayPal secret key (created above).
      • Set the 'code' key to be your PayPal currency code.
    • Edit the $licenseModule variable:
      • Set the 'enabled' key to true or false (true to enable the module, false to disable it).
      • Set the 'ipChecking' key to true or false to include if the module should lock licenses to IP addresses.
    • Edit the $smtp variable:
      • Set the 'host' key to be the hostname of your mail server.
      • Set the 'port' key to be the port to your mail server.
      • Set the 'username' key to be the email to use.
      • Set the 'password' key to have the password of your email.
    • Edit the $logModule variable:
      • Set the 'enabled' key to true or false (true to enable the module, false to disable it).
      • Set the 'purchaseChannel' key to be a Discord channel to log purchases to.
      • Set the 'ticketChannel' key to be a Discord channel to log tickets to.
  6. Visit yourdomain.tld/admin and login.
  7. You're finished!