1.1.0 • Published 2 years ago

sfcc-1page-preferences v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

SFCC-One Page Preferences

It is used to build a one page view of all the sites preferences within a SFCC instance. demo_sfcc-1page-preferences

Prerequisites

Minimum Node Version Required : 14.14.0

OCAPI settings in BM:

  • Go to Administration > Site Development > Open Commerce API Settings
  • Select Type : Data
  • Select Context : Global
  • Settings for default client id (Change the client id if required)
{
	"_v":"21.3",
	"clients":[
		{
			"client_id":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
			"resources":[
				{
					"resource_id":"/system_object_definitions/**",
					"methods":[
						"get"
					],
					"read_attributes":"(**)",
					"write_attributes":"(**)"
				},
				{
					"resource_id":"/site_preferences/**",
					"methods":[
						"post"
					],
					"read_attributes":"(**)",
					"write_attributes":"(**)"
				}
			]
		}
	]
}

Getting started

npm install sfcc-1page-preferences -g

Usage

sfcc-1page-preferences options

Sample command when installed globally

sfcc-1page-preferences -h=<hostname> -c=<clientId> -p=<clientPassword>
OR
sfcc-1page-preferences --hostname=<hostname> --clientId=<clientId> --clientPassword=<clientPassword>

May skip clientId and clientPassword when they are default aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Options

Default clientId and clientPassword (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) will be used if it is not provided.

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago