@akinon/pz-akifast

1.71.0 • Public • Published

@akinon/pz-akifast

Install the npm package

# For latest version
yarn add @akinon/pz-akifast

# Preferred installation method
npx @akinon/projectzero@latest --plugins

Setting the Visibility of Buttons

(all buttons are visible by default)

// settings.js file

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

Usage in Plugin Module System

Checkout Button

import PluginModule, { Component } from '@akinon/next/components/plugin-module';

<PluginModule
  component={Component.AkifastCheckoutButton}
  props={{
    ...checkoutProviderProps, // same with one click checkout props
    isPdp: true
  }}
/>

Quick Login Button

import PluginModule, { Component } from '@akinon/next/components/plugin-module';

<PluginModule
  component={Component.AkifastQuickLoginButton}
  props={{
    isCaptchaVisible,
    captchaValidated
  }}
/>

Checkout Button Props

You can see other props for the button in the pz-one-click-checkout package.

Property Type Description
isPdp boolean Indicates if it's a product info page.

Quick Login Props

Property Type Description
buttonText string Text displayed on the button.
isCaptchaVisible boolean Indicates if captcha is visible.
captchaValidated boolean Indicates if captcha is validated.

Readme

Keywords

none

Package Sidebar

Install

npm i @akinon/pz-akifast

Weekly Downloads

227

Version

1.71.0

License

MIT

Unpacked Size

5.44 kB

Total Files

8

Last publish

Collaborators

  • akinon