Site design: separate booking page and basket page
The header button, the basket indicator, the shop's "view basket" links, hero buttons and the payment return page all pointed at a hard-coded /book. Site design now has a Booking page (where the CTA leads) and a Basket page (where the basket leads; empty = the booking page), and warns when the page picked is unpublished or lacks its Shop / Checkout block. On a basket page of its own, an empty basket links to the booking page instead of saying "pick a service above". Sites saved before this keep their links: the booking page falls back to the CTA's old address, then /book. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
This commit is contained in:
parent
76b297153e
commit
c3c10229b0
12 changed files with 105 additions and 28 deletions
|
|
@ -33,7 +33,7 @@ export function createBlock(type: BlockType): ContentBlock {
|
|||
heading: 'Holistic and Experiential Learning about Happiness',
|
||||
subheading: 'Individual sessions, workshops and events in Oslo',
|
||||
buttonLabel: 'BOOK NOW',
|
||||
buttonUrl: '/book'
|
||||
buttonUrl: ''
|
||||
};
|
||||
break;
|
||||
case 'button':
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@
|
|||
{@render field('Subheading', block.data.subheading || '', (subheading) => updateData({ subheading }))}
|
||||
<div class="grid gap-x-4 md:grid-cols-2">
|
||||
{@render field('Button label', block.data.buttonLabel || '', (buttonLabel) => updateData({ buttonLabel }))}
|
||||
{@render field('Button URL', block.data.buttonUrl || '', (buttonUrl) => updateData({ buttonUrl }), '/page or https://…')}
|
||||
{@render field('Button URL', block.data.buttonUrl || '', (buttonUrl) => updateData({ buttonUrl }), 'Empty = the booking page')}
|
||||
</div>
|
||||
{:else if block.type === 'button'}
|
||||
<div class="grid gap-x-4 md:grid-cols-2">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue