Documentation
Feedback
Guides
VTEX IO Apps

VTEX IO Apps
B2B Suite
B2B Organizations
Official extension
Version: 1.35.1
Latest version: 1.35.1

{"base64":"  ","img":{"width":110,"height":20,"type":"svg","mime":"image/svg+xml","wUnits":"px","hUnits":"px","url":"https://img.shields.io/badge/all_contributors-0-orange.svg?style=flat-square"}}

9 The B2B Organizations app is part of VTEXs B2B Suite solution: a collection of apps that allow stores to manage organizations, storefront roles and permissions, and checkout settings for B2B commerce relationships. We recommend that you use it alongside the other apps in this suite for all functionalities to work as expected.

In the B2B model, sales goals go beyond a high order conversion rate. They include simplifying the relationship between companies, reducing costs, and increasing performance by providing the customer with the best possible shopping experience.

B2B commerce relations are usually complex and often require a customized service. Therefore, grouping different users from the same company under an organization, and defining custom payment methods, product selections, and prices for each customer are common tasks in this scenario.

The B2B Organizations app enables you to group B2B users into organizations. You can assign specific payment methods, price tables, and product collections to each organization, allowing all of the organizations users to share the same commercial conditions. Each organization is further segmented into one or more cost centers, with its own shipping addresses.

Before you start

First, make sure you have the VTEX IO CLI (Command Line Interface) installed in your machine.

Note that installing B2B Organizations will also result in Storefront Permissions being installed as a dependency app  it allows you to grant specific storefront roles for B2B users in an organization. This is especially useful for organizations with multiple users who have different responsibilities, such as placing orders, approving orders or managing the organization users. See the Storefront Permissions app documentation for information on the available roles and how to customize their permissions.

If you want to be able to manage roles and permissions on the VTEX Admin, you must install Storefront Permissions UI as well.

Installation

You can install the B2B Organizations app by running vtex install vtex.b2b-organizations in your terminal, using the VTEX IO CLI.

User widget configuration

To enable the user widget in your storefront, this app provides a b2b-user-widget block that you can add to the account's store theme. We recommend that you add it to the store header, as shown below.

{"base64":"  ","img":{"width":1894,"height":313,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":40446,"url":"https://user-images.githubusercontent.com/77292838/159766647-a8d22a55-61da-4169-a1be-1072a4ca8d73.png"}}

Follow the instructions below to display the user widget.

  1. Open your store theme apps repository in your local files.

  2. In the manifest.json file, under dependencies, add "vtex.b2b-organizations": "1.x", like so:


    _10
    "dependencies": {
    _10
    "vtex.b2b-organizations": "1.x"
    _10
    },

  3. Within your store theme's store > blocks > header folder, edit the header.jsonc file, placing the b2b-user-widget block in the desired location, as exemplified below.

    We recommend placing it on the top row of the store header. The b2b-user-widget block accepts no props.


    _16
    "header-layout.desktop": {
    _16
    "children": [
    _16
    "flex-layout.row#0-desktop",
    _16
    "flex-layout.row#1-desktop",
    _16
    "flex-layout.row#2-desktop",
    _16
    "flex-layout.row#3-desktop",
    _16
    "sticky-layout#4-desktop"
    _16
    ]
    _16
    },
    _16
    _16
    "flex-layout.row#0-desktop": {
    _16
    "children": ["b2b-user-widget"],
    _16
    "props": {
    _16
    "fullWidth": true
    _16
    }
    _16
    },

  4. Publish and install the modified store theme. You can follow our documentation on Making your theme content public to do so.

Seller Wrapper configuration

To complete the Seller experience, follow the instructions:

  1. Check if the "vtex.b2b-organizations": "1.x" is a dependency on manifest.json file
  2. Within your store theme's store > blocks > product > box.jsonc and store > blocks > product.jsonc you must wrap the target content to the block b2b-seller-wrapper.

box.jsonc


_10
"flex-layout.row#box": {
_10
"children": ["flex-layout.col#box"],
_10
"props": {
_10
"blockClass": ["b2b-seller-wrapper#product"],
_10
}
_10
},
_10
"b2b-seller-wrapper#product": {
_10
"children": ["flex-layout.col#box"]
_10
},

product.jsonc


_10
"flex-layout.row#product": {
_10
"children": ["b2b-seller-wrapper#pdp"]
_10
},
_10
"b2b-seller-wrapper#pdp": {
_10
"children": ["flex-layout.col#product"]
_10
},

  1. Publish and install the modified store theme. You can follow our documentation on Making your theme content public to do so.

Configuration

if we have only one associated organization:

{"base64":"  ","img":{"width":1057,"height":61,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":7739,"url":"https://i.imgur.com/5yXFU6y.png"}}

if we have more than one associated organization:

{"base64":"  ","img":{"width":994,"height":98,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":10498,"url":"https://i.imgur.com/ScQtfIz.png"}}

b2b-user-widget

Prop nameTypeDescriptionDefault value
showDropdownBooleancontrols whether we are viewing the dropdown if we have more than one organization associated with the same email.true
showLoadingIndicatorBooleancontrols whether a loading indicator will be displayed while widget data is loading.false

Customization

In order to apply CSS customizations in this and other apps, follow the instructions on Using CSS Handles for store customization.

CSS handles are available for the Organization Request Form component and the User Widget component.

CSS Handles
newOrganizationContainer
newOrganizationInput
newOrganizationAddressForm
newOrganizationButtonsContainer
newOrganizationButtonSubmit
userWidgetContainer
userWidgetLoading
userWidgetRow
userWidgetItem
userWidgetButton
userWidgetImpersonationItem
userWidgetImpersonationButton
userWidgetImpersonationError

How the app works

The B2B Organizations app adds the following functionalities and components to your VTEX store, divided into VTEX Admin, Master Data v2, and Storefront capabilities:

PublicAvailabilityLocationFeature
B2B store administratorVTEX AdminOrganization Requests pageReview Organization Requests
Organizations pageManage Organizations
Organization Details pageManage Cost Centers associated with organizations
Manage Collections associated with organizations
Manage Payment Terms associated with organizations
Manage Price Tables associated with organizations
Manage organization Users
Message Center Templates pageManage email templates related to the B2B Organizations app
B2B store administrator or developersMaster Data v2Master Data API v2Retrieve and edit information on organization requests, organizations, and cost centers stored in Master Data v2
B2B customer (organization user) with required permissionsStorefrontStorefront formRequest New Organization
My OrganizationManage Organization
Manage Cost Centers
Manage Users
Impersonate Users
Storefront navigationUser Widget

This app can also be used together with B2B Quotes, allowing order quotes to be managed at the organization level. Please read our B2B Quotes documentation for more details.

VTEX Admin

After installing and setting up the B2B Organizations app, its VTEX Admin capabilities can be found by accessing Account Settings > B2B Organizations & Cost Centers.

Organization Requests

To request the creation of an organization, B2B customers must fill in the Request New Organization form.

Once this step is done by the customer, B2B store administrators may review the organization request by going to VTEX Admin > Account Settings > B2B Organizations & Cost Centers > Organization Requests (or at /admin/b2b-organizations/requests).

In this page, they can view a list of all the organization requests placed in their store.

{"base64":"  ","img":{"width":1831,"height":722,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":157812,"url":"https://user-images.githubusercontent.com/77292838/159766650-d989a5bc-a33b-4fee-9e60-76f26567b067.png"}}

Each organization can have a status of pending, approved or declined. Pending requests are the ones that still need review.

To review a request, you must:

  1. Click on a request from the table  or click on > View.
  2. Write a comment on the Add note field, if necessary.
  3. Click on Approve or Decline.

{"base64":"  ","img":{"width":1150,"height":602,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":63415,"url":"https://user-images.githubusercontent.com/77292838/159766653-ba4f6d4b-4bda-4856-86a3-0080f8d22e1e.png"}}

Upon approval, the request status will change to Approved and the organization will be created. The Organization Admin and the Sales Admins will be notified about this via email. You can learn more about this notification in the Email templates section. In addition, the user designated as the Organization Admin will be granted access to the My Organization tab on the My Account page of your storefront.

If the organization request is declined, the request status will be changed to Declined and the organization will not be created. The user designated as the Organization Admin is notified via email of this result. Read more about this notification in the Email templates section.

Organizations

The Organizations page includes a list of all the organizations created in your store and their respective status, and also allows store administrators to:

To access the page, go to Account Settings > B2B Organizations & Cost Centers > Organizations in the VTEX Admin (or at /admin/b2b-organizations/organizations).

{"base64":"  ","img":{"width":1536,"height":747,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":50875,"url":"https://user-images.githubusercontent.com/77292838/159766661-63f7191a-51c4-49d7-a34d-d909456f2692.png"}}

You can click Refetch to refresh the organizations list on this page, fetching information about recently created organizations.

It is possible to use the search bar to find an organization by name or filter the organizations by status.

Each organization can have one of the following statuses:

  • Active: the organization has been approved by the store administrators and it is currently active.
  • On hold: the organization is currently paused, which means its users are not allowed to complete purchases at the moment.
  • Inactive: the organization has been deactivated by the store administrators, so its users will not be able to login.
Add organization

You can manually create a new organization on the Organizations page. Follow these steps to do so:

  1. Click on the New button.
  2. Fill in the required information about the new organization, as illustrated in the image below.
    • Name of organization: name of the organization you want to create.
    • Name of cost center: name of the initial cost center associated with the organization.
    • Country: country where the cost center is located.
    • ZIP: postal code of the cost center address.
    • Address Line 1: primary address information, including street number and street name where the cost center is located.
    • Address Line 2: optional field for additional address information.
    • City: city where the cost center is located. This is filled in automatically based on the ZIP code informed.
    • State: state where the cost center is located. This is filled in automatically based on the ZIP code informed.
    • Receiver: name of the person that will receive orders in the informed address.
  3. Click on Add.

{"base64":"  ","img":{"width":1890,"height":828,"type":"gif","mime":"image/gif","wUnits":"px","hUnits":"px","length":1076654,"url":"https://user-images.githubusercontent.com/77292838/159766663-e1b2005a-0c2d-4bec-84ad-612007f17d64.gif"}}

Additional cost centers and addresses may be added after creating the organization, as explained in the next section of this documentation.

Organization Details

In the Organizations Details page, you can see and edit the information of an existing organization:

You can access this page by going to Account Settings > B2B Organizations & Cost Centers > Organizations in the VTEX Admin and clicking on the organization whose details you want to view, or on > View.

Note that assigning collections, payment terms, and price tables to an organization is optional. If these are not assigned, users of the organization will see the stores default catalog, have access to all payment methods, and see the store's default pricing.

Organization Name and Status

In the top section of the page, you can view the following information:

  • Organization Name: name of the organization. This information can be edited.
  • Status: status of the organization. You can set it to Active, On Hold or Inactive by selecting from a list.
  • Created: date when the organization was created.

{"base64":"  ","img":{"width":1763,"height":419,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":19715,"url":"https://user-images.githubusercontent.com/77292838/159766675-bd899388-7537-427d-af37-fc048aaf8636.png"}}

Cost Centers

In the Cost Centers section, you can view all the cost centers associated with the organization. VTEX Admin users can view and manage cost centers for any organization.

{"base64":"  ","img":{"width":1763,"height":394,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":22434,"url":"https://user-images.githubusercontent.com/77292838/159766678-0fd6c361-e1e6-470b-a9fc-c98b530c05e9.png"}}

Each organization must have at least one cost center.

By default, each cost center will allow all of the payment terms that have been assigned to the parent organization. However, Organization Admin users have the ability to enable or disable individual payment terms at the cost center level  see Manage Cost Centers for more information on this.

To create a new cost center, follow the steps below.

  1. Click on the New button.
  2. Fill in the required information about the new cost center, as illustrated in the image below.
    • Name: name of the cost center.
    • Country: country where the cost center is located.
    • ZIP: postal code of the cost center address.
    • Address Line 1: primary address information, including street number and street name where the cost center is located.
    • Address Line 2: optional field for additional address information.
    • City: city where the cost center is located. This is filled in automatically based on the ZIP code informed.
    • State: state where the cost center is located. This is filled in automatically based on the ZIP code informed.
    • Receiver: name of the person that will receive orders in the informed address.
  3. Click on Add.

{"base64":"  ","img":{"width":1797,"height":828,"type":"gif","mime":"image/gif","wUnits":"px","hUnits":"px","length":1300543,"url":"https://user-images.githubusercontent.com/77292838/159766680-5eb39381-a7da-4278-b8da-8cc7efe3e90a.gif"}}

Cost Center Details

You can view or edit the details of an existing cost center by clicking on it in the Organization Details page.

This will lead you to the Cost Center Details page, where you can:

  • View or edit the cost centers Name and Addresses.
  • View or edit the cost center's Business Document.
  • Add a new shipping address associated with the cost center.
  • Delete the cost center

{"base64":"  ","img":{"width":1810,"height":664,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":44790,"url":"https://user-images.githubusercontent.com/77292838/159766691-4557a032-a38c-4abb-a5a1-29019b833ad2.png"}}

The optional Business Document field may be used to store a Tax ID, VAT ID, CNPJ, or similar business identifier. If a Business Document is present in a user's cost center, it will be applied as the corporateDocument in the user's profile and therefore attached to any orders placed by the user.

The shipping addresses assigned to a cost center will be available to that cost center's users at checkout if you install B2B Checkout Settings. No other addresses will be available. Therefore, each cost center must have at least one shipping address.

To edit or delete an existing address, click next to it and select Edit or Delete.

If you would like to add a new shipping address related to that cost center, follow these instructions:

  1. Click on Add new address.
  2. Fill in the required information about the new address.
    • Country: country where the cost center is located.
    • ZIP: postal code of the cost center address.
    • Address Line 1: primary address information, including street number and street name where the cost center is located.
    • Address Line 2: optional field for additional address information.
    • City: city where the cost center is located. This is filled in automatically based on the ZIP code informed.
    • State: state where the cost center is located. This is filled in automatically based on the ZIP code informed.
    • Receiver: name of the person that will receive orders in the informed address.
  3. Click on Add.

Make sure to click Save in the top right of the Cost Center Details page after any changes.

If you want to delete the cost center, click on Delete instead.

Collections

You must use the Collections Beta solution to be able to associate collections to organizations using B2B Organizations. Read our article on Creating Collections Beta for more information.

This section allows you to manage the product collections assigned to the organization. Your selections define the assortment of products the organization users will see in the storefront.

To add a collection, select the collection you want to add from the Available list and click Add to org.

To remove a collection, select the collection you want to remove from the Assigned to organization list and click Remove from org.

{"base64":"  ","img":{"width":1800,"height":742,"type":"gif","mime":"image/gif","wUnits":"px","hUnits":"px","length":387324,"url":"https://user-images.githubusercontent.com/77292838/159766692-aec018f6-d09b-4290-a180-a0e2b7040295.gif"}}

Payment Terms

In this section, you can choose which payment conditions are assigned to the organization. Your selections determine which payment options are available to organization users during checkout.

Note that the available payment options can be further customized per cost center by the Organization Admin. Check the Manage Cost Centers section for more information on this.

To add a payment term, select the option you want to add from the Available list and click Add to org.

To remove a payment term, select the option you want to remove from the Assigned to organization list and click Remove from org.

{"base64":"  ","img":{"width":1800,"height":432,"type":"gif","mime":"image/gif","wUnits":"px","hUnits":"px","length":274406,"url":"https://user-images.githubusercontent.com/77292838/159766697-27de2f5b-18b3-4067-a4f1-81da8fb61bc0.gif"}}

To customize the checkout according to each organization users role, you need to install and configure B2B Checkout Settings.

Price Tables

This section allows you to choose which price tables are assigned to the organization. The price tables you select determine the prices the organization users will see in the storefront.

Price tables associated with an organization override the base price only when fulfillment is performed by the main account. When franchises perform the fulfillment, the price table is not applied, resulting in incorrect price displays. To ensure correct operation, configure both the logistics and the price tables directly in the main account, avoiding the use of franchises that inherit price settings.

To add a price table, select the option you want to add from the Available list and click Add to org.

To remove a price table, select the option you want to remove from the Assigned to organization list and click Remove from org.

{"base64":"  ","img":{"width":1800,"height":729,"type":"gif","mime":"image/gif","wUnits":"px","hUnits":"px","length":352355,"url":"https://user-images.githubusercontent.com/77292838/159766700-34ebfaaf-f6fa-42b6-85a9-a83dca5505ef.gif"}}

Users

This section presents a list of users associated with the organization, showing their emails, their roles within the organization, and the cost center to which they are associated. It is worth noting that the same email can be associated with up to 949 different organizations or cost centers.

{"base64":"  ","img":{"width":1530,"height":405,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":25833,"url":"https://user-images.githubusercontent.com/77292838/159766707-572dd167-e948-4300-b259-1c9cd0b8a341.png"}}

To add a new user to the organization, follow these steps:

  1. In the Users list, click on the New button.
  2. Fill in the users information, as illustrated below.
    • Name: full name of the user.
    • Email: email of the user.
    • Cost Center: cost center the user will be associated with.
    • Role: role the user will have in the storefront. See more details on the available roles in the Storefront Permissions documentation.
  3. Click on Add.

{"base64":"  ","img":{"width":887,"height":815,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":41693,"url":"https://user-images.githubusercontent.com/77292838/159766710-4e35973c-880d-4e98-8f93-4a6c87d3f4e8.png"}}

Once you add a new user to the organization, if a customer account did not already exist in your store for the provided email address, it will be created.

To edit or remove an existing user, follow these steps:

  1. Click on the user you want to edit or delete in the Users list.

  2. Edit the desired information.

    You can change the users Cost Center and their Role.

    If you want to remove the user from the organization, click Remove user instead and skip the next step.

  3. To apply your changes, click Save.

{"base64":"  ","img":{"width":980,"height":700,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":30365,"url":"https://user-images.githubusercontent.com/77292838/159766713-03778c4a-370a-4c13-be4a-8f507cee0a73.png"}}

If a user is removed from an organization, their account will continue to exist in the store, but they will no longer be assigned to an organization, a cost center, and a B2B role. Thus, they will no longer have access to details of their organization in the My Organization page. Instead, they will have the ability to request the creation of a new organization, if necessary.

As an optional feature, you can install the Admin Customers app for additional customer management capabilities on the VTEX Admin.

Email templates

The B2B Organizations app provides a set of four email templates to be sent to B2B organization users, triggered automatically based on specific changes:

Template nameRecipientTrigger
Organization ApprovedUser with the Organization Admin roleThe organization request has been approved.
Organization CreatedUsers with a Sales Admin roleThe organization has been created.
Organization DeclinedUser with the Organization Admin roleThe organization request has been declined.
Organization Status ChangedUsers with the Organization Admin roleThe organization status has changed.

If you want to view or edit any of these templates, follow the steps below.

  1. In the VTEX Admin, go to Customer > Message center > Templates.
  2. In the search bar, type organization.
  3. Click on the template you want to view or edit.
  4. Make the desired changes in the template. You can learn more about editing Message Center templates by reading our documentation on How to create and edit transactional email templates.
  5. Click on Save.

{"base64":"  ","img":{"width":1194,"height":877,"type":"gif","mime":"image/gif","wUnits":"px","hUnits":"px","length":1201391,"url":"https://user-images.githubusercontent.com/77292838/159766714-6b5feaaf-3d81-472e-a713-55d952a1e556.gif"}}

Master Data v2

The B2B Organizations app stores information about organization requests, organizations, and cost centers in Master Data v2.

This means that it is possible for store administrators or developers to fetch this information using the Master Data API v2, by using their data entity name as the value for the data_entity_name parameter.

You can see the data entity names in the table below.

Data entity names
organization_requests
organizations
cost_centers

Storefront

Storefront capabilities, in turn, are accessible to B2B customers who visit a suppliers store, provided that they are logged in and have the required permissions.

The following sections describe what your customer can do in your storefront, after you've finished setting up the B2B Organizations app.

Request New Organization

A B2B user who is not already part of an organization can request the creation of a new buyer organization in your store by filling in the Request New Organization form. They can follow the steps below to do so.

  1. Access the store website.
  2. Click on My Account > My Organization.
  3. Provide the required information, as shown in the image below.
    • Organization Name: name of the organization.
    • User to become Organization Admin: section where you must provide information about the first user of the organization, who will be assigned as the Organization Admin.
      • First Name: first name of the Organization Admin user.
      • Last Name: last name of the Organization Admin user.
      • Email Address: email address of the Organization Admin user.
    • Default Cost Center: section where you must provide information about the first cost center associated with the organization.
      • Cost Center Name: name of the cost center.
      • Business Document: optional field for a business document such as a Tax ID, CNPJ, etc.
      • Country: country where the cost center is located.
      • ZIP: postal code of the cost center address.
      • Address Line 1: primary address information, including street number and street name where the cost center is located.
      • Address Line 2: optional field for additional address information.
      • City: city where the cost center is located. This is filled in automatically based on the ZIP code informed.
      • State: state where the cost center is located. This is filled in automatically based on the ZIP code informed.
      • Receiver: name of the person that will receive orders in the informed address.
  4. Click Submit.

{"base64":"  ","img":{"width":1892,"height":958,"type":"gif","mime":"image/gif","wUnits":"px","hUnits":"px","length":1971577,"url":"https://user-images.githubusercontent.com/77292838/159766733-14da23e9-55d6-44e8-8cfc-95d62e3b4ade.gif"}}

After submitting the form, the request will be sent to a queue for review by the B2B store administrator  for more details on this, refer to the Organization Requests section.

The user designated as the Organization Admin for the new organization will receive an email notification when the request has either been approved or declined by the store administrator. You can learn more about this notification in the Email templates section.

My Organization

Users who are designated as the Organization Admin or Sales Admin can manage the details of their organization in the storefront, on the My Organization page.

Users with the Organization Buyer or Organization Approver roles can also view a read-only version of this page.

To access My Organization, follow the instructions below.

  1. Access the storefront and log in.
  2. Click Hello, {name}.
  3. Click on My Account.
  4. Go to My Organization on the sidebar. You will see the page below.

{"base64":"  ","img":{"width":1920,"height":1379,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":119400,"url":"https://user-images.githubusercontent.com/77292838/159766773-4d62c3ed-4282-45a9-bf36-d0041684cc50.png"}}

On this page, the user with the Organization Admin or Sales Admin roles may do the following:

Manage Cost Centers

Organization Admin or Sales Admin storefront users can find the cost centers associated with their organization in the Cost Centers section of the My Organization page.

To add a new cost center, they should go to My Account > My Organization, where they have access to the same options described in Cost Centers. It is possible to view or edit the details of an existing cost center by clicking on it, the same way as described in Cost Center Details.

Organization Admins may also view and/or edit the Business Document assigned to each cost center, as described in Cost Center Details.

In addition, Organization Admins can enable specific payment terms for a cost center, by using the toggle button to activate or deactivate the payment terms assigned to the organization, as shown below.

This section will only be available on the My Organization page if payment terms have previously been assigned to the organization by the VTEX Admin users.

{"base64":"  ","img":{"width":1514,"height":354,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":34045,"url":"https://user-images.githubusercontent.com/77292838/159766775-dd0a17bd-8418-401b-a377-7d4c9ed0cf11.png"}}

Manage Users

Organization Admin or Sales Admin storefront users can also see and manage the users of their organization in the Users section in My Organization. To do this, they should go to My Account > My Organization, where they have access to the same options described in the Users section of this documentation.

Users with the Organization Admin role may add, edit, or remove users with any of the following roles: Organization Admin, Organization Approver, and Organization Buyer.

Users with the Sales Admin role may add, edit, or remove users with any of the following roles: Sales Admin, Sales Manager, and Sales Representative.

Impersonate Users

In telesales, assisted sales, or customer support scenarios where the B2B customer needs help from a salesperson to navigate the store or place orders, it is common to make use of impersonation.

In the B2B Organizations app, only users with Sales roles or the Organization Admin role may impersonate another user.

This action will temporarily apply the impersonated user's email, organization, and cost center to their storefront session. It allows the impersonating users to do the following:

  • Browse the store and see the prices, products, shipping addresses and payment methods that would be seen by the impersonated user.
  • Take actions on behalf of the impersonated user, such as placing orders.
  • Use their regular permissions.

To use impersonation, users with Sales roles or the Organization Admin role must follow the steps below.

  1. In the Users section of My Organization, click on in the row of the user they want to impersonate.
  2. Click on Impersonate User.

{"base64":"  ","img":{"width":1536,"height":412,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":25966,"url":"https://user-images.githubusercontent.com/77292838/159766777-1ff83458-cad0-46de-82e4-1e3c3e4bb144.png"}}

User widget

To give storefront users visibility into their currently assigned organization, cost center, and role, this app provides a user widget which can be added to the account's store theme:

{"base64":"  ","img":{"width":1675,"height":60,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":42831,"url":"https://user-images.githubusercontent.com/77292838/159766781-8edabb7e-292c-4c8e-a88e-ae937ec7db86.png"}}

To display the user widget, it is necessary to follow the instructions in the User widget configuration section.

If users click Manage organization, they can access the My Organization page directly.

In case impersonation is currently active, this block will also show the email of the user being impersonated, as well as a Stop impersonation button:

{"base64":"  ","img":{"width":1675,"height":112,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":66691,"url":"https://user-images.githubusercontent.com/77292838/159766784-6bce63af-9cc6-4ac4-bc59-460b74722dbe.png"}}

Seller Wrapper Block

10 This topic is related to the Seller functionality.

To persist the Organization seller throughout the PDP and shelves, it must have the "seller-wrapper" block in the store theme configuration.

Please check Seller wrapper configuration

See also
VTEX App Store
VTEX IO Apps