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/invoices
    • yourdomain.tld/licenses
    • yourdomain.tld/support
  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 $site '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 your currency symbol in the 'currencySymbol' key (IE: "$"). Set your theme to either "dark" or "light" in the 'theme' key. Lastly, create a FontAwesome kit here and set the kit ID to the 'fontAwesomeKit' key.
    • 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. Secondly, add your Stripe Secret key (the 'secret' option) and set 'enabled' to 'true' or 'false' (true to enable the module, false to disable it). Lastly, set your Stripe currency code in the 'code' key.
    • Edit the $paypal to include your PayPal Public API key (the 'public' option). Secondly, 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). Lastly, set your PayPal currency code in the 'code' key.
    • 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').
    • Edit the $smtp to include your mail server information. 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. Lastly, set the 'password' key to have the password of your email.
    • Edit the $logModule to include the channel IDs for logging. Set the 'purchaseChannel' and 'ticketChannel' keys to include a channel ID.
  1. Visit yourdomain.tld/admin and login.
  2. You're finished!