Extension Point

Extension points allow the insertion of custom content at specified locations. For example:

import { extend } from 'shoplazza-extension-ui';

extend({
  extensionPoint: 'Checkout::Navigate::RenderBefore',
  component: "<h1>Hello, Shoplazza!</h1>"
});

The code above adds a "Hello, Shoplazza!" title above the navigation bar.

If the component is complex, you can use a headless component library, less.JS, which is built into the extension and can be used out of the box.

Available extension points include:

Extension PointDescription
Checkout::RenderBeforeBefore page header
Checkout::RenderAfterAfter page footer
Checkout::Head::RenderAfterAfter page header
Checkout::FilledInformation::RenderAfterAfter filled information card
Checkout::SpecialInstruction::RenderAfterAfter special instructions
Checkout::Summary::RenderBeforeBefore summary information
Checkout::Navigate::RenderBeforeBefore navigation bar
Checkout::Navigate::RenderAfterAfter navigation bar
Checkout::ContactInformation::RenderBeforeBefore contact information
Checkout::ContactInformation::RenderAfterAfter contact information
Checkout::ShippingLinesTitle::RenderBeforeBefore shipping list title
Checkout::ShippingLinesTitle::RenderAfterAfter shipping list title
Checkout::ShippingList::RenderAfterAfter shipping list
Checkout::ProductList::RenderBeforeBefore product list module
Checkout::ProductList::RenderAfterAfter product list module
Checkout::Reductions::RenderBeforeBefore coupons/gift cards
Checkout::Reductions::RenderAfterAfter coupons/gift cards
Checkout::SectionPayment::RenderBeforeBefore payment section
Checkout::SectionPayment::RenderAfterAfter payment section
Checkout::ThankyouHeader::RenderBeforeBefore thank-you page header
Checkout::ThankyouContent::RenderBeforeBefore thank-you page content area