Skip to content

Shoptwo.shop | Online marketplace for digital products ๐Ÿ’ก Helping creators sell or share worldwide ๐ŸŒ

Notifications You must be signed in to change notification settings

byadrien0/shoptwo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Welcome to the GITHUB of shoptwo.shop

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/


image


๐ŸŒ Language

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 ๐ŸŒ.


โš ๏ธ Important Notice

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.


๐Ÿ”ง Initial Setup

1๏ธโƒฃ OAuth2 Authentication ๐Ÿ”

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 correct

3๏ธโƒฃ Stripe Integration ๐Ÿ’ณ

Set 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');

๐Ÿ—„๏ธ Database Setup

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);
}

๐Ÿ›ก๏ธ Code Security and Robustness

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 ๐Ÿ”’.

โš ๏ธ Development Notes

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 ๐ŸŽจ

๐Ÿค Contribution

Feel free to contribute or ask questions about the project via issues or by submitting pull requests! ๐Ÿš€


๐Ÿ‘‹ Project Participants Credits

  • Original Founder (ByAdrien)

Project Images


image


image


image


image


image


About

Shoptwo.shop | Online marketplace for digital products ๐Ÿ’ก Helping creators sell or share worldwide ๐ŸŒ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published