Build a marketplace using Craft CMS
This guide will walk you through creating an example, coffee-themed marketplace that sells coffees from multiple roaster businesses.
It’s built using:
- Craft CMS
- Craft Commerce
- Stripe for Craft Commerce, and
- Marketplace
…using a fresh install of Craft.
End customers will be able to buy coffee from multiple rosters at once.
Roasters will receive their portions of split payments automatically, and your platform will keep a specified fee. They will also be able to create and edit products, get paid, and view and manage their financial details, without manual work from you.
At the end of the tutorial, you’ll have a better understanding of how you can use and customize Marketplace and Stripe for your own comprehensive marketplace.
Requirements
This guide assumes you and are also running DDEV for local development, just like in Craft’s quick start and more comprehensive getting started tutorial.
If you are not using DDEV, all the console commands in this tutorial are still relevant, but don’t need to be prefixed with ddev
.
With your fresh install of Craft ready, install the aforementioned plugins. You can do this via the Plugin Store within the Craft control panel, or using the command line.
Craft Commerce
Install Commerce:
- DDEV
- Shell
ddev composer require craftcms/commerce -w
ddev craft plugin/install commerce
composer require craftcms/commerce -w
php craft plugin/install commerce
Stripe for Craft Commerce
Install Stripe for Craft Commerce:
- DDEV
- Shell
ddev composer require craftcms/commerce-stripe -w
ddev craft plugin/install commerce-stripe
composer require craftcms/commerce-stripe -w
php craft plugin/install commerce-stripe
Marketplace
Install Marketplace:
- DDEV
- Shell
ddev composer require kennethormandy/craft-marketplace -w
ddev craft plugin/install marketplace
composer require kennethormandy/craft-marketplace -w
php craft plugin/install marketplace