Skip to content

Latest commit

 

History

History
67 lines (38 loc) · 2.26 KB

README.md

File metadata and controls

67 lines (38 loc) · 2.26 KB

SiteGenesis-OCAPI

Demandware SiteGenesis using OCAPI and ExpressJS framework

This is a very basic implementation of SiteGenesis using OCAPI provided by Demandware. It contains many bugs and project is developed as proof-of-concept that complete checkout can be achieved by OCAPI.

HTML templates present /views/ folder are used just to render the data and templates are taken from various sites which provide free html/css templates.

App Hosted on Heroku : http://sitegenesis-ocapi.herokuapp.com (not maintained)

I use a free version of heroku so please expect some downtime :)

In order to change order status of newly placed order to New, Confirmed, Ready For Export, please see code present in dwre-hooks folder and see hooks implementation in OCAPI DWRE documentation.

Sample Config File

//ocapiconfig.js
var config = {};

config.httphost = "http://xxx.yyy.xxx.demandware.net";
config.httpshost = "https://xxx.yyy.xxx.demandware.net";
config.siteid = "SiteGenesis";
config.ocapiversion = "16_3";
config.clientid = "your_client_id";

config.paymentmethodid = "CREDIT_CARD";
config.defaultshippingmethodid = "001";

module.exports = config;

Category Landing Page

alt tag

PDP

alt tag

Cart

alt tag

Shipping

alt tag

Billing

alt tag

Payment

alt tag

Confirmation

alt tag

Order In BM

alt tag

BM Payment

alt tag