ℹ The B2B Quotes & Carts app is part of VTEX’s 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.
The B2B shopping experience frequently requires the possibility for customers to request quotes and negotiate prices with sales representatives.
The B2B Quotes & Carts app allows customers who are part of B2B Organizations to request a quote for a shopping cart and save it for future use – including its items, product quantities and prices. This enables price negotiations between them and the store’s sales representatives, as well as order approval flows within their organization.
Before you start
First, make sure you have the VTEX IO CLI (Command Line Interface) installed in your machine.
Note that installing B2B Quotes & Carts 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 (optional).
If you want to be able to manage roles and permissions on the VTEX Admin, you must install Storefront Permissions UI as well.
Along with this app, we recommend installing B2B Checkout Settings, which includes quotes-related functionalities to checkout. For example, it allows you to add a Create a Quote
button to the checkout’s shopping cart page, as well as “lock” the checkout if a quote is in use, preventing the cart contents from being changed until the order is placed.
Installation
You can install the B2B Quotes & Carts app by running vtex install vtex.b2b-quotes
in your terminal, using the VTEX IO CLI.
How the app works
The B2B Quotes & Carts app enables a shared My Quotes page for members of a B2B organization, from where it is possible to create a quote or saved cart and view existing quotes and saved carts.
It is also possible to manage each quote or saved cart’s details, including the possibility to edit them, request adjustments, approve or decline them or use them to place an order.
In addition, the app enables a set of email templates to notify members of the organization of quote status changes through Message Center.
The ability to use these resources depends on having the required storefront permissions, as explained in the next section.
Permission | Default roles |
---|---|
Create Quotes and Carts | Store AdminSales AdminSales ManagerSales RepresentativeOrganization AdminOrganization ApproverOrganization Buyer |
Access My Cost Center's Quotes and Carts | Sales RepresentativeOrganization ApproverOrganization Buyer |
Access My Organization's Quotes and Carts | Sales ManagerOrganization Admin |
Access All Quotes and Carts | Store AdminSales Admin |
Place Orders from Quotes and Carts | Store AdminSales AdminSales ManagerSales RepresentativeOrganization AdminOrganization Approver |
Decline Quotes and Carts | Store AdminSales AdminSales ManagerSales RepresentativeOrganization AdminOrganization Approver |
Edit My Cost Center's Quotes and Carts | Sales Representative |
Edit My Organization's Quotes and Carts | Sales Manager |
Edit All Quotes and Carts | Store AdminSales Admin |
If you want to be able to manage roles and permissions for B2B Quotes & Carts on the VTEX Admin, you must install Storefront Permissions UI and refer to its documentation.
My Quotes
The B2B Quotes & Carts app enables the My Quotes page, an interface to manage quotes and saved carts in the storefront, provided that the user is logged in and has the required storefront permissions.
To access My Quotes, customers or sales users must follow the instructions below.
- Access the storefront and log in.
- Click
Hello, {name}
. - Click on My Account.
- Go to Quotes and Saved Carts on the sidebar. You will see the page below.
ℹ Quotes and saved carts are shown together in the same table. The differences are the following: _ Only quotes can have a status of Pending or Revised. _ Sales users are not notified when saved carts are created. * It is possible to edit a saved cart such that it becomes a quote, as explained in Quote Details.
In this page, it is possible to use the following resources:
- Search bar: allows you to look up specific quotes or saved carts by name.
- Filters: allows you to filter the displayed quotes or saved carts by Status, Organization _or _Cost Center. The two last options are available under
More
. - New quote: allows you to create a quote or saved cart by clicking on the
New Quote
button. See more details on this in the Creating a quote or saved cart section.
The list of quotes and saved carts displays the following information:
- Ref. Name: the quote or saved cart’s reference name.
- Subtotal: subtotal of the shopping cart associated with the quote or saved cart.
- Created by: email of the user who created the quote or saved cart.
- Created on: date when the quote or saved cart was created, in the MM/DD/YYYY format.
- Expiration: date when the quote or saved cart will expire, in the MM/DD/YYYY format.
- Status: current state of the quote or saved cart, including the following options:
- Ready: the quote or saved cart is ready to be used to place an order.
- Pending: the quote is waiting for review and adjustment by a sales user.
- Revised: the quote is waiting for additional review and adjustment by a sales user.
- Declined: the quote or saved cart has been declined and cannot be used to place an order.
- Expired: the quote or saved cart has reached its expiration date and cannot be used to place an order.
- Placed: the quote or saved cart has been used to place an order and cannot be used again.
- Last Update: date when the quote or saved cart was updated for the last time, in the MM/DD/YYYY format.
- Organization: name of the organization the quote or saved cart is associated with.
- Cost Center: name of the cost center the quote or saved cart is associated with.
From the list, users may click on any row or click on > Details to view and edit the details of that quote or saved cart, according to what their permissions allow.
Depending on the current user’s storefront permissions, the My Quotes page will show a list of quotes and saved carts containing one of the following:
Permission | Content |
---|---|
Access My Cost Center's Quotes and Carts | All quotes and saved carts created by users in the current user’s cost center. |
Access My Organization's Quotes and Carts | All quotes and saved carts created by users in the current user’s organization. |
Access All Quotes and Carts | All quotes and saved carts in the current store, regardless of organization. |
Creating a quote or saved cart
In order to create a quote or saved cart, it is necessary to have the Create Quotes and Carts permission. After adding products to the cart in the storefront, users with these permissions can use the contents of their cart to create a saved cart or to request a quote. They should follow the instructions below.
-
Fill in the shopping cart with the desired products.
-
Take one of the following actions to create a quote or saved cart:
-
Clicking the
Create a Quote
button during checkout, provided that B2B Checkout Settings is installed and this button is enabled in the app’s configuration. -
Navigating to the
/b2b-quotes/create
route. -
Clicking the
+ New
button on the My Quotes page.Any of these paths will lead to the Create Quote page, illustrated below.
-
-
Fill in the quote or saved cart’s Name.
-
Make sure that all the information in the Create Quote page is correct:
- Original Subtotal: subtotal of the shopping cart before any discounts.
- Percentage Discount: percentage of the discount offered by a sales representative.
- Quoted Subtotal: subtotal of the quote, including any discounts offered by sales representatives.
- Image: image of the selected product.
- Ref. Code: reference code of the selected product.
- Name: name of the product.
- Original Price: original price of the product.
- Quoted Price: price of the product including any discounts offered by sales representatives.
- Quantity: quantity of items.
- Total: total value considering the quoted price and the quantity of items.
-
Write a note in the optional Add Note field, if necessary.
Notes added here will be visible as part of the quote or saved cart’s Update History and can be seen by salespeople or other members of your organization and cost center. For example, if a user wishes to request a specific discount from the B2B store’s salesperson, they may include this request as a note.
-
Click on one of the following options:
-
Save for later
: clicking on this button will result in the creation of a saved cart. The status of the newly created saved cart will be set as Ready, meaning that it can immediately be used to place an order by any user within that organization or cost center who has the Place Orders from Quotes and Carts permission. -
Request quote
: clicking on this button will result in the creation of a quote. The status of the newly created quote will be set as Pending, meaning that it will need to be reviewed and adjusted by a salesperson before any special discounts can be applied.Note that a Pending quote can still be used to place an order, as it is essentially a saved cart at this point, with the original item quantities and prices from the user’s shopping cart.
-
The items in the table, along with the quantities and prices shown, will be saved when the quote or saved cart is created.
Quote Details
The Quote Details page displays all the information about a specific quote or saved cart, as well as the available actions, depending on its status and the user’s storefront permissions.
Users can access this page through the storefront by going to My Account > Quotes and Saved Carts.
This page displays the following information about a specific quote:
- Name: reference name of the quote or saved cart.
- Original Subtotal: subtotal of the shopping cart before any discounts.
- Percentage Discount: percentage of the discount offered by a sales representative.
- Quoted Subtotal: subtotal of the quote, including any discounts offered by sales representatives.
- Expiration: date when the quote or saved cart will expire, in the MM/DD/YYYY format.
- Status: current state of the quote or saved cart, as in My Quotes.
- Image: image of the selected product.
- Ref. Code: reference code of the selected product.
- Name: name of the product.
- Original Price: original price of the product.
- Quoted Price: price of the product including any discounts offered by sales representatives.
- Quantity: quantity of items.
- Total: total value considering the quoted price and the quantity of items.
- Update History: includes a history of all events related to the quote, such as its creation and discounts offered, including notes if there are any.
- Add Note: optional field to write comments or notes. Notes added here will be visible as part of the quote or saved cart’s Update History. For example, if a user wishes to request a specific discount from their salesperson, they may include this request as a note.
The following actions are available, depending on the user’s storefront permissions:
Actions | Required storefront permissions |
---|---|
Editing a quote | Any of the following:Edit My Cost Center's Quotes and CartsEdit My Organization's Quotes and CartsEdit All Quotes and Carts |
Requesting additional adjustments to a quote | Any of the following:Access My Cost Center's Quotes and CartsAccess My Organization's Quotes and CartsAccess All Quotes and Carts |
Declining a quote or saved cart | Decline Quotes and Carts |
Using a quote or saved cart to place an order | Place Orders from Quotes and Carts |
Editing a quote
Users with Edit permissions – who are typically users associated with any of the Sales roles or the Store Admin role – can edit quotes in the Quote Details page as follows:
- Change the price or quantity of each SKU by editing them directly in the Quoted Price and Quantity columns of the product list within the quote.
- Apply Percentage Discount: apply a percentage discount to the entire quote by dragging the discount bar up to the desired percentage. This will override any changes made to individual product prices.
- Expiration Date Change: change the quote’s expiration date.
- Add Note: write an optional comment.
After making any of the above edits on the quote details page, the user must save the quote by clicking Save quote
.
This will have the effect of setting the quote’s status to Ready and notifying any user who has previously interacted with the quote of the change via email – check Email templates for more details on this notification.
ℹ To take discounts into consideration, the B2B Quotes and Carts app is integrated with the Order Authorization system. If there is a manual discount rule that will automatically deny a discount above a certain percent, B2B Quotes and Carts will not allow a discount above this amount to be applied.
Requesting additional adjustments to a quote
Users who lack any of the Edit permissions but have any of the Access permissions can add additional notes to a quote or saved cart if its current status is Ready, Pending, or Revised.
If a quote is Ready, meaning that it has been adjusted and saved by a sales user, its status will change to Revised when an organization user adds notes and clicks Submit to Sales Rep
. This is intended as a way for the organization user to request additional adjustments to pricing or quantity. All users who have previously interacted with the quote will receive a notification including the contents of the notes field – check Email templates for more details on this notification.
Declining a quote or saved cart
A declined quote or saved cart can no longer be edited or used to place an order. Users with the Decline Quotes and Carts permission may decline a quote or saved cart if its current status is Ready, Pending or Revised. This can be done by clicking the Decline
button on the quote details page.
All users who have previously interacted with the quote will be notified that it has been declined – check Email templates for more details on this notification.
Using a quote or saved cart to place an order
Users with the Place Orders from Quotes and Carts permission may use a quote or saved cart to place an order if its current status is Ready, Pending, or Revised.
They can do this by clicking the Use Quote
button on the quote details page. The user will be redirected to checkout with the contents of the quote or saved cart added to their current cart. Anything that was previously in the user’s cart will be cleared.
If the B2B Checkout Settings app is installed, the checkout will be in a “locked” state until the order is placed, meaning that product quantities cannot be changed, and products cannot be added or removed. If there are not enough items in stock to meet the quantity specified in the quote or saved cart, the amount will be automatically adjusted. If a given product has no availability, checkout will allow it to be removed from the cart.
Once the order has been placed, the quote or saved cart’s status will automatically change to Placed, after which point it cannot be used again.
Email templates
The B2B Quotes & Carts app provides a set of three email templates to be sent to B2B users, triggered automatically based on specific changes:
Template name | Recipients | Trigger |
---|---|---|
Quote created | Users with any of the following permissions:Edit My Cost Center's Quotes and CartsEdit My Organization's Quotes and CartsEdit All Quotes and Carts | The quote request was created. |
Quote placed | All users who have previously interacted with the quote by editing it, requesting adjustments or approving it. | An order was placed from the existing quote. |
Quote updated | All users who have previously interacted with the quote. | The quote was updated in any way – including changes in discounts or expiration dates, new notes added or refusal. |
If you want to view or edit any of these templates, follow the steps below.
- In the VTEX Admin, go to Customer > Message center > Templates.
- In the search bar, type
quote
. - Click on the template you want to view or edit.
- 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.
- Click on
Save
.
Configuration (optional)
To change the app’s settings, access Account Settings > B2B Quotes in the VTEX Admin.
On this page, you can configure the following option:
- Default expiration period (in days) for quotes and saved carts: this field allows you to configure the default expiration date for new quotes requested by customers in your store. The default value is 30 days. The minimum value you can set is 1, and there is no maximum value.
Make sure you click on Save Settings
after any changes.
Note that users with storefront permissions to edit quotes will be able to adjust the expiration dates of individual quotes as needed.