A PHP eCommerce project with Marketcloud as backend
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public/css
.bowerrc
.buildpacks
README.md
app.json
bootstrap_shop.php
bower.json
cart.php
checkout.php
checkout_form.php
composer.json
composer.lock
footer.php
header.php
index.php
navbar.php
order_confirmed.php
package.json
process_checkout.php
product.php
products.php

README.md

Marketcloud

PHP + Marketcloud eCommerce starter

PHP starter eCommerce project with Marketcloud as backend

Deploy

Demo

http://marketcloud-php.herokuapp.com

Features

  • Built on plain PHP, plus the Marketcloud PHP client
  • Composer depenencies
  • Boostrap3 based frontend plus some JQuery
  • Easily replace the small JQuery code with your favorite Javascript framework like React/Angular/Angular2

Requirements

You will need php and git

Installation

Clone the respository to your local machine

cd to/the/directory/
composer install

Every Marketcloud application has a pair of public and secret key that are used to make requests. To find your application's keys, go at https://www.marketcloud.it/applications click on the arrow at the right corner of your application's box and then click on properties . Here you can see your app's keys.

The bootstrap_shop.php script look for these keys in your environment, so you have to set the variables in your system:

export MARKETCLOUD_PUBLIC_KEY="your-public-key";
export MARKETCLOUD_SECRET_KEY="your-secret-key";

Now you can run the app with

php -S localhost:8000

or using your favorite web server.

Checkout configuration

This app uses Braintree to handle payments, in order to accept payments using this app, remember to setup the Braintree integration in your Marketcloud Dashboard. More information here Braintree integration for Marketcloud