Skip to content

Instantly share code, notes, and snippets.

@prakashcubet
Created June 22, 2017 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prakashcubet/e6272604f0579593e1d86c6eba874da8 to your computer and use it in GitHub Desktop.
Save prakashcubet/e6272604f0579593e1d86c6eba874da8 to your computer and use it in GitHub Desktop.
Registering the package in Reaction commerce
import { Reaction } from "/server/api";
Reaction.registerPackage({
label: "Bees Knees",
name: "beesknees",
icon: "fa fa-vine",
autoEnable: true,
registry: [
{
route: "/home",
name: "home",
template: "home",
workflow: "coreWorkflow"
}
],
layout: [{
layout: "CoreLayoutBeesknees",
workflow: "coreProductWorkflow",
collection: "Products",
theme: "default",
enabled: true,
structure: {
template: "productsLanding",
layoutHeader: "layoutHeader",
layoutFooter: "layoutFooter",
notFound: "productNotFound",
dashboardHeader: "",
dashboardControls: "dashboardControls",
dashboardHeaderControls: "",
adminControlsFooter: "adminControlsFooter"
}
}]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment