Overview Store Template v2 Bot Store Template v2 Application Template PayPal Template Documentation Client Area Store Template

Store Template v2

How to Install

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.
  4. Visit here and complete the following steps:
    • Create a new application
    • Visit the OAuth2 tab on the right hand side
    • Add the following redirect. Make yourdomain.tld with the link to your domain
    • yourdomain.tld/account
    • yourdomain.tld/admin
    • yourdomain.tld/cart
    • yourdomain.tld/reviews/add
    • yourdomain.tld/invoices
    • yourdomain.tld/licenses
  1. 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 $folderName to be the location where your download files would be located (from the cart 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.
    • Edit the $clientID to include the Discord ID from the application created above.
    • Edit the $clientSecret to include the Discord secret from the application created above.
    • Edit the $guild to be the Guild ID of your Discord (this is optional and requires the $botToken variable).
    • Edit the $botToken to be a bot token of a bot in your guild (this is optional and requires the $guild variable).
    • Edit the $admins to include a list of Discord IDs who should be able to access the admin panel.
    • Edit the $stripe to include your Stripe Public key (the 'public' option). Please visit here to see how to create one. Additionally, add your Stripe Secret key (the 'secret' option) and set 'enabled' to 'true' or 'false' (true to enable the module, false to disable it).
    • Edit the $paypal to include your PayPal Public API key (the 'public' option). Additionally, add your PayPal Secret API key (the 'secret' option) and set 'enabled' to 'true' or 'false' (true to enable the module, false to disable it).
    • Edit the $licenseModule to include if the module is enabled (the 'enabled' option with the values of either 'true' or 'false') and to include if the module should look for IP locks (the 'ipChecking' option with the values of either 'true' or 'false').
  1. Visit yourdomain.tld/admin and login.
  2. You're finished!