Akifast

pz-akifast is a Project Zero plugin that provides a fast checkout experience with customizable buttons for both checkout and quick login scenarios.

Installation Method

You can use the following command to install the extension with the latest plugins:

npx @akinon/projectzero@latest --plugins

Setting the Visibility of Buttons

To customize button visibility, update your src/settings.js:

module.exports = {
 // other settings
 plugins: {
   // other plugin settings
   'pz-akifast': {
     quickLogin: false,
     pdp: false,
     basket: false
   }
 }
};

Checkout Button Props

Prop
Type
Required
Description

isPdp

boolean

Optional

Indicates if it's a product info page.

renderer

object

Optional

Custom rendering functions.

Quick Login Props

Prop
Type
Required
Description

buttonText

string

Optional

Text displayed on the button.

isCaptchaVisible

boolean

Required

Indicates if captcha is visible.

captchaValidated

boolean

Required

Indicates if captcha is validated.

renderer

object

QuickLoginButton

Custom rendering functions.

Renderer Props Types

The renderer object allows you to fully customize the UI of both the checkout and quick login buttons:

Usage Examples

Both the CheckoutButton and QuickLoginButton can be customized using the renderer prop. This allows you to fully customize the appearance and behavior of these components while maintaining their core functionality.

Checkout Button

Summary:

Product Info:

Default Usage

Customized Usage with Renderer

Quick Login Button

Default Usage

Customized Usage with Renderer

Last updated

Was this helpful?