Coder Social home page Coder Social logo

commerce-on-lightning's Introduction

commerce-on-lightning

Version Appveyor CI Codecov Known Vulnerabilities Downloads/week License

Commerce commands for Salesforce CLI.

If you want a store, for test or any other purposes, then use this plugin to automate all steps required. It has built in automation to help if any steps fail. This plugin is designed to be as hands off as possible.

This plugin is used to create and setup either a B2B or a B2C store with data with as little effort as possible.

This plugin requires the Salesforce CLI. For more information on the CLI, read the getting started guide.

We always recommend using the latest version of these commands, however, you can install a specific version or tag if needed.

  • commerce-on-lightning - @salesforce/commerce <---- THIS PLUGIN
    • create stores
    • install command: sfdx plugins:install @salesforce/commerce
    • install specific version:sfdx plugins:install @salesforce/[email protected]

Plugin Dependencies

  1. shane-sfdx-plugins - shane-sfdx-plugins
    • public plugin for imports
    • install command: sfdx plugins:install shane-sfdx-plugins

==============

Introduction

This plugin is designed to setup a test store either B2B or B2C within a scratch org. It will add products and users, a guest user, admin user and buyer user. This plugin assumes your devhub and scratchorg are already setup.

This repo also contains example components for your store you can load after the fact.

For B2C examples components please see: B2B2C Advanced Reference Components

For B2B examples components please see: B2B Advanced Reference Components

Usage

$ npm install -g @salesforce/commerce
$ sfdx COMMAND
running command...
$ sfdx (-v|--version|version)
@salesforce/commerce/250.1.0 darwin-x64 node-v18.16.1
$ sfdx --help [COMMAND]
USAGE
  $ sfdx COMMAND
...

Install

sfdx plugins:install @salesforce/commerce

# install dependencies
sfdx plugins:install shane-sfdx-plugins

Issues

Please report any issues at https://github.com/forcedotcom/commerce-on-lightning/issues

Contributing

Please see our CONTRIBUTING guide.

Build

If you plan to help develop the plugin then these steps are for you.

To build the plugin locally, make sure to have yarn installed and run the following commands:

# Clone the repository
git clone [email protected]:forcedotcom/commerce-on-lightning.git

# Install the dependencies and compile
yarn install
yarn build

To use your plugin, run using the local ./bin/run or ./bin/run.cmd file. This is helpful for mostly debugging purposes as you can add this command to an IDE.

# Run using local run file.
./bin/run commerce:store:create

There should be no differences when running via the Salesforce CLI or using the local run file. However, it can be useful to link the plugin to do some additional testing or run your commands from anywhere on your machine.

# Link your plugin to the sfdx cli
sfdx plugins:link .
# To verify
sfdx plugins

Commands

sfdx commerce:examples:convert -f <filepath> -n <string> [-d <string>] [-p <string>] [-o <string>] [-y] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Convert repo examples to SFDX scratch org

USAGE
  $ sfdx commerce:examples:convert -f <filepath> -n <string> [-d <string>] [-p <string>] [-o <string>] [-y] [--json]
  [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -d, --outputdir=outputdir                                                         [default: ~/.commerc
                                                                                    e/force-app] Directory to output the
                                                                                    conversion

  -f, --definitionfile=definitionfile                                               (required) config file

  -n, --store-name=store-name                                                       (required) [default: 1commerce]
                                                                                    Store name

  -o, --type=b2c|b2b                                                                The type of store you want to create

  -p, --sourcepath=sourcepath                                                       Files to convert

  -y, --prompt                                                                      If there is a file difference
                                                                                    detected, prompt before overwriting
                                                                                    file

  --json                                                                            format output as json

  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for
                                                                                    this command invocation

EXAMPLE
  sfdx commerce:examples:convert -f store-scratch-def.json

See code: src/commands/commerce/examples/convert.ts

sfdx commerce:extension:map [-r <string>] [-n <string>] [-i <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Maps an extension to a specific webstore

USAGE
  $ sfdx commerce:extension:map [-r <string>] [-n <string>] [-i <string>] [-u <string>] [--apiversion <string>] [--json]
   [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -i, --store-id=store-id                                                           Optional webstore ID flag

  -n, --store-name=store-name                                                       The name of the webstore to map the
                                                                                    extension

  -r, --registered-extension-name=registered-extension-name                         Unique name for extension

  -u, --targetusername=targetusername                                               username or alias for the target
                                                                                    org; overrides default target org

  --apiversion=apiversion                                                           override the api version used for
                                                                                    api requests made by this command

  --json                                                                            format output as json

  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for
                                                                                    this command invocation

EXAMPLES
  sfdx commerce:extension:map --registered-extension-name test-extension-name --store-name test-store-name
  sfdx commerce:extension:map --registered-extension-name test-extension-name --store-id test-store-id

See code: src/commands/commerce/extension/map.ts

sfdx commerce:extension:points:list [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Lists all EPN values

USAGE
  $ sfdx commerce:extension:points:list [-u <string>] [--apiversion <string>] [--json] [--loglevel
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -u, --targetusername=targetusername                                               username or alias for the target
                                                                                    org; overrides default target org

  --apiversion=apiversion                                                           override the api version used for
                                                                                    api requests made by this command

  --json                                                                            format output as json

  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for
                                                                                    this command invocation

EXAMPLE
  sfdx commerce:extension:getEPN

See code: src/commands/commerce/extension/points/list.ts

sfdx commerce:extension:register [-r <string>] [-e <string>] [-a <string>] [-m <string>] [-d <string>] [--icon-uri <string>] [--is-application] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Register an extension with one command

USAGE
  $ sfdx commerce:extension:register [-r <string>] [-e <string>] [-a <string>] [-m <string>] [-d <string>] [--icon-uri
  <string>] [--is-application] [-u <string>] [--apiversion <string>] [--json] [--loglevel
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -a, --apex-class-name=apex-class-name
      Name of the Apex class that needs to be extended

  -d, --description=description
      A brief description of the extension

  -e, --extension-point-name=extension-point-name
      Means of identifying entry points within the domain code that are capable of being extended by partners.Takes the
      form domain_sub-domain_interface. E.g: checkout_summary_computeTax

  -m, --apex-namespace=apex-namespace
      Optional namespace for apex class

  -r, --registered-extension-name=registered-extension-name
      Unique name for extension

  -u, --targetusername=targetusername
      username or alias for the target org; overrides default target org

  --apiversion=apiversion
      override the api version used for api requests made by this command

  --icon-uri=icon-uri
      Where to find the icon representing the extension in URI form.

  --is-application
      A boolean that indicates if the extension provider is contained within a managed package

  --json
      format output as json

  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)
      [default: warn] logging level for this command invocation

EXAMPLE
  sfdx commerce:extension:register --registered-extension-name test-extension-name --extension-point-name test-epn
  --apex-class-name test-apex-class

See code: src/commands/commerce/extension/register.ts

sfdx commerce:extension:unmap [-r <string>] [-n <string>] [-i <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Unmaps an extension from a store

USAGE
  $ sfdx commerce:extension:unmap [-r <string>] [-n <string>] [-i <string>] [-u <string>] [--apiversion <string>]
  [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -i, --store-id=store-id                                                           Optional webstore ID flag

  -n, --store-name=store-name                                                       The name of the webstore to map the
                                                                                    extension

  -r, --registered-extension-name=registered-extension-name                         Unique name for extension

  -u, --targetusername=targetusername                                               username or alias for the target
                                                                                    org; overrides default target org

  --apiversion=apiversion                                                           override the api version used for
                                                                                    api requests made by this command

  --json                                                                            format output as json

  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for
                                                                                    this command invocation

EXAMPLES
  sfdx commerce:extension:unmap --registered-extension-name test-extension-name --store-name test-store-name
  sfdx commerce:extension:unmap --registered-extension-name test-extension-name --store-id test-store-id

See code: src/commands/commerce/extension/unmap.ts

sfdx commerce:files:copy [name=value...] --filestocopy <array> --dirstocopy <array> --copysourcepath <string> [-y] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Copy files from source to destination folder ~/.commerce

USAGE
  $ sfdx commerce:files:copy [name=value...] --filestocopy <array> --dirstocopy <array> --copysourcepath <string> [-y]
  [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -y, --prompt                                                                      If there is a file difference
                                                                                    detected, prompt before overwriting
                                                                                    file

  --copysourcepath=copysourcepath                                                   (required) Base path for files and
                                                                                    directories to be copied from

  --dirstocopy=dirstocopy                                                           (required) Array of directories
                                                                                    (including their contents) located
                                                                                    in source directory to copy

  --filestocopy=filestocopy                                                         (required) Array of individual files
                                                                                    to copy located directly in source
                                                                                    directory

  --json                                                                            format output as json

  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for
                                                                                    this command invocation

EXAMPLES
  sfdx commerce:files:copy -y --copySourcePath "~/myexamplefilesdirectory" --filestocopy "file1.txt,file2.txt"
  --dirstocopy "dir1,dir2,dir3"
  sfdx commerce:files:copy --prompt --copySourcePath "~/myexamplefilesdirectory" --filestocopy "file1.txt,file2.txt"
  --dirstocopy "dir1,dir2,dir3"
  sfdx commerce:files:copy --copySourcePath "~/myexamplefilesdirectory" --filestocopy "file1.txt,file2.txt" --dirstocopy
   "dir1,dir2,dir3"

See code: src/commands/commerce/files/copy.ts

sfdx commerce:ordermanagement:quickstart:setup [-y] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Set up order management

USAGE
  $ sfdx commerce:ordermanagement:quickstart:setup [-y] [-u <string>] [--apiversion <string>] [--json] [--loglevel
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -u, --targetusername=targetusername                                               username or alias for the target
                                                                                    org; overrides default target org

  -y, --prompt                                                                      If there is a file difference
                                                                                    detected, prompt before overwriting
                                                                                    file

  --apiversion=apiversion                                                           override the api version used for
                                                                                    api requests made by this command

  --json                                                                            format output as json

  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for
                                                                                    this command invocation

EXAMPLE
  sfdx commerce:ordermanagement:quickstart:setup

See code: src/commands/commerce/ordermanagement/quickstart/setup.ts

sfdx commerce:payments:quickstart:setup -n <string> [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Set up a new Payment Gateway

USAGE
  $ sfdx commerce:payments:quickstart:setup -n <string> [-p <string>] [-u <string>] [--apiversion <string>] [--json]
  [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -n, --store-name=store-name                                                       (required) [default: 1commerce] name
                                                                                    of the site to create

  -p, --payment-adapter=payment-adapter                                             [default: Stripe] Payment Adapter

  -u, --targetusername=targetusername                                               username or alias for the target
                                                                                    org; overrides default target org

  --apiversion=apiversion                                                           override the api version used for
                                                                                    api requests made by this command

  --json                                                                            format output as json

  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for
                                                                                    this command invocation

EXAMPLE
  sfdx commerce:payments:quickstart:setup -p Stripe -n 1commerce

See code: src/commands/commerce/payments/quickstart/setup.ts

sfdx commerce:products:import -n <string> [-c <string>] [-f <filepath>] [-o <string>] [-y] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Prepare product data files for import

USAGE
  $ sfdx commerce:products:import -n <string> [-c <string>] [-f <filepath>] [-o <string>] [-y] [-v <string>] [-u
  <string>] [--apiversion <string>] [--json] [--loglevel
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -c, --products-file-csv=products-file-csv                                         [default: ~/.commerc
                                                                                    e/examples/csv/Alpine-small.csv] The
                                                                                    csv file containing products to
                                                                                    import.  Pass in empty value to do
                                                                                    product-less import

  -f, --definitionfile=definitionfile                                               [default: ~/.commerc
                                                                                    e/config/store-scratch-def.json]
                                                                                    config file

  -n, --store-name=store-name                                                       (required) [default: 1commerce] name
                                                                                    of the site to create

  -o, --type=b2c|b2b                                                                [default: b2c] The type of store you
                                                                                    want to create

  -u, --targetusername=targetusername                                               username or alias for the target
                                                                                    org; overrides default target org

  -v, --targetdevhubusername=targetdevhubusername                                   username or alias for the dev hub
                                                                                    org; overrides default dev hub org

  -y, --prompt                                                                      If there is a file difference
                                                                                    detected, prompt before overwriting
                                                                                    file

  --apiversion=apiversion                                                           override the api version used for
                                                                                    api requests made by this command

  --json                                                                            format output as json

  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for
                                                                                    this command invocation

EXAMPLE
  sfdx commerce:products:import --store-name test-store

See code: src/commands/commerce/products/import.ts

sfdx commerce:scratchorg:create [-u <string>] [-a <string>] [-t <string>] [-w <number>] [-y] [-d <number>] [-v <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Create a scratch org

USAGE
  $ sfdx commerce:scratchorg:create [-u <string>] [-a <string>] [-t <string>] [-w <number>] [-y] [-d <number>] [-v
  <string>] [--apiversion <string>] [--json] [--loglevel
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -a, --alias=alias                                                                 Alias name for this scratch org

  -d, --duration=duration                                                           [default: 30] Duration of the
                                                                                    scratch org (in days)

  -t, --type=type                                                                   [default: both] b2b, b2c or both

  -u, --username=username                                                           username of the admin to associate
                                                                                    with the scratch org.

  -v, --targetdevhubusername=targetdevhubusername                                   username or alias for the dev hub
                                                                                    org; overrides default dev hub org

  -w, --wait=wait                                                                   [default: 15] The streaming client
                                                                                    socket timeout (in minutes)

  -y, --prompt                                                                      If there is a file difference
                                                                                    detected, prompt before overwriting
                                                                                    file

  --apiversion=apiversion                                                           override the api version used for
                                                                                    api requests made by this command

  --json                                                                            format output as json

  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for
                                                                                    this command invocation

EXAMPLE
  sfdx commerce:scratchorg:create --username [email protected] --targetdevhubusername [email protected]

See code: src/commands/commerce/scratchorg/create.ts

sfdx commerce:search:start [-n <string> | -i <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Start search indexing for a given webstore

USAGE
  $ sfdx commerce:search:start [-n <string> | -i <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -i, --store-id=store-id                                                           ID of webstore to index
  -n, --store-name=store-name                                                       name of webstore to index

  -u, --targetusername=targetusername                                               username or alias for the target
                                                                                    org; overrides default target org

  --apiversion=apiversion                                                           override the api version used for
                                                                                    api requests made by this command

  --json                                                                            format output as json

  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for
                                                                                    this command invocation

EXAMPLE
  sfdx commerce:store:search:start -n storeName
          // Finds a store and indexes it

See code: src/commands/commerce/search/start.ts

sfdx commerce:store:create [name=value...] -n <string> [-t <string>] [-f <filepath>] [-o <string>] [-b <string>] [-y] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Comprehensive create and set up a store. This will create your community/store push store sources, create buyer user, import products, create search index.

USAGE
  $ sfdx commerce:store:create [name=value...] -n <string> [-t <string>] [-f <filepath>] [-o <string>] [-b <string>]
  [-y] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -b, --buyer-username=buyer-username
      [default: [email protected]] buyer's username

  -f, --definitionfile=definitionfile
      The store config file. By default it will be either of ~/.commerce/config/b2c-store-scratch-def or
      ~/.commerce/config/b2b-store-scratch-def based on store type. Default store type is b2c.]

  -n, --store-name=store-name
      (required) [default: 1commerce] name of the site to create

  -o, --type=b2c|b2b
      [default: b2c] The type of store you want to create

  -t, --templatename=templatename
      Template to use to create a site. If not specified, the template is retrieved from the store config file based on
      the store type (b2b or b2c).

  -u, --targetusername=targetusername
      username or alias for the target org; overrides default target org

  -v, --targetdevhubusername=targetdevhubusername
      username or alias for the dev hub org; overrides default dev hub org

  -y, --prompt
      If there is a file difference detected, prompt before overwriting file

  --apiversion=apiversion
      override the api version used for api requests made by this command

  --json
      format output as json

  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)
      [default: warn] logging level for this command invocation

EXAMPLE
  sfdx commerce:store:create --store-name test-store

See code: src/commands/commerce/store/create.ts

sfdx commerce:store:display -n <string> [-b <string>] [-p <string>] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Display buyer info

USAGE
  $ sfdx commerce:store:display -n <string> [-b <string>] [-p <string>] [-v <string>] [-u <string>] [--apiversion
  <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -b, --buyer-username=buyer-username                                               [default: [email protected]]
                                                                                    buyer's username

  -n, --store-name=store-name                                                       (required) [default: 1commerce] name
                                                                                    of the site to create

  -p, --urlpathprefix=urlpathprefix                                                 required if different from
                                                                                    store-name URL to append to the
                                                                                    domain created when Experiences was
                                                                                    enabled for this org

  -u, --targetusername=targetusername                                               username or alias for the target
                                                                                    org; overrides default target org

  -v, --targetdevhubusername=targetdevhubusername                                   username or alias for the dev hub
                                                                                    org; overrides default dev hub org

  --apiversion=apiversion                                                           override the api version used for
                                                                                    api requests made by this command

  --json                                                                            format output as json

  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for
                                                                                    this command invocation

EXAMPLE
  sfdx commerce:store:display --store-name test-store

See code: src/commands/commerce/store/display.ts

sfdx commerce:store:open -n <string> [--all] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Open store(s)

USAGE
  $ sfdx commerce:store:open -n <string> [--all] [-v <string>] [-u <string>] [--apiversion <string>] [--json]
  [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -n, --store-name=store-name                                                       (required) [default: 1commerce] name
                                                                                    of the site to create

  -u, --targetusername=targetusername                                               username or alias for the target
                                                                                    org; overrides default target org

  -v, --targetdevhubusername=targetdevhubusername                                   username or alias for the dev hub
                                                                                    org; overrides default dev hub org

  --all                                                                             View All stores using sfdx
                                                                                    force:org:open
                                                                                    _ui/networks/setup/SetupNetworksPage
                                                                                    page

  --apiversion=apiversion                                                           override the api version used for
                                                                                    api requests made by this command

  --json                                                                            format output as json

  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for
                                                                                    this command invocation

EXAMPLES
  sfdx commerce:store:open --store-name test-store
  sfdx commerce:store:open --all

See code: src/commands/commerce/store/open.ts

sfdx commerce:store:quickstart:create [name=value...] -n <string> [-t <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Use this command to just create a community. It will use sfdx force:community:create until a community is created or failed.

USAGE
  $ sfdx commerce:store:quickstart:create [name=value...] -n <string> [-t <string>] [-u <string>] [--apiversion
  <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -n, --store-name=store-name
      (required) [default: 1commerce] name of the site to create

  -t, --templatename=templatename
      [default: b2c-lite-storefront] Template to use to create a site. If not specified, the template is retrieved from
      the store config file based on the store type (b2b or b2c).

  -u, --targetusername=targetusername
      username or alias for the target org; overrides default target org

  --apiversion=apiversion
      override the api version used for api requests made by this command

  --json
      format output as json

  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)
      [default: warn] logging level for this command invocation

EXAMPLE
  sfdx commerce:store:quickstart:create --templatename 'b2c-lite-storefront'

See code: src/commands/commerce/store/quickstart/create.ts

sfdx commerce:store:quickstart:setup [name=value...] -n <string> [-f <filepath>] [-y] [-t <string>] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Set up a store

USAGE
  $ sfdx commerce:store:quickstart:setup [name=value...] -n <string> [-f <filepath>] [-y] [-t <string>] [-v <string>]
  [-u <string>] [--apiversion <string>] [--json] [--loglevel
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -f, --definitionfile=definitionfile
      [default: ~/.commerce/config/store-scratch-def.json] config file

  -n, --store-name=store-name
      (required) [default: 1commerce] name of the site to create

  -t, --templatename=templatename
      [default: b2c-lite-storefront] Template to use to create a site. If not specified, the template is retrieved from
      the store config file based on the store type (b2b or b2c).

  -u, --targetusername=targetusername
      username or alias for the target org; overrides default target org

  -v, --targetdevhubusername=targetdevhubusername
      username or alias for the dev hub org; overrides default dev hub org

  -y, --prompt
      If there is a file difference detected, prompt before overwriting file

  --apiversion=apiversion
      override the api version used for api requests made by this command

  --json
      format output as json

  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)
      [default: warn] logging level for this command invocation

EXAMPLE
  sfdx commerce:store:quickstart:setup --definitionfile store-scratch-def.json

See code: src/commands/commerce/store/quickstart/setup.ts

Debugging your plugin

Please see our CONTRIBUTING guide.

commerce-on-lightning's People

Contributors

alexey-morozov-salesforce avatar anisha-raju avatar ashrelateiq avatar avahitesh-github avatar cw112233 avatar dan-zak avatar dependabot[bot] avatar dineshb2bsfdc avatar gkhunger-sf avatar graceyanyee-leung avatar gurpreetsainisalesforce avatar hdogan-sf avatar imadityasrivastav avatar jarndt-ltm avatar joeluong-sfcc avatar kalyanboya avatar ksiemer avatar mshanemc avatar p-biyani avatar saikrishna9541 avatar sandragolden avatar snilakandan13 avatar svc-cli-bot avatar syunyama avatar szamwar avatar tarcang avatar tmjkeeney avatar trinasfdx avatar unandyala avatar xanthousphoenix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

commerce-on-lightning's Issues

commerce:store:create command got error "The value for urlPathPrefix in ExperienceBundle isn't valid. Check the value and try again."

When I ran command below,

DEBUG=* sfdx commerce:store:create -n samplestore -o b2c -u sampleScratch04 -v DevHub -b [email protected]

I got error like below

==OMIT==

2022-12-22T10:54:36.498Z sfdx                         0: /usr/local/lib/sfdx/bin/node
2022-12-22T10:54:36.498Z sfdx                         1: /usr/local/lib/sfdx/bin/run
2022-12-22T10:54:36.498Z sfdx                         2: force:mdapi:deploy
2022-12-22T10:54:36.499Z sfdx                         3: -u
2022-12-22T10:54:36.499Z sfdx                         4: [email protected]
2022-12-22T10:54:36.499Z sfdx                         5: -g
2022-12-22T10:54:36.499Z sfdx                         6: -f
2022-12-22T10:54:36.499Z sfdx                         7: /XXXX/.commerce/devhubs/XXXX/sample04AT1commerceDOTcom/samplestore/experience-bundle-package/samplestore1ToDeploy.zip
2022-12-22T10:54:36.499Z sfdx                         8: --wait
2022-12-22T10:54:36.499Z sfdx                         9: 60
2022-12-22T10:54:36.499Z sfdx                        10: --verbose
2022-12-22T10:54:36.499Z sfdx                        11: --singlepackage
2022-12-22T10:54:36.499Z sfdx                        12: --apiversion=56.0
2022-12-22T10:54:36.499Z sfdx                        13: --json

==OMIT==

 "componentFailures": [
        {
          "changed": false,
          "componentType": "ExperienceBundle",
          "created": false,
          "createdDate": "2022-12-22T11:44:24.000Z",
          "deleted": false,
          "fileName": "experiences/samplestore1",
          "fullName": "samplestore1",
          "problem": "The value for urlPathPrefix in ExperienceBundle isn't valid. Check the value and try again.",
          "problemType": "Error",
          "success": false
        }
      ],
      "componentSuccesses": [

==OMIT==

ERROR running commerce:store:create:  StoreQuickstartSetup failed

==OMIT==

Debugging.

The doc mentions we have 'launch.json' under .vscode. But its not there in the repository.

Is there more documentation on debugging ?

LWR Order Confirmation Email invocable method missing

I'm unable to deploy the LWR Order Confirmation Email flow due to: Error parsing file: 'generateOrderSummaryUrl' is not a valid value for the enum 'InvocableActionType'. I'm guessing there was just a class missed in the branch that was merged.

examples/b2c/checkout/lwr-order-confirmation-email-flow

    <actionCalls>
        <description>Generate Order Summary Url</description>
        <name>Generate_Order_Summary_Url</name>
        <label>Generate Order Summary Url</label>
        <locationX>50</locationX>
        <locationY>1118</locationY>
        <actionName>generateOrderSummaryUrl</actionName>
        <actionType>generateOrderSummaryUrl</actionType>
        <connector>
            <targetReference>setOrderItemsHeaderLabels</targetReference>
        </connector>
        <flowTransactionModel>CurrentTransaction</flowTransactionModel>
        <inputParameters>
            <name>orderSummaryRefNumber</name>
            <value>
                <elementReference>$Record.OrderSummary.OrderNumber</elementReference>
            </value>
        </inputParameters>
        <inputParameters>
            <name>webStoreId</name>
            <value>
                <elementReference>$Record.OrderSummary.SalesStore.Id</elementReference>
            </value>
        </inputParameters>
        <storeOutputAutomatically>true</storeOutputAutomatically>
    </actionCalls>

B2BAuraTemplateEnabled in b2b scratch org setting is invalid

When I ran commando below:

sfdx commerce:scratchorg:create -t b2b -a sampleB2BScratch -u "[email protected]" -v DevHub -w 15

I got error

ERROR running commerce:scratchorg:create:  {
    "status": 1,
    "name": "INVALID_INPUT",
    "message": "B2BAuraTemplateEnabled は有効な機能値ではありません。",
    "exitCode": 1,
    "commandName": "OrgCreateCommand",
    "stack": "INVALID_INPUT: B2BAuraTemplateEnabled は有効な機能値ではありません。\n    at HttpApi.getError (/usr/local/lib/sfdx/node_modules/jsforce/lib/http-api.js:250:13)\n    at /usr/local/lib/sfdx/node_modules/jsforce/lib/http-api.js:95:22\n    at tryCallOne (/usr/local/lib/sfdx/node_modules/promise/lib/core.js:37:12)\n    at /usr/local/lib/sfdx/node_modules/promise/lib/core.js:123:15\n    at flush (/usr/local/lib/sfdx/node_modules/asap/raw.js:50:29)\n    at processTicksAndRejections (internal/process/task_queues.js:77:11)\nOuter stack:\n    at Function.wrap (/usr/local/lib/sfdx/node_modules/@salesforce/core/lib/sfdxError.js:171:27)\n    at OrgCreateCommand.catch (/usr/local/lib/sfdx/node_modules/@salesforce/command/lib/sfdxCommand.js:248:67)\n    at processTicksAndRejections (internal/process/task_queues.js:95:5)\n    at OrgCreateCommand._run (/usr/local/lib/sfdx/node_modules/@salesforce/command/lib/sfdxCommand.js:85:13)\n    at Config.runCommand (/usr/local/lib/sfdx/node_modules/@oclif/config/lib/config.js:173:24)\n    at SfdxMain.run (/usr/local/lib/sfdx/node_modules/@oclif/command/lib/main.js:27:9)\n    at SfdxMain._run (/usr/local/lib/sfdx/node_modules/@oclif/command/lib/command.js:43:20)\n    at Object.run (/usr/local/lib/sfdx/dist/cli.js:162:47)",
    "warnings": [],
    "command": "sfdx force:org:create --targetdevhubusername=\"*********\" --definitionfile=/Users/*********/.commerce/config/b2b-project-scratch-def.json --setalias=\"sampleB2BScratch\" --durationdays=30 --wait=15 username=\"[email protected]\" --setdefaultusername --json --apiversion=56.0"
}

commerce:store:create fails with ERROR running StoreQuickstartSetup:

Creating a new store, this may take up to 10 minutes until it's available.
Store name: testStore
Org username: [email protected]
Use this command to just create a community. It will use sfdx force:community:create until a community is created or failed.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Creating Community...... Done
{
"message": "",
"status": 0,
"result": {
"message": "Your Site is being created.",
"name": "testStore",
"action": "We’re creating your site. Run sfdx force:org:open -p _ui/networks/setup/SetupNetworksPage to view a list of your sites, and to confirm when this site is ready."
},
"command": "sfdx force:community:create -u "[email protected]" --name "testStore" --templatename "b2c-lite-storefront" --urlpathprefix "testStore" --description "Store testStore created by Quick Start script." --json --apiversion=57.0",
"urlpathprefix": "testStore"
}
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Creating a new store, this may take up to 10 minutes until it's available.
Store name: testStore
Org username: [email protected]
Use this command to just create a community. It will use sfdx force:community:create until a community is created or failed.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Creating Community...... Done
{
"message": "",
"status": 0,
"result": {
"message": "Your Site is being created.",
"name": "testStore",
"action": "We’re creating your site. Run sfdx force:org:open -p _ui/networks/setup/SetupNetworksPage to view a list of your sites, and to confirm when this site is ready."
},
"command": "sfdx force:community:create -u "[email protected]" --name "testStore" --templatename "b2c-lite-storefront" --urlpathprefix "testStore" --description "Store testStore created by Quick Start script." --json --apiversion=57.0",
"urlpathprefix": "testStore"
}
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Creating a new store, this may take up to 10 minutes until it's available.
Store name: testStore
Org username: [email protected]
Use this command to just create a community. It will use sfdx force:community:create until a community is created or failed.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Creating Community...... Done
{
"message": "",
"status": 0,
"result": {
"message": "Your Site is being created.",
"name": "testStore",
"action": "We’re creating your site. Run sfdx force:org:open -p _ui/networks/setup/SetupNetworksPage to view a list of your sites, and to confirm when this site is ready."
},
"command": "sfdx force:community:create -u "[email protected]" --name "testStore" --templatename "b2c-lite-storefront" --urlpathprefix "testStore" --description "Store testStore created by Quick Start script." --json --apiversion=57.0",
"urlpathprefix": "testStore"
}
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Creating a new store, this may take up to 10 minutes until it's available.
Store name: testStore
Org username: [email protected]
Use this command to just create a community. It will use sfdx force:community:create until a community is created or failed.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Creating Community...... Done
{
"message": "",
"status": 0,
"result": {
"message": "Your Site is being created.",
"name": "testStore",
"action": "We’re creating your site. Run sfdx force:org:open -p _ui/networks/setup/SetupNetworksPage to view a list of your sites, and to confirm when this site is ready."
},
"command": "sfdx force:community:create -u "[email protected]" --name "testStore" --templatename "b2c-lite-storefront" --urlpathprefix "testStore" --description "Store testStore created by Quick Start script." --json --apiversion=57.0",
"urlpathprefix": "testStore"
}
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Waiting for community to become available... done with storeid: 0ZE01000000GqiqGAC
Completed Step 6
Community is now available
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Converting 3 metadata components... done
STATE FULL NAME TYPE PROJECT PATH
───── ───────────────────────────── ─────────────── ───────────────────────────────────────────────────────────────────────────
Add SalesforceAdapter ApexClass force-app/main/default/classes/SalesforceAdapter.cls-meta.xml
Add SalesforceAdapter ApexClass force-app/main/default/classes/SalesforceAdapter.cls
Add SalesforceValidationException ApexClass force-app/main/default/classes/SalesforceValidationException.cls-meta.xml
Add SalesforceValidationException ApexClass force-app/main/default/classes/SalesforceValidationException.cls
Add Salesforce NamedCredential force-app/main/default/namedCredentials/Salesforce.namedCredential-meta.xml
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Converting 17 metadata components... done
STATE FULL NAME TYPE PROJECT PATH
───── ───────────────────────────── ───────────────── ───────────────────────────────────────────────────────────────────────────────────────────
Add B2CCheckInventorySample ApexClass force-app/main/default/classes/B2CCheckInventorySample.cls-meta.xml
Add B2CCheckInventorySample ApexClass force-app/main/default/classes/B2CCheckInventorySample.cls
Add B2CCheckInventorySampleTest ApexClass force-app/main/default/classes/B2CCheckInventorySampleTest.cls-meta.xml
Add B2CCheckInventorySampleTest ApexClass force-app/main/default/classes/B2CCheckInventorySampleTest.cls
Add B2CDeliverySample ApexClass force-app/main/default/classes/B2CDeliverySample.cls-meta.xml
Add B2CDeliverySample ApexClass force-app/main/default/classes/B2CDeliverySample.cls
Add B2CDeliverySampleTest ApexClass force-app/main/default/classes/B2CDeliverySampleTest.cls-meta.xml
Add B2CDeliverySampleTest ApexClass force-app/main/default/classes/B2CDeliverySampleTest.cls
Add B2CPricingSample ApexClass force-app/main/default/classes/B2CPricingSample.cls-meta.xml
Add B2CPricingSample ApexClass force-app/main/default/classes/B2CPricingSample.cls
Add B2CPricingSampleTest ApexClass force-app/main/default/classes/B2CPricingSampleTest.cls-meta.xml
Add B2CPricingSampleTest ApexClass force-app/main/default/classes/B2CPricingSampleTest.cls
Add B2CTaxSample ApexClass force-app/main/default/classes/B2CTaxSample.cls-meta.xml
Add B2CTaxSample ApexClass force-app/main/default/classes/B2CTaxSample.cls
Add B2CTaxSampleTest ApexClass force-app/main/default/classes/B2CTaxSampleTest.cls-meta.xml
Add B2CTaxSampleTest ApexClass force-app/main/default/classes/B2CTaxSampleTest.cls
Add Heroku_test_for_B2B_lightning RemoteSiteSetting force-app/main/default/remoteSiteSettings/Heroku_test_for_B2B_lightning.remoteSite-meta.xml
Add GetDeliveryRatesResource StaticResource force-app/main/default/staticresources/GetDeliveryRatesResource.resource-meta.xml
Add GetDeliveryRatesResource StaticResource force-app/main/default/staticresources/GetDeliveryRatesResource.bin
Add GetInventoryResource StaticResource force-app/main/default/staticresources/GetInventoryResource.resource-meta.xml
Add GetInventoryResource StaticResource force-app/main/default/staticresources/GetInventoryResource.bin
Add GetSalesPricesResource StaticResource force-app/main/default/staticresources/GetSalesPricesResource.resource-meta.xml
Add GetSalesPricesResource StaticResource force-app/main/default/staticresources/GetSalesPricesResource.bin
Add GetTaxesResource StaticResource force-app/main/default/staticresources/GetTaxesResource.resource-meta.xml
Add GetTaxesResource StaticResource force-app/main/default/staticresources/GetTaxesResource.bin
Add de Translations force-app/main/default/translations/de.translation-meta.xml
Add en_US Translations force-app/main/default/translations/en_US.translation-meta.xml
Add ja Translations force-app/main/default/translations/ja.translation-meta.xml
Add CustomLabels CustomLabels force-app/main/default/labels/CustomLabels.labels-meta.xml
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Converting 4 metadata components... done
STATE FULL NAME TYPE PROJECT PATH
───── ──────────────────────────────────────────────── ───────────── ───────────────────────────────────────────────────────────────────────────────────────────
Add unfiled$public/B2B2C_Order_Confirmation_Email EmailTemplate force-app/main/default/email/unfiled$public/B2B2C_Order_Confirmation_Email.email-meta.xml
Add unfiled$public/B2B2C_Order_Confirmation_Email EmailTemplate force-app/main/default/email/unfiled$public/B2B2C_Order_Confirmation_Email.email
Add B2B2C_Order_Confirmation_Email_Notification_Flow Flow force-app/main/default/flows/B2B2C_Order_Confirmation_Email_Notification_Flow.flow-meta.xml
Add OrderSummary.OCE_Account_First_Name__c CustomField force-app/main/default/objects/OrderSummary/fields/OCE_Account_First_Name__c.field-meta.xml
Add OrderSummary.OCE_Account_Last_Name__c CustomField force-app/main/default/objects/OrderSummary/fields/OCE_Account_Last_Name__c.field-meta.xml
Add OrderSummary.OCE_Order_Items__c CustomField force-app/main/default/objects/OrderSummary/fields/OCE_Order_Items__c.field-meta.xml
Add OrderSummary.OCE_Order_Total__c CustomField force-app/main/default/objects/OrderSummary/fields/OCE_Order_Total__c.field-meta.xml
Add OrderSummary.OCE_Payment_Method__c CustomField force-app/main/default/objects/OrderSummary/fields/OCE_Payment_Method__c.field-meta.xml
Add OrderSummary.OCE_Shipping_Address__c CustomField force-app/main/default/objects/OrderSummary/fields/OCE_Shipping_Address__c.field-meta.xml
Add OrderSummary.OCE_Shipping_Method__c CustomField force-app/main/default/objects/OrderSummary/fields/OCE_Shipping_Method__c.field-meta.xml
Add OrderSummary Workflow force-app/main/default/workflows/OrderSummary.workflow-meta.xml
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Converting 1 metadata components... done
STATE FULL NAME TYPE PROJECT PATH
───── ────────────────────────────────── ─────── ───────────────────────────────────────────────────────────────────────────────────
Add Buyer_User_Profile_From_QuickStart Profile force-app/main/default/profiles/Buyer_User_Profile_From_QuickStart.profile-meta.xml
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Converting 3 metadata components... done
STATE FULL NAME TYPE PROJECT PATH
───── ──────────────────── ──────────── ────────────────────────────────────────────────────────────────────────────────────────
Add ElectronicMediaGroup CustomObject force-app/main/default/objects/ElectronicMediaGroup/ElectronicMediaGroup.object-meta.xml
Add ElectronicMediaGroup CustomObject force-app/main/default/objects/ElectronicMediaGroup
Add OrderDeliveryMethod CustomObject force-app/main/default/objects/OrderDeliveryMethod/OrderDeliveryMethod.object-meta.xml
Add OrderDeliveryMethod CustomObject force-app/main/default/objects/OrderDeliveryMethod
Add ProductCatalog CustomObject force-app/main/default/objects/ProductCatalog/ProductCatalog.object-meta.xml
Add ProductCatalog CustomObject force-app/main/default/objects/ProductCatalog
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Converting 5 metadata components... done
STATE FULL NAME TYPE PROJECT PATH
───── ────────────────────────────────────────────────────────────────────────── ──────────── ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Add Process_CommerceDiagnosticEvents Flow force-app/main/default/flows/Process_CommerceDiagnosticEvents.flow-meta.xml
Add CommerceDiagnosticCustomObject__c-Commerce Diagnostic Custom Object Layout Layout force-app/main/default/layouts/CommerceDiagnosticCustomObject__c-Commerce Diagnostic Custom Object Layout.layout-meta.xml
Add CommerceDiagnosticCustomObject__c.Context_Id_2__c CustomField force-app/main/default/objects/CommerceDiagnosticCustomObject__c/fields/Context_Id_2__c.field-meta.xml
Add CommerceDiagnosticCustomObject__c.Context_Id__c CustomField force-app/main/default/objects/CommerceDiagnosticCustomObject__c/fields/Context_Id__c.field-meta.xml
Add CommerceDiagnosticCustomObject__c.Context_Map__c CustomField force-app/main/default/objects/CommerceDiagnosticCustomObject__c/fields/Context_Map__c.field-meta.xml
Add CommerceDiagnosticCustomObject__c.Correlation_Id__c CustomField force-app/main/default/objects/CommerceDiagnosticCustomObject__c/fields/Correlation_Id__c.field-meta.xml
Add CommerceDiagnosticCustomObject__c.Count__c CustomField force-app/main/default/objects/CommerceDiagnosticCustomObject__c/fields/Count__c.field-meta.xml
Add CommerceDiagnosticCustomObject__c.Effective_Account_Id__c CustomField force-app/main/default/objects/CommerceDiagnosticCustomObject__c/fields/Effective_Account_Id__c.field-meta.xml
Add CommerceDiagnosticCustomObject__c.Error_Code__c CustomField force-app/main/default/objects/CommerceDiagnosticCustomObject__c/fields/Error_Code__c.field-meta.xml
Add CommerceDiagnosticCustomObject__c.Error_Message__c CustomField force-app/main/default/objects/CommerceDiagnosticCustomObject__c/fields/Error_Message__c.field-meta.xml
Add CommerceDiagnosticCustomObject__c.Event_Created_By__c CustomField force-app/main/default/objects/CommerceDiagnosticCustomObject__c/fields/Event_Created_By__c.field-meta.xml
Add CommerceDiagnosticCustomObject__c.Event_Created_Date__c CustomField force-app/main/default/objects/CommerceDiagnosticCustomObject__c/fields/Event_Created_Date__c.field-meta.xml
Add CommerceDiagnosticCustomObject__c.Is_Retry__c CustomField force-app/main/default/objects/CommerceDiagnosticCustomObject__c/fields/Is_Retry__c.field-meta.xml
Add CommerceDiagnosticCustomObject__c.Operation_Stage__c CustomField force-app/main/default/objects/CommerceDiagnosticCustomObject__c/fields/Operation_Stage__c.field-meta.xml
Add CommerceDiagnosticCustomObject__c.Operation_State__c CustomField force-app/main/default/objects/CommerceDiagnosticCustomObject__c/fields/Operation_State__c.field-meta.xml
Add CommerceDiagnosticCustomObject__c.Operation_Status__c CustomField force-app/main/default/objects/CommerceDiagnosticCustomObject__c/fields/Operation_Status__c.field-meta.xml
Add CommerceDiagnosticCustomObject__c.Operation_Time__c CustomField force-app/main/default/objects/CommerceDiagnosticCustomObject__c/fields/Operation_Time__c.field-meta.xml
Add CommerceDiagnosticCustomObject__c.Operation__c CustomField force-app/main/default/objects/CommerceDiagnosticCustomObject__c/fields/Operation__c.field-meta.xml
Add CommerceDiagnosticCustomObject__c.Service_Name__c CustomField force-app/main/default/objects/CommerceDiagnosticCustomObject__c/fields/Service_Name__c.field-meta.xml
Add CommerceDiagnosticCustomObject__c.User__c CustomField force-app/main/default/objects/CommerceDiagnosticCustomObject__c/fields/User__c.field-meta.xml
Add CommerceDiagnosticCustomObject__c.WebStore_Id__c CustomField force-app/main/default/objects/CommerceDiagnosticCustomObject__c/fields/WebStore_Id__c.field-meta.xml
Add CommerceDiagnosticCustomObject__c.CommerceDiagnosticEventFields ListView force-app/main/default/objects/CommerceDiagnosticCustomObject__c/listViews/CommerceDiagnosticEventFields.listView-meta.xml
Add CommerceDiagnosticCustomObject__c CustomObject force-app/main/default/objects/CommerceDiagnosticCustomObject__c/CommerceDiagnosticCustomObject__c.object-meta.xml
Add CommerceDiagnosticCustomObject__c CustomObject force-app/main/default/objects/CommerceDiagnosticCustomObject__c
Add Admin Profile force-app/main/default/profiles/Admin.profile-meta.xml
Add CommerceDiagnosticCustomObject__c CustomTab force-app/main/default/tabs/CommerceDiagnosticCustomObject__c.tab-meta.xml
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Converting 1 metadata components... done
STATE FULL NAME TYPE PROJECT PATH
───── ───────── ────────────── ────────────────────────────────────────────────────────────────────────
Add amazonaws CspTrustedSite force-app/main/default/cspTrustedSites/amazonaws.cspTrustedSite-meta.xml

› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
WARNING: This operation will modify all your local source tracking files. The operation can have unintended consequences on all the force:source commands. Are you sure you want to proceed (y/n)?: › Warning: sfdx-cli update available from 7.177.1 to 7.183.1.

Pushing store sources...... done
Setting up the store and creating the buyer user...
Buyer username: [email protected]
Buyer email: [email protected]
Buyer alias: buyer
Checking if B2B or B2C.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Store Type = "B2C"
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Using this to retrieve your store info:


testStore
CustomSite


testStore1
ExperienceBundle


testStore
Network


*
NavigationMenu

57.0

Retrieving the store metadata and extracting it from the zip file.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Retrieve ID: 09S01000005H0dnEAC
Retrieving metadata from [email protected]... done
Wrote retrieve zip to /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged.zip
Archive: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged.zip
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/sites/testStore.site
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/views/addressForm.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/routes/addressForm.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/views/addressList.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/routes/addressList.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/themes/b2CCommerce.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/brandingSets/b2CCommerce.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/views/cart.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/routes/cart.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/views/category.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/routes/category.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/views/checkPassword.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/routes/checkPassword.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/views/checkout.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/routes/checkout.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/views/error.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/routes/error.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/views/forgotPassword.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/routes/forgotPassword.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/views/home.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/routes/home.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/config/languages.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/views/login.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/routes/login.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/config/mainAppPage.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/views/myProfile.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/routes/myProfile.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/views/order.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/routes/order.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/views/orderSummaryDetails.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/routes/orderSummaryDetails.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/views/orderSummaryList.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/routes/orderSummaryList.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/views/product.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/routes/product.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/views/register.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/routes/register.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/views/search.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/routes/search.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/views/serviceNotAvailable.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/routes/serviceNotAvailable.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/config/testStore.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/views/tooManyRequests.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1/routes/tooManyRequests.json
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/experiences/testStore1.site-meta.xml
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/networks/testStore.network
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/navigationMenus/Default_My_Account_Menu.navigationMenu
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/navigationMenus/Default_User_Profile_Menu.navigationMenu
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/navigationMenus/SFDC_Default_Navigation_testStore.navigationMenu
inflating: /Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/unpackaged/package.xml
Completed Quickstart Step 1
Setting up your integrations
Registering and mapping integrations
Registering Apex class B2CCheckInventorySample (CHECK_INVENTORY_B2C) for Inventory integration.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Registering Apex class B2CDeliverySample (COMPUTE_SHIPPING_B2C) for Shipment integration.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Registering Apex class B2CTaxSample (COMPUTE_TAXES_B2C) for Tax integration.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Done registering and mapping integrations
Registering and mapping pricing integrations
Registering internal pricing (Price__B2B_STOREFRONT__StandardPricing) for Price integration.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
To register an external pricing integration, delete the internal pricing mapping and then add the external pricing mapping. See the code for details how.
Done Registering and mapping pricing integrations
Registering credit card payment integration.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Creating PaymentGatewayProvider record using ApexAdapterId=01p01000002FmGBAA0.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Creating PaymentGateway record using MerchantCredentialId=0XA01000000L06aGAC, PaymentGatewayProviderId=0cJ01000000Kyk9EAC.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Creating StoreIntegratedService using the testStore store and Integration=0b001000000KykbAAC (PaymentGatewayId)
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
You can view the results of the mapping in the Store Integrations page at /lightning/page/storeDetail?lightning__webStoreId=0ZE01000000GqiqGAC&storeDetail__selectedTab=store_integrations
Completed Quickstart Step 2
Updating members list, activating community and adding guest user.
Completed Quickstart Step 3
Importing products.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Starting import for WebStore ID: 0ZE01000000GqiqGAC to https://computing-force-7699-dev-ed.scratch.my.salesforce.com/services/data/v57.0/commerce/management/webstores/0ZE01000000GqiqGAC/product-import
Importing products.... Done importing products, got results:
{"message":"","status":0,"result":{"attributes":{"type":"ContentVersion","url":"/services/data/v57.0/sobjects/ContentVersion/06801000000ZeL0AAK"},"Id":"06801000000ZeL0AAK","ContentDocumentId":"06901000000ZeIjAAK"},"command":"sfdx shane:data:file:upload -f /Users/peter.knolle/.commerce/examples/csv/Alpine-small.csv -u "[email protected]" --json --apiversion=57.0"}
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Mapping Admin User to Role.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
User role 'CEO' already exists
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
{
"status": 0,
"result": {
"id": "00501000003AdXLAA0",
"success": true,
"errors": []
}
}
Completed Quickstart Step 4
Creating Buyer User with associated Contact and Account.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Making Account a Buyer Account
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Assigning Buyer Account to Buyer Group.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Add Contact Point Addresses to the Buyer Account.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Setting up Guest Browsing.
Starting Guest Buyer Access setup!
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Converting 1 metadata components... done
STATE FULL NAME TYPE PROJECT PATH
───── ───────────────── ─────── ─────────────────────────────────────────────────────────────────────────────────────
Add testStore Profile Profile testStore/sourceGuestProfile/main/default/profiles/testStore Profile.profile-meta.xml
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
*** Deploying with SOAP API v57.0 ***
Deploy ID: 0Af0100000jonf9CAA
DEPLOY PROGRESS | ████████████████████████████████████████ | 1/1 Components

=== Deployed Source

FULL NAME TYPE PROJECT PATH
───────────────── ─────── ─────────────────────────────────────────────────────────────────────────────────────
testStore Profile Profile testStore/sourceGuestProfile/main/default/profiles/testStore Profile.profile-meta.xml
Deploy Succeeded.
Make Site and Nav Menu Item Public
Enable Guest Browsing for WebStore and create Guest Buyer Profile.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
{
"status": 0,
"result": {
"id": "0ZE01000000GqiqGAC",
"success": true,
"errors": []
}
}
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Done! Guest Buyer Access is set up!
Creating the package to deploy, including the new flow.
adding: experiences/ (stored 0%)
adding: experiences/testStore1/ (stored 0%)
adding: experiences/testStore1/config/ (stored 0%)
adding: experiences/testStore1/config/languages.json (deflated 19%)
adding: experiences/testStore1/config/testStore.json (deflated 33%)
adding: experiences/testStore1/config/mainAppPage.json (deflated 63%)
adding: experiences/testStore1/brandingSets/ (stored 0%)
adding: experiences/testStore1/brandingSets/b2CCommerce.json (deflated 82%)
adding: experiences/testStore1/views/ (stored 0%)
adding: experiences/testStore1/views/error.json (deflated 64%)
adding: experiences/testStore1/views/cart.json (deflated 84%)
adding: experiences/testStore1/views/search.json (deflated 76%)
adding: experiences/testStore1/views/tooManyRequests.json (deflated 59%)
adding: experiences/testStore1/views/orderSummaryList.json (deflated 70%)
adding: experiences/testStore1/views/checkout.json (deflated 82%)
adding: experiences/testStore1/views/serviceNotAvailable.json (deflated 57%)
adding: experiences/testStore1/views/checkPassword.json (deflated 64%)
adding: experiences/testStore1/views/addressList.json (deflated 73%)
adding: experiences/testStore1/views/login.json (deflated 66%)
adding: experiences/testStore1/views/register.json (deflated 65%)
adding: experiences/testStore1/views/category.json (deflated 78%)
adding: experiences/testStore1/views/product.json (deflated 78%)
adding: experiences/testStore1/views/addressForm.json (deflated 67%)
adding: experiences/testStore1/views/orderSummaryDetails.json (deflated 78%)
adding: experiences/testStore1/views/home.json (deflated 74%)
adding: experiences/testStore1/views/forgotPassword.json (deflated 65%)
adding: experiences/testStore1/views/myProfile.json (deflated 76%)
adding: experiences/testStore1/views/order.json (deflated 60%)
adding: experiences/testStore1/themes/ (stored 0%)
adding: experiences/testStore1/themes/b2CCommerce.json (deflated 85%)
adding: experiences/testStore1/routes/ (stored 0%)
adding: experiences/testStore1/routes/error.json (deflated 33%)
adding: experiences/testStore1/routes/cart.json (deflated 31%)
adding: experiences/testStore1/routes/search.json (deflated 34%)
adding: experiences/testStore1/routes/tooManyRequests.json (deflated 37%)
adding: experiences/testStore1/routes/orderSummaryList.json (deflated 31%)
adding: experiences/testStore1/routes/checkout.json (deflated 33%)
adding: experiences/testStore1/routes/serviceNotAvailable.json (deflated 36%)
adding: experiences/testStore1/routes/checkPassword.json (deflated 33%)
adding: experiences/testStore1/routes/addressList.json (deflated 33%)
adding: experiences/testStore1/routes/login.json (deflated 32%)
adding: experiences/testStore1/routes/register.json (deflated 33%)
adding: experiences/testStore1/routes/category.json (deflated 32%)
adding: experiences/testStore1/routes/product.json (deflated 32%)
adding: experiences/testStore1/routes/addressForm.json (deflated 34%)
adding: experiences/testStore1/routes/orderSummaryDetails.json (deflated 33%)
adding: experiences/testStore1/routes/home.json (deflated 31%)
adding: experiences/testStore1/routes/forgotPassword.json (deflated 35%)
adding: experiences/testStore1/routes/myProfile.json (deflated 33%)
adding: experiences/testStore1/routes/order.json (deflated 31%)
adding: experiences/testStore1.site-meta.xml (deflated 29%)
adding: navigationMenus/ (stored 0%)
adding: navigationMenus/Default_My_Account_Menu.navigationMenu (deflated 68%)
adding: navigationMenus/Default_User_Profile_Menu.navigationMenu (deflated 61%)
adding: navigationMenus/SFDC_Default_Navigation_testStore.navigationMenu (deflated 49%)
adding: networks/ (stored 0%)
adding: networks/testStore.network (deflated 70%)
adding: package.xml (deflated 58%)
adding: sharingRules/ (stored 0%)
adding: sites/ (stored 0%)
adding: sites/testStore.site (deflated 63%)
Deploy the new zip including the flow, ignoring warnings, then clean-up.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
ERROR running StoreQuickstartSetup: {
"status": 1,
"result": {
"checkOnly": false,
"completedDate": "2023-03-17T13:30:29.000Z",
"createdBy": "00501000003AdXL",
"createdByName": "User User",
"createdDate": "2023-03-17T13:29:59.000Z",
"details": {
"componentFailures": [
{
"changed": false,
"componentType": "Network",
"created": false,
"createdDate": "2023-03-17T13:30:29.000Z",
"deleted": false,
"fileName": "networks/testStore.network",
"fullName": "testStore",
"problem": "operation is not allowed",
"problemType": "Error",
"success": false
}
],
"componentSuccesses": [
{
"changed": true,
"componentType": "CustomSite",
"created": false,
"createdDate": "2023-03-17T13:30:29.000Z",
"deleted": false,
"fileName": "sites/testStore.site",
"fullName": "testStore",
"id": "0DM01000000KzQeGAK",
"success": true
},
{
"changed": true,
"componentType": "ExperienceBundle",
"created": false,
"createdDate": "2023-03-17T13:30:29.000Z",
"deleted": false,
"fileName": "experiences/testStore1",
"fullName": "testStore1",
"id": "0DM01000000KzQfGAK",
"success": true
},
{
"changed": true,
"componentType": "",
"created": false,
"createdDate": "2023-03-17T13:30:29.000Z",
"deleted": false,
"fileName": "package.xml",
"fullName": "package.xml",
"success": true
},
{
"changed": false,
"componentType": "NavigationMenu",
"created": false,
"createdDate": "2023-03-17T13:30:29.000Z",
"deleted": false,
"fileName": "navigationMenus/Default_User_Profile_Menu.navigationMenu",
"fullName": "Default_User_Profile_Menu",
"id": "0Lm01000000KzPVCA0",
"success": true
},
{
"changed": false,
"componentType": "NavigationMenu",
"created": false,
"createdDate": "2023-03-17T13:30:29.000Z",
"deleted": false,
"fileName": "navigationMenus/SFDC_Default_Navigation_testStore.navigationMenu",
"fullName": "SFDC_Default_Navigation_testStore",
"id": "0Lm01000000KzPUCA0",
"success": true
},
{
"changed": false,
"componentType": "NavigationMenu",
"created": false,
"createdDate": "2023-03-17T13:30:29.000Z",
"deleted": false,
"fileName": "navigationMenus/Default_My_Account_Menu.navigationMenu",
"fullName": "Default_My_Account_Menu",
"id": "0Lm01000000KzPWCA0",
"success": true
}
],
"runTestResult": {
"numFailures": 0,
"numTestsRun": 0,
"totalTime": 0,
"codeCoverage": [],
"codeCoverageWarnings": [],
"failures": [],
"flowCoverage": [],
"flowCoverageWarnings": [],
"successes": []
}
},
"done": true,
"id": "0Af0100000joptCCAQ",
"ignoreWarnings": true,
"lastModifiedDate": "2023-03-17T13:30:29.000Z",
"numberComponentErrors": 1,
"numberComponentsDeployed": 5,
"numberComponentsTotal": 6,
"numberTestErrors": 0,
"numberTestsCompleted": 0,
"numberTestsTotal": 0,
"rollbackOnError": true,
"runTestsEnabled": false,
"startDate": "2023-03-17T13:30:15.000Z",
"status": "Failed",
"success": false
},
"command": "sfdx force:mdapi:deploy -u "[email protected]" -g -f "/Users/peter.knolle/.commerce/devhubs/peterDOTknolleATtrifecta.com/adminATcommerceDOTcom/testStore/experience-bundle-package/testStore1ToDeploy.zip" --wait 60 --verbose --singlepackage --apiversion=57.0 --json"
}
ERROR running commerce:store:create: StoreQuickstartSetup failed

Country and language setting of scratch org should be more explicit

There are some code depends on language like this.
In Japanese, "Buyer Group" gonna be "バイヤーグループ".

If scratch org have language setting other than English which depends on dev hub org, these kind of code does not work.
There might be other codes like (e.g. depending on currency setting).

So we should overwrite dev hub language setting and country setting.

Better documentation needed

In looking at the README file it is not clear what to do with this repo.

I ran sfdx commerce:store:create --store-name test-store since the description said "Comprehensive create and set up a store. ". However, I got the error ERROR running commerce:store:create: This command requires a username. Specify it with the -u parameter or with the "sfdx config:set defaultusername=<username>" command. which must be because I didn't run the command to create a scratch org first and/or because I didn't have a definition file set up, though I haven't modified this repo yet, so who knows????

The question is which one command or series of commands need to be run to start with nothing and then have a fully operational store, complete with products, users, and everything in a scratch org. That should be near the top of the README.

Can't run sfdx commerce:store:create -n TestStore

"status": 1,
    "result": [
        {
            "fullName": "Checkout_Main_Checkout",
            "type": "Flow",
            "state": "Failed",
            "error": "paymentMethodScreen (Screen Component) - We can't find an extension called \"c:paymentMethod\".",
            "problemType": "Error",
            "filePath": "/Users/mhg/.commerce/devhubs/.../Checkout_Main_Checkout.flow-meta.xml"
        },
        {
            "fullName": "Checkout_Main_with_Salesforce_Pricing_and_Promotions",
            "type": "Flow",
            "state": "Failed",
            "error": "paymentMethodScreen (Screen Component) - We can't find an extension called \"c:paymentMethod\".",
            "problemType": "Error",
            "filePath": "/Users/mhg/.commerce/devhubs/..../force-app/main/default/flows/Checkout_Main_with_Salesforce_Pricing_and_Promotions.flow-meta.xml"
        }
    ],

After deploying the component manually I got this error:

Store Type = "B2B"
Completed Quickstart Step 3
Importing products.
 ›   Warning: shane:data:file:upload is not a sfdx command.
Did you mean force:data:bulk:upsert? [y/n]: ERROR running ProductsImport:  Cannot read properties of undefined (reading 'json')
ERROR running StoreQuickstartSetup:  No Buyer Group Name - Product Import must have failed
ERROR running commerce:store:create:  StoreQuickstartSetup failed
Importing products.... done

Stripe Integration Issue

Steps followed :

  1. Named credentials named Stripe with API stripe URL. Named principal, Password authentication, and User name as publish key and password as secret key.
  2. b2c Stripe: all 3 classes are created as it is.
  3. create a payment gateway provider record by adding an adaptor class ID.
  4. create a payment gateway record by adding the above payment gateway provider ID and Named credentials ID in the merchant Id.
  5. app launcher > commerce > select our store > administration > link payment gateway record.
  6. in the exp site proceed with the checkout page.
  7. ERROR occurred.
  8. in the Payment Gateway log, 2 records were created. 1 - token (success), 2 - authorization (failed) RESPONSE: {
    "error": {
    "code": "secret_key_required",
    "doc_url": "https://stripe.com/docs/error-codes/secret-key-required",
    "message": "This API call cannot be made with a publishable API key. Please use a secret API key. You can find a list of your API keys at https://dashboard.stripe.com/account/apikeys.",
    "request_log_url": "https://dashboard.stripe.com/test/logs/req_bYVNL3w9kmdjru?t=1706093611",
    "type": "invalid_request_error"
    }
    }
  9. request :
    amount=146199&currency=USD&payment_method=XXXXXXXXXXXXXXXXXXXXXXXXXXX&confirm=true&confirmation_method=manual&capture_method=manual

commerce plugin throws error in sfdx-cli

Hi - we are a very small shop and was thrilled to find this plugin to speed our deployment of new stores into sandboxes.

I'm a bit of a noob but I've been struggling all day to get sfdx commerce:store:create to run (throws an error about users)

However, it would seem the root error is that the plugin itself is now causing general errors in sfdx. Screen shot attached.

Steps to repro:

  1. install sfdx cli using the package from salesforce (MacOS)
  2. sfdx plugins (no plugins installed) <- no errors
  3. sfdx plugins:install @salesforce/commerce <- throws some errors during install
  4. Any command after this references an error in sfdx-cli properties_1.CONFIG_DIR

I have completely removed all previous versions of sfdx, npm node.js, etc from my machine to no avail. Help!

Thank you!
Screen Shot 2021-07-09 at 3 19 00 PM

api versions are outdated in package templates

The versions used in quickstart config store templates have outdated API versions and the version as far as I can tell doesn't get overwrriten when using template to create the actual package.xml file. I believe version should be a part of the 'template' and get overriden with the value specified in devhub config.

"Sample Order Delivery Method" should have a product and a price entry

I got error below when I try to complete checkout.

===0MIT===
`CHECKOUT_CONFLICT`Required fields are missing: [PricebookEntryId, Product2Id]
common.exception.ApiException: Required fields are missing: [PricebookEntryId, Product2Id] 
at common.udd.object.ValidationException.remapToApiException(ValidationException.java:179)
at common.udd.object.RequiredFieldException.remapToApiException(RequiredFieldException.java:91)
===0MIT===

This was caused by missing PricebookEntryId, Product2Id in cartItem which should have delivery product.

B2BDeliverySample.cls Error

B2BDeliverySampl.cls>>populateCartDeliveryGroupMethodWithShippingOptions(Method)

When inserting a new CartDeliveryGroupMethod record

Errors:
Field does not exist: Carrier on CartDeliveryGroupMethod
Field does not exist: ClassOfService on CartDeliveryGroupMethod
Field does not exist: ProductId on CartDeliveryGroupMethod
Field does not exist: ReferenceNumber on CartDeliveryGroupMethod
Field does not exist: IsActive on CartDeliveryGroupMethod

are we supposed to create these fields(Custom) on CartDeliveryGroupMethod

The command 'sfdx commerce:search:start' is not working anymore

Hello,

The sfdx commerce:search:start command is not working anymore (hitting "not a sf command" error). It was useful for us in the context of our CI.

I have @salesforce/cli/2.36.8 version and I can't downgrade.

I also did not manage to find any updated version in the "sf" command list.

Is there any workaround (else than manually running the search index :) )

Regards,
JP

commerce:store:create missing what defaults are for arguments

Stripe payment deployment errorat commerce:payments:quickstart:setup

When I run commerce:payments:quickstart:setup, I got error below:

==OMIT==

ERROR running commerce:payments:quickstart:setup:  {
    "status": 1,
    "result": {
        "checkOnly": false,
        "completedDate": "2022-12-27T03:19:24.000Z",
        "createdBy": "0050l000006kixj",
        "createdByName": "User User",
        "createdDate": "2022-12-27T03:19:22.000Z",
        "details": {
            "componentFailures": [
                {
                    "changed": "false",
                    "componentType": "ApexClass",
                    "created": "false",
                    "createdDate": "2022-12-27T03:19:23.000Z",
                    "deleted": "false",
                    "fileName": "Stripe/classes/QueryUtils.cls",
                    "fullName": "QueryUtils",
                    "problem": "Not in package.xml",
                    "problemType": "Error",
                    "success": "false"
                },
                {
                    "changed": "false",
                    "columnNumber": "9",
                    "componentType": "ApexClass",
                    "created": "false",
                    "createdDate": "2022-12-27T03:19:24.000Z",
                    "deleted": "false",
                    "fileName": "Stripe/classes/StripeAdapter.cls",

==OMIT==

B2B Stripe Integration Error - Too many callouts exception

Hello,
I am having issues with the Stripe integration for my b2b site. I configured the payment gateway for stipe using the apex class(examples/b2b/checkout/payment-gateway-integration/Stripe/) and on the portal checkout flow when I click on submit payment button after entering the card details, seeing "too many callouts" exception. Please help me fix this issue.

Thanks in advance for your help.

Get "Failed" "The URL can only contain alaphanumeric characters when running commerce:store:create

I'm running the following:
`#!/bin/bash
orgAlias=${1}
userName=[email protected]

echo creating scratch org for $orgAlias
sfdx commerce:scratchorg:create --alias $orgAlias --username=$userName --wait=15 --apiversion=57.0

echo created scratch org

sfdx commerce:store:create --store-name test-store -u $orgAlias
$ ./setup.sh myScratch`

It creates the scratch org, but then gets into some error loop:

$ ./setup.sh myScratch
creating scratch org for myScratch
Using scratch org admin [email protected]
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Preparing resources (apex, profiles, email templates, etc.)
Creating a new scratch org, note that you can create maximum of 3 scratch orgs per day, so this may fail if you have more.
API version: 57.0
Devhub Username: [email protected]
Scratch Org Admin Username: [email protected]
This may take a few minutes...

/Users/peter.knolle/.commerce/config/both-project-scratch-def.json
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Creating a new scratch org... Org Creation Successful
Completed creating scratch org.
All done, you can proceed with creating a new store commerce:store:create
created scratch org
Creates a new store in the org in which the admin is '[email protected]'
Creates a buyer account with the specified buyer account username '[email protected]'
The template name is b2c-lite-storefront and the store name is test-store
All usernames must to be lower case.
Removing /Users/peter.knolle/.sfdx/[email protected] sfdx authentication file...
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Creating a new store, this may take up to 10 minutes until it's available.
Store name: test-store
Org username: [email protected]
Use this command to just create a community. It will use sfdx force:community:create until a community is created or failed.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Creating Community...... Failed
"The URL can only contain alphanumeric characters."
{
"urlpathprefix": "test-store"
}
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Creating a new store, this may take up to 10 minutes until it's available.
Store name: test-store
Org username: [email protected]
Use this command to just create a community. It will use sfdx force:community:create until a community is created or failed.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
Creating Community...... Failed
"The URL can only contain alphanumeric characters."

Getting "The requested resource does not exist" when using sfdx commerce:store:create --store-name teststore -u testCC

I'm having the below problem when running sfdx commerce:store:create --store-name teststore -u testCC

ERROR running StoreQuickstartSetup:  {
    "code": 1,
    "context": "Create",
    "commandName": "Create",
    "message": "The requested resource does not exist",
    "name": "NOT_FOUND",
    "status": 1,
    "stack": "NOT_FOUND: The requested resource does not exist\n    at HttpApi.getError (/opt/homebrew/lib/node_modules/@salesforce/cli/node_modules/jsforce/lib/http-api.js:252:12)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at async /opt/homebrew/lib/node_modules/@salesforce/cli/node_modules/jsforce/lib/http-api.js:122:23\n    at async Connection.create (/opt/homebrew/lib/node_modules/@salesforce/cli/node_modules/jsforce/lib/connection.js:796:133)\n    at async Create.run (/opt/homebrew/lib/node_modules/@salesforce/cli/node_modules/@salesforce/plugin-data/lib/commands/data/create/record.js:23:24)\n    at async Create._run (/opt/homebrew/lib/node_modules/@salesforce/cli/node_modules/@oclif/core/lib/command.js:117:22)\n    at async Config.runCommand (/opt/homebrew/lib/node_modules/@salesforce/cli/node_modules/@oclif/core/lib/config/config.js:314:25)\n    at async run (/opt/homebrew/lib/node_modules/@salesforce/cli/node_modules/@oclif/core/lib/main.js:89:16)",
    "exitCode": 1,
    "warnings": [
        "The \"-u\" flag has been deprecated. Use \"--target-org | -o\" instead.",
        "The \"--apiversion\" flag has been deprecated. Use \"--api-version\" instead."
    ],
    "command": "sfdx force:data:record:create -u \"[email protected]\" -s \"ShippingConfigurationSet\" -v \"TargetRecordId=0ZE8G0000008aRyWAI\" --json --apiversion=59.0"
}
ERROR running commerce:store:create:  StoreQuickstartSetup failed

Running in isolation the failed command responds with the same error.

I'm running this in my local environment over the develop branch.

Test Classes not Enough Code Coverage

Hello,

I'm not a full time developer and we just learned that we need to update the classes for the B2BSyncCheckInventory, B2BSyncPricing, and B2BSyncDelivery classes due to the decommission of the Heroku sample

I've located the updated code and things are working in sandbox, but I'm having trouble deploying to prod because the test classes do not have enough code coverage. Can you make any recommendations as to what I can add to the test classes for each to get more coverage?

Thank you!

sfdx commerce:products:import fails with ENOENT file not found, yet running sfdx shane:data:file:upload on the exact same file does work.

sfdx commerce:products:import --products-file-csv=./config/NorthernTrail.csv --store-name=D2C --type=b2c -u myscratch --apiversion=57.0
Importing products.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
› Warning: sfdx-cli update available from 7.177.1 to 7.183.1.
[Error: ENOENT: no such file or directory, open './config/NorthernTrail.csv'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: './config/NorthernTrail.csv'
}
ERROR running commerce:products:import: {
"status": 1,
"name": "Error",
"message": "form-data: ENOENT: no such file or directory, open './config/NorthernTrail.csv'",
"exitCode": 1,
"commandName": "Upload",
"stack": "Error: ENOENT: no such file or directory, open './config/NorthernTrail.csv'\nOuter stack:\n at SfdxError.wrap (/Users/peter.knolle/.local/share/sfdx/node_modules/@salesforce/core/lib/sfdxError.js:171:27)\n at Upload.catch (/Users/peter.knolle/.local/share/sfdx/node_modules/@salesforce/command/lib/sfdxCommand.js:248:67)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Upload._run (/Users/peter.knolle/.local/share/sfdx/node_modules/@salesforce/command/lib/sfdxCommand.js:85:13)\n at async Config.runCommand (/usr/local/lib/sfdx/node_modules/@oclif/core/lib/config/config.js:272:25)\n at async run (/usr/local/lib/sfdx/node_modules/@oclif/core/lib/main.js:74:5)",
"warnings": [],
"command": "sfdx shane:data:file:upload -f ./config/NorthernTrail.csv -u "[email protected]" --json --apiversion=57.0"
}
Importing products.... ⡿ Uploading...

BUT THIS WORKS:
sfdx shane:data:file:upload -f ./config/NorthernTrail.csv -u [email protected] --json --apiversion=57.0
{
"status": 0,
"result": {
"attributes": {
"type": "ContentVersion",
"url": "/services/data/v57.0/sobjects/ContentVersion/06801000002BgndAAC"
},
"Id": "06801000002BgndAAC",
"ContentDocumentId": "06901000002C159AAC"
}
}

What's going on that the code in commerce:products:import doesn't work?

B2B StripeAdapter

The stripe adapter class for b2b payment gateway provider does not work.
Reason-Token API does not work with newly created stripe accounts .
Stripe have shifted from legacy way of tokenizing card details from server to CLIENT now,using STRIPE JS Library.

Getting errors when running "sfdx commerce:store:create": The \"-u\" flag has been deprecated. Use \"--target-org | -o\" instead.", "The \"--apiversion\" flag has been deprecated. Use \"--api-version\" instead.

running the command sfdx commerce:store:create to create b2b sites I get error.

ERROR running StoreQuickstartSetup:  {
    "code": 1,
    "context": "Create",
    "commandName": "Create",
    "message": "The requested resource does not exist",
    "name": "NOT_FOUND",
    "status": 1,
    "stack": "NOT_FOUND: The requested resource does not exist\n    at HttpApi.getError (/usr/local/lib/sf/node_modules/@jsforce/jsforce-node/lib/http-api.js:278:16)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async /usr/local/lib/sf/node_modules/@jsforce/jsforce-node/lib/http-api.js:127:33\n    at async Connection.create (/usr/local/lib/sf/node_modules/@jsforce/jsforce-node/lib/connection.js:719:15)\n    at async Create.run (file:///usr/local/lib/sf/node_modules/@salesforce/plugin-data/lib/commands/data/create/record.js:48:24)\n    at async Create._run (/usr/local/lib/sf/node_modules/@oclif/core/lib/command.js:311:22)\n    at async Config.runCommand (/usr/local/lib/sf/node_modules/@oclif/core/lib/config/config.js:433:25)\n    at async run (/usr/local/lib/sf/node_modules/@oclif/core/lib/main.js:92:16)",
    "exitCode": 1,
    "warnings": [
        "The \"-u\" flag has been deprecated. Use \"--target-org | -o\" instead.",
        "The \"--apiversion\" flag has been deprecated. Use \"--api-version\" instead."
    ],
    "command": "sfdx force:data:record:create -u \"[email protected]\" -s \"ShippingConfigurationSet\" -v \"TargetRecordId=0ZEHy0000000KNUOA2\" --json --apiversion=57.0"
}

I managed to make it run myself by building the package locally and updating the file /src/lib/utils/sfdx/forceDataSoql.ts on line 56. Replaced the line:

appendCommonFlags(`sfdx force:data:record:create ${u} -s "${service}" -v "${value}" --json`, flags, logger),

with the following (basically hardcoding the scratch name and using sf instead of sfdx):

appendCommonFlags(`sf data create record -o <<SCRATCH ORG NICKNAME>> -s "${service}" -v "${value}" --json`, flags, logger),

Note the <> has to be hardcoded to the scratch org nickname

Then I ran the command and it worked

./bin/run commerce:store:create -n <<STORE_NAME>> -o b2b -b <<BUYER_USER_EMAIL>> -u <<ORG_USERNAME>> -v <<DEVHUB_USERNAME>> --apiversion <<API_VERSION>> 

I created a blog post about it if it helps

LWR B2B Integration classes not executing

I have setup LWR B2B store according to the documentation.
I can see below information during script execution:
image
However when I place an order none of those classes are executed.
I am testing it on preview 60.0 api scratch org.
I checked if classes are registered and if they are mapped, all looks fine, but I am not able to see them in the administration tab for the commerce
image
For example in my production org where we use Aura B2B commerce template it looks like this:
image

I am investigating LWR capabilities for commerce, however I am unable to setup integration classes to work as expected.
Please advise

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.