Added shop and checkout to the CMS
Checkout is done with stripe Added reservation system
This commit is contained in:
parent
09e54033dd
commit
702d99b9ed
42 changed files with 3332 additions and 21 deletions
|
|
@ -9,7 +9,9 @@ export const blockLabels: Record<BlockType, string> = {
|
|||
button: 'Button',
|
||||
spacer: 'Spacer',
|
||||
testimonials: 'Testimonials',
|
||||
upcoming_calendar: 'Upcoming Calendar'
|
||||
upcoming_calendar: 'Upcoming Calendar',
|
||||
shop: 'Shop',
|
||||
checkout: 'Checkout'
|
||||
};
|
||||
|
||||
export const blockTypes = Object.keys(blockLabels) as BlockType[];
|
||||
|
|
@ -63,6 +65,21 @@ export function createBlock(type: BlockType): ContentBlock {
|
|||
categories: []
|
||||
};
|
||||
break;
|
||||
case 'shop':
|
||||
base.data = {
|
||||
title: 'Our Services',
|
||||
itemTypeFilter: 'all',
|
||||
itemIds: [],
|
||||
layout: 'grid'
|
||||
};
|
||||
break;
|
||||
case 'checkout':
|
||||
base.data = {
|
||||
title: 'Checkout',
|
||||
heading: 'Complete your booking',
|
||||
notesLabel: 'Notes or special requests'
|
||||
};
|
||||
break;
|
||||
}
|
||||
base.data._background = { type: 'none', color: '', attachment: 'scroll', overlay: false, overlayOpacity: 40 };
|
||||
return base;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue