B2B
The B2B plugin enables a professional shopping experience for corporate users by adding advanced features such as quote requests, saved carts, and store-specific product selection. Perfect for businesses that manage high-volume or repeat purchases.
Installation Method
You can use the following command to install the extension with the latest plugins:
npx @akinon/projectzero@latest --pluginsSetup Instructions
Routes
File path: src/routes/index.ts
enum ACCOUNT_ROUTES {
...,
ACCOUNT_MY_QUOTATIONS = '/users/my-quotations'
}Account Menu
File path: src/views/account/account-menu.tsx
const ACCOUNT_MENU_ITEMS = [
...,
{
translationKey: 'account.base.menu.my_quotations',
href: ROUTES.ACCOUNT_MY_QUOTATIONS,
testId: 'account-my-quotations',
},
];Translations
Account Menu
File path: public/locales/en/account.json
File path: public/locales/tr/account.json
Store Select Modal
File path: public/locales/en/product.json
File path: public/locales/tr/product.json
Basket
Add the translation inside the basket object. Apply this for every language
File path: public/locales/en/basket.json
File path: public/locales/tr/basket.json
Rewrite URLs
File path: src/settings.js
Enable the Plugin
File path: src/plugin.js
Product Page Integration
File path: src/views/product/product-info.tsx
Add imports
Add useB2b hook
Add open modal button
Add the end in the return
Last updated
Was this helpful?

