The CheckoutGiftPack component provides gift package functionality during the checkout process. It allows customers to mark their order as a gift and optionally include a gift note. The component supports both default and fully customized UI via customUIRender and customGiftNoteFormUIRender.
Installation Method
You can use the following command to install the extension with the latest plugins:
npx@akinon/projectzero@latest--plugins
Props
Prop
Type
Required
Description
useModal
boolean
Optional
Determines if the gift form is shown in a modal.
modalClassName
string
Optional
Custom class for the modal container.
modalTitle
string
Optional
Title text for the modal.
modalContentClassName
string
Optional
Custom class for the modal's content area.
maxNoteLength
number
Optional
Maximum allowed character length for the gift note.
customUIRender
function
Optional
Function to override the default UI logic.
customGiftNoteFormUIRender
function
Optional
Function to override the default gift note form layout.
{
addGiftPackText: 'Add Gift Pack',
giftPackAdded: 'Gift Pack Added',
removeGiftPackText: 'Remove Gift Pack',
informationText: 'This order will be gift packaged*',
updateNote: 'Update Note',
removeGiftNoteText: 'Remove Gift Note',
charactersLength: 'characters left',
placeholderInput: 'You can leave empty this area. However it will be a gift package without note.',
accordionTitle: 'Gift Note',
warningMessage: 'Make sure that this field is not longer than the character limit.',
save: 'SAVE',
close: 'Close'
}