The BasketGiftPack component provides a customizable UI for adding a gift package and optional gift note for individual basket items in the shopping cart. It supports fully custom rendering 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
basketItem
object
Yes
Product information to be gift packaged
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.
customUIRender
React.ReactNode
Optional
Function to customize the overall gift pack rendering
customGiftNoteFormUIRender
React.ReactNode
Optional
Function to customize the gift note form rendering.