Skip to content

Commit bbd5ff4

Browse files
author
Sarah Riehl
authored
Merge branch 'main' into DEVDOCS-5575-categories
2 parents 8ff9599 + 5a7ed86 commit bbd5ff4

File tree

13 files changed

+180
-234
lines changed

13 files changed

+180
-234
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ on:
55
branches:
66
- main
77
workflow_dispatch:
8-
inputs:
9-
buildWithCache:
10-
description: 'Build with cache'
11-
default: true
12-
required: false
13-
type: boolean
148

159
jobs:
1610
build:
@@ -22,4 +16,4 @@ jobs:
2216

2317
- name: Trigger Vercel Deploy Hook
2418
run: |
25-
curl -X POST ${{ secrets.VERCEL_DEPLOY_HOOK_URL }}?buildCache=${{ inputs.buildWithCache }}
19+
curl -X POST ${{ secrets.VERCEL_DEPLOY_HOOK_URL }}?buildCache=false

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The following is a set of guidelines for contributing to BigCommerce's Developer
1414

1515
The easiest way to edit a file is using GitHub's web interface:
1616

17-
1. Navigate to the file in GitHub. For example, [making-requests.md](https://github.com/bigcommerce/dev-docs/blob/main/docs/api-docs/getting-started/making-requests.mdx).
17+
1. Navigate to the file in GitHub. For example, [store-logs.mdx](https://github.com/bigcommerce/docs/blob/main/docs/api-docs/store-logs/store-logs.mdx).
1818

1919
2. Click the **pencil** icon to **Edit This File**.
2020
3. Make the edit.
@@ -32,15 +32,15 @@ That's it! You're done.
3232

3333
For more complex changes, fork and edit locally:
3434

35-
1. Fork `bigcommerce/dev-docs`.
35+
1. Fork `bigcommerce/docs`.
3636

3737
2. `git clone` the fork to your local machine.
3838

3939
3. Make edits on a new branch in your IDE of choice.
4040

4141
4. Commit and push changes to your remote repo.
4242

43-
5. Create a [pull request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork) to `bigcommerce:dev-docs/main`.
43+
5. Create a [pull request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork) to `bigcommerce:docs/main`.
4444

4545

4646
## Commit Messages

docs/api-docs/cart-and-checkout/embedded-checkout-tutorial.mdx

Lines changed: 54 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -27,83 +27,81 @@ For more information, see [OAuth Scopes](/docs/start/authentication/api-accounts
2727

2828
## Creating a channel
2929

30-
To allow an external website to serve the BigCommerce checkout, create a new channel by sending a `POST` request to the `/channels` endpoint.
31-
32-
**`POST`** `https://api.bigcommerce.com/stores/{{store_hash}}/v3/channels`
33-
34-
**Create a Channel POST request**
35-
36-
```json showLineNumbers copy
37-
{
38-
"type": "storefront",
39-
"platform": "custom",
40-
"name": "https://{your-site}.com"
41-
}
42-
```
43-
44-
The response will contain an `id` which we will use as the `channel_id` in future requests.
45-
46-
**Create Channel response**
47-
48-
```json showLineNumbers copy
49-
50-
{
51-
"data": {
30+
To allow an external website to serve the BigCommerce checkout, create a new channel by sending a request to the [Create a channel](/docs/rest-management/channels#create-a-channel) endpoint. A successful response contains an `id` that you can use as the `channel_id` in future requests.
31+
32+
<Tabs items={['Request', 'Response']}>
33+
<Tab>
34+
```http filename="Request: Create a channel" showLineNumbers copy
35+
POST https://api.bigcommerce.com/stores/{{store_hash}}/v3/channels
36+
X-Auth-Token: {{access_token}}
37+
Accept: application/json
38+
Content-Type: application/json
39+
{
40+
"type": "storefront",
41+
"platform": "custom",
42+
"name": "My Custom Store"
43+
}
44+
```
45+
</Tab>
46+
<Tab>
47+
```json filename="Response: Create a channel" showLineNumbers copy
48+
{
49+
"data": {
5250
"id": 20266,
53-
"name": "https://www.{your-site}.com",
51+
"name": "My Custom Store",
5452
"platform": "custom",
5553
"type": "storefront",
5654
"date_created": "2019-09-18T22:28:36Z",
5755
"date_modified": "2019-09-18T22:28:36Z",
5856
"external_id": "",
5957
"is_enabled": true
60-
},
61-
"meta": {}
62-
}
63-
```
58+
},
59+
"meta": {}
60+
}
61+
```
62+
</Tab>
63+
</Tabs>
64+
6465
<Callout type="info">
65-
Channels created via API are visible in the BigCommerce store's Control Panel in **Products** > **Listed On**. The Orders section will now also include a filter for your channel.
66+
Channels created by API are visible in the store control panel's [channel manager](https://login.bigcommerce.com/deep-links/manage/channel-manager). You can also use the [advanced search feature on the products view page](https://login.bigcommerce.com/deep-links/manage/products/search), [sort customers by channel](https://login.bigcommerce.com/deep-links/manage/customers?limit=20&page=1&sortField=channel), and [create custom views of orders](https://login.bigcommerce.com/deep-links/manage/orders/create-view) to group or filter those entities by channel.
6667
</Callout>
6768

68-
69-
7069
## Creating a site
7170

72-
Next, create a site for the channel by sending a `POST` request to the `/channels/id/site` endpoint.
73-
74-
**`POST`** `https://api.bigcommerce.com/stores/{{store_hash}}/v3/channels/{{channel_id}}/site`
75-
76-
**Create Site POST**
77-
78-
```js showLineNumbers copy
79-
{
80-
"channel_id": 20266,
81-
"url": "https://www.{your-site}.com"
82-
}
83-
```
84-
85-
This returns `id` which you will use as the `site_id` in future requests. The `url` value is the base path for all other routes you define for the site.
86-
87-
**Create Site response**
71+
Next, create a site for the channel by sending a request to the [Create a channel site](/docs/rest-management/channels/channel-site#create-a-channel-site) endpoint. This returns an `id` that you can use as the `site_id` in future requests. The `url` value is the base path for all other routes you define for the site.
8872

89-
```js showLineNumbers copy
90-
{
73+
<Tabs items={['Request', 'Response']}>
74+
<Tab>
75+
```http filename="Request: Create a site" showLineNumbers copy
76+
POST https://api.bigcommerce.com/stores/{{store_hash}}/v3/channels/{{channel_id}}/site
77+
X-Auth-Token: {{access_token}}
78+
Accept: application/json
79+
Content-Type: application/json
9180
{
92-
"data": {
81+
"channel_id": 20266,
82+
"url": "https://store.example.com"
83+
}
84+
```
85+
</Tab>
86+
<Tab>
87+
```json filename="Response: Create a site" showLineNumbers copy
88+
{
89+
"data": {
9390
"id": 6,
94-
"url": "https://www.{your-site}.com",
91+
"url": "https://store.example.com",
9592
"channel_id": 20266,
9693
"created_at": "2019-09-19T17:08:44Z",
9794
"updated_at": "2019-09-19T17:08:44Z"
98-
},
99-
"meta": {}
95+
},
96+
"meta": {}
10097
}
101-
}
102-
```
98+
```
99+
</Tab>
100+
</Tabs>
103101

104102
## Creating a cart
105103

106-
To proceed to checkout, we'll need an active cart. To create one, send a request to the REST Management API's [Create a cart](/docs/rest-management/carts) endpoint.
104+
To proceed to checkout, you need an active cart. To create one, send a request to the REST Management API's [Create a cart](/docs/rest-management/carts) endpoint.
107105

108106

109107
```http filename="Example request: Create a cart" showLineNumbers copy
@@ -174,7 +172,7 @@ You will first need to use JSON Web Token Standard to create a new token. Use a
174172

175173
Next, include the `embedded_checkout_url` as part of the request payload you send to BigCommerce.
176174

177-
```json filename="Example Customer Login JWT payload" showLineNumbers copy
175+
```js filename="Example Customer Login JWT payload" showLineNumbers copy
178176
{
179177
"iss": {{client_id}},
180178
"iat": 1535393113,

docs/stencil-docs/installing-stencil-cli/installing-stencil.mdx

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ This article contains detailed instructions on installing and configuring Stenci
1818
To install Stencil CLI and its dependencies on Mac, open a terminal and run the following commands. Refer to [Stencil CLI README.MD](https://github.com/bigcommerce/stencil-cli) for latest `node` version supported.
1919

2020

21-
<Callout type="info">
22-
These instructions have been tested on **Mac OS X Yosemite**.
23-
</Callout>
24-
2521
```shell showLineNumbers copy
2622
# For ARM based macs
2723
arch -x86_64 /bin/zsh
@@ -30,10 +26,10 @@ arch -x86_64 /bin/zsh
3026
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
3127

3228
# Install Stencil CLI supported version of Node.js
33-
nvm install 20.10.0
29+
nvm install 18.15.0
3430

3531
# Switch to Stencil CLI supported version of Node.js:
36-
nvm use 20.10.0
32+
nvm use 18.15.0
3733

3834
# Install Stencil CLI
3935
npm install -g @bigcommerce/stencil-cli
@@ -56,7 +52,7 @@ choco install git
5652

5753
# Install nvm windows and stencil-compatible node.js
5854

59-
choco install nvm; nvm install 20.10.0; nvm use 20.10.0
55+
choco install nvm; nvm install 18.15.0; nvm use 18.15.0
6056

6157
# Install Stencil CLI
6258
npm install -g @bigcommerce/stencil-cli
@@ -78,7 +74,7 @@ If you're a pro at installing and configuring Python and Node.js environments on
7874

7975
**Required Dependencies:**
8076
* [Git](https://git-scm.com/downloads) - required to run npm install
81-
* [Node.js 20.10.0 and npm](https://nodejs.org/en/download/releases/)
77+
* [Node.js 18.15.0 and npm](https://nodejs.org/en/download/releases/)
8278

8379
Once they're installed and configured, use `npm` to install Stencil CLI:
8480

@@ -103,9 +99,9 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash
10399
source ~/.bashrc
104100

105101
# Explicitly install and use supported node version
106-
nvm install 20.10.0
102+
nvm install 18.15.0
107103

108-
nvm use 20.10.0
104+
nvm use 18.15.0
109105

110106
# Install stencil
111107
npm install -g @bigcommerce/stencil-cli

docs/stencil-docs/installing-stencil-cli/node-sass.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ stencil bundle
2525
a. Use the "dry run" option to see potential changes without making or saving those changes.
2626

2727
```shell copy
28-
stencil -scss-autofix.js --dry
28+
stencil scss-autofix --dry
2929
```
3030

3131
b. To make the changes and revalidate, run the following:
3232

3333
```shell copy
34-
stencil -scss-autofix.js
34+
stencil scss-autofix
3535
```
3636

3737
```shell copy

docs/stencil-docs/reference-docs/front-matter-reference.mdx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,20 @@ product:
149149
limit: 10 # limits similar products by views to 10
150150
```
151151

152+
<Callout type="info">
153+
NOTE: The `similar_by_views` property is not currently active.
154+
</Callout>
155+
156+
157+
152158
| Property | Description |
153159
|:---------|:------------|
154160
|`product`|When filtering/limiting, products' default sorting is by order id, from lowest to highest.|
155161
|`videos`|If `product.videos` is not defined, you will not return videos. If you define `product.videos`, the default behavior is to return all videos. If you define `product.videos.limit`, this sets the maximum number of videos returned.|
156162
|`images`|If `product.images` is not defined, you will not return images. If `product.images` is defined, you must also define `product.images.limit`, which throttles the number of images returned. The maximum allowable value for this parameter is five images.|
157163
|`reviews`|Boolean indicating whether to display product reviews. If `product.reviews` is present and is not explicitly set to `false`, reviews will appear. If not defined, defaults to 10 reviews. When filtering/limiting reviews, the default sorting is by review id, from lowest to highest. If a product has over 250 reviews, you can fetch the rest using the GraphQL Storefront API. See the example GraphQL query below.|
158164
|`related_products`|Displays products that are related by name. If `limit` absent or undefined, the default behavior is to display all related products. Inserting `limit` with no integer will display 0 products.|
159-
|`similar_by_views`|Displays products similar to those displayed in the current page context. If `limit` absent or undefined, the default is to display four products.|
165+
|`similar_by_views`|Displays products similar to those displayed in the current page context. If `limit` absent or undefined, the default is to display four products. Currently disabled on the platform. |
160166

161167
Sample GraphQL query for product reviews over the limit.
162168

@@ -255,7 +261,12 @@ gql: "query productById($productId: Int!) {
255261
}
256262
}"
257263
```
258-
264+
265+
<Callout type="info">
266+
NOTE: The `similar_by_views` property is not currently active.
267+
</Callout>
268+
269+
259270
We suggest testing GraphQL queries using the [storefront API playground](https://developer.bigcommerce.com/graphql-playground) to refine them before adding them to your template. If your query contains double quotes `"`, replace them with single quotes `'` or escape the double-quotes `\"`. You can launch the playground from your store by going to **Settings** > **API** > **Storefront API Playground** in your store control panel.
260271

261272

docs/stencil-docs/storefront-customization/using-front-matter.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ products:
6161

6262
```
6363

64+
<Callout type="info">
65+
NOTE: The `similar_by_views` property is not currently active.
66+
</Callout>
67+
6468
<Callout type="info">
6569
#### Filtering for Faster Page Loads
6670
To keep your pages lightweight, specify only the attributes you need per page. Also, use the limit key (with appropriate values) for attributes that accept it.

reference/catalog/products_catalog.v3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6981,7 +6981,7 @@ components:
69816981
metafield_Base:
69826982
title: metafield_Base
69836983
type: object
6984-
description: 'Metafield for products, categories, variants, and brands; the max number of metafields allowed on each is 50. For more information, see [Platform Limits](https://support.bigcommerce.com/s/article/Platform-Limits) in the Help Center.'
6984+
description: 'Metafield for products, categories, variants, and brands; the max number of metafields allowed on each is 250. For more information, see [Platform Limits](https://support.bigcommerce.com/s/article/Platform-Limits) in the Help Center.'
69856985
x-internal: false
69866986
properties:
69876987
key:

reference/price_lists.v3.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,6 @@ paths:
19291929
in: query
19301930
description: |
19311931
Sub-resources to include on a price record, in a comma-separated list. Valid expansions currently include `bulk_pricing_tiers` and `sku`. Other values will be ignored.
1932-
Sub-resources to include on a price record, in a comma-separated list. Valid expansions currently include `bulk_pricing_tiers` and `sku`. Other values will be ignored.
19331932
explode: false
19341933
schema:
19351934
type: array

0 commit comments

Comments
 (0)