Skip to content

Issue adding Templates to checkout #700

@Aesop7

Description

@Aesop7

I'm currently trying to add a template to the checkout page, using the following code:

ReactionCore.registerPackage({
  name: 'custompackage',
  autoEnable: true,
  settings: {
  },
  registry: [{
    route: "dashboard/settings/shop",
    provides: 'custom-dashboard',
    label: 'Custom Package',
    description: 'Custom package that does All of the Things',
    icon: 'fa fa-th',
    cycle: 1,
    container: "dashboard",
    permissions: [{
      label: "Dashboard",
      permission: "dashboard"
    }]
  }, {
    route: "dashboard",
    provides: 'shortcut',
    label: 'Dashboard',
    icon: 'fa fa-th',
    cycle: 1
  }],
  layout: [{
    template: "myCustomTemplate",
    label: "Custom Info",
    workflow: 'coreCartWorkflow',
    container: 'checkout-steps-main',
    audience: ["guest", "anonymous"],
    priority: 3,
    position: "3"
  }]
});

This is based on what I read here: https://github.com/reactioncommerce/reaction/blob/development/docs/developer/workflow.md

After running the registry code above, the document gets added to the Packages collection, but when looking at the checkout page, rather than being in position #3 (as specified toward the end in "layout") it's appended to the end.

Please note, I am still relatively new to development, Javascript, Meteor and Reaction, so this could very well be a user error!

Any help would really be appreciated, thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions