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 Point | Description |
---|---|
Checkout::RenderBefore | Before page header |
Checkout::RenderAfter | After page footer |
Checkout::Head::RenderAfter | After page header |
Checkout::FilledInformation::RenderAfter | After filled information card |
Checkout::SpecialInstruction::RenderAfter | After special instructions |
Checkout::Summary::RenderBefore | Before summary information |
Checkout::Navigate::RenderBefore | Before navigation bar |
Checkout::Navigate::RenderAfter | After navigation bar |
Checkout::ContactInformation::RenderBefore | Before contact information |
Checkout::ContactInformation::RenderAfter | After contact information |
Checkout::ShippingLinesTitle::RenderBefore | Before shipping list title |
Checkout::ShippingLinesTitle::RenderAfter | After shipping list title |
Checkout::ShippingList::RenderAfter | After shipping list |
Checkout::ProductList::RenderBefore | Before product list module |
Checkout::ProductList::RenderAfter | After product list module |
Checkout::Reductions::RenderBefore | Before coupons/gift cards |
Checkout::Reductions::RenderAfter | After coupons/gift cards |
Checkout::SectionPayment::RenderBefore | Before payment section |
Checkout::SectionPayment::RenderAfter | After payment section |
Checkout::ThankyouHeader::RenderBefore | Before thank-you page header |
Checkout::ThankyouContent::RenderBefore | Before thank-you page content area |