Giter VIP home page Giter VIP logo

b2b-orders-history's Introduction

B2B Orders History

ℹ The B2B Orders History 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.

When navigating a store, B2B customers who are members of organizations often need to view past orders placed by other users in their organization or cost center.

Considering this, the B2B Orders History app replaces the default Orders page in My Account with an adapted version for the B2B scenario.

In this version of the Orders page, logged-in B2B customers who are members of an organization can view not only their own orders, but also orders placed by members of their organization or cost center, provided that they have the required storefront permissions.

Before you start

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

To use B2B Orders History, you must have the B2B Organizations app installed in your store, which will enable you to group B2B users into organizations, with their own assigned payment methods, price tables, product collections, and cost centers.

You must also have the Storefront Permissions app installed – it allows you to grant specific storefront roles for B2B customers in an organization. See the Storefront Permissions app documentation for information on the available roles and how to customize their permissions.

Installation

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

Configuration

After installing the app, you must hide the default Orders page within My Account. To do this, follow the steps below.

  1. On the VTEX Admin, access Account Settings > Apps > My apps.

  2. In the list of apps, find My Account and click on its Settings.

    If you prefer, you can go directly to the URL https://accountName.myvtex.com/admin/apps/[email protected]/setup/

  3. In the Orders section, deselect the Visible checkbox, as shown in the following image.

  4. Click on Save.

my-account-settings-orders

How it works

Once the app is installed and My Account is configured, B2B customers who are members of an organization will be able to see all of their organization or cost center’s orders at My Account > Orders in the storefront, if they have the required permissions.

By default, only customers with the Organization Admin role can see all the organization’s orders. Users with the Organization Approver or Organization Buyer roles can only see their cost center’s orders. Note that if you have the Storefront Permissions UI app you can customize these permissions in your VTEX Admin, on Account Settings > Storefront Permissions.

b2b-orders-history's People

Contributors

georgelimadev avatar julia-rabello avatar kaio-donadelli avatar polishq avatar rudge avatar sheilagomes avatar thyarles avatar wender avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.