Shoptwo.shop is an online marketplace dedicated to digital products, aiming to support digital creators in monetizing their work. It provides a platform where creators can sell their digital creations to a wider audience or offer them for free, making it easier to share their talent, generate income, and reach potential customers worldwide.
Original site: https://shoptwo.shop/
The site is primarily built in French ๐ซ๐ท, but it can be easily translated thanks to the built-in translation plugin directly integrated into the site's interface ๐.
It is strictly forbidden to:
- Impersonate the owner, creator, or distributor of the site.
However, modifications are allowed and encouraged to improve the site's features. Each accepted and added feature will be credited to its author.
Set up OAuth2 to securely integrate the following services:
- Google ๐
- Meta ๐
- Twitch ๐ฎ
- Discord ๐ฌ
Modify the configuration file:
๐ /auth/auth-form-update.php
// OAuth2 Configuration for Discord
$client_id_discord = 'YOUR_CLIENT_ID';
$client_secret_discord = 'YOUR_CLIENT_SECRET';
$redirect_uri_discord = 'https://YOUR_URL/auth/auth-form-update.php?selected_provider=discord';
// OAuth2 Configuration for Google
$client_id_google = 'YOUR_CLIENT_ID';
$client_secret_google = 'YOUR_CLIENT_SECRET';
$redirect_uri_google = 'https://YOUR_URL/auth/auth-form-update.php?selected_provider=google';
// OAuth2 Configuration for Twitch
$client_id_twitch = 'YOUR_CLIENT_ID';
$client_secret_twitch = 'YOUR_CLIENT_SECRET';
$redirect_uri_twitch = 'https://YOUR_URL/auth/auth-form-update.php?selected_provider=twitch';
// OAuth2 Configuration for Meta
$client_id_meta = 'YOUR_CLIENT_ID';
$client_secret_meta = 'YOUR_CLIENT_SECRET';
$redirect_uri_meta = 'https://YOUR_URL/auth/auth-form-update.php?selected_provider=meta';โ๏ธ Configure the sessions by adding your URL:
Modify the configuration file:
๐ /includes/session_config
$cookieParams['domain'] = 'your_url'; // Assurez-vous que le domaine est correctSet up Stripe via a webhook for automated and secure payment management.
๐ Modify the file /dashboard/z-stripe.php
// Set Stripe secret API key
\Stripe\Stripe::setApiKey('YOUR_KEY_API');
// Stripe Webhook Secret Key
$endpoint_secret = 'YOUR_WEBHOOK_STRIPE'; // Replace with your Stripe webhook secret๐ Modify the file /dashboard/stripe-checkout.php
\Stripe\Stripe::setApiKey('YOUR_KEY_API');A blank database with all necessary tables is available in the root directory of the project.
๐ File: shoptwo.sql
To set up the database, simply import this SQL file into your MySQL server (or in phpmyadmin)
Modify the configuration file:
๐ /includes/database.php
define('DB_SERVER', 'YOUR_DB_SERVER');
define('DB_USER', 'YOUR_DB_USER');
define('DB_PASS', 'YOUR_DB_PASS');
define('DB_NAME', 'YOUR_DB_NAME');
$con = mysqli_connect(DB_SERVER, DB_USER, DB_PASS, DB_NAME);
if (!$con) {
trigger_error("Failed to connect to MySQL: " . mysqli_connect_error(), E_USER_ERROR);
}The site may currently have some security vulnerabilities. It is therefore highly recommended to:
- Review the entire source code to identify and fix potential vulnerabilities ๐.
- Enhance system robustness by applying best security practices ๐.
At this stage, there may be some pointing or implementation errors. However, these errors do not compromise the overall quality of the project. They are generally easy to fix and help establish a solid foundation for future developments:
- Ad management ๐
- Creation of creative advertisements ๐จ
Feel free to contribute or ask questions about the project via issues or by submitting pull requests! ๐
- Original Founder (ByAdrien)





