` element that renders the microapp and a script tag containing the microapp URL. If the `window.BigCommerce` object does not yet exist, insert a script to create it.
+The `account_payments` variable includes the `
` element that renders the microapp and a script tag containing the microapp URL. If the `window.BigCommerce` object does not yet exist, insert a script to create it.
If the selected payment provider already has an integration with the Storefront account payments microapp, [initializing window.BigCommerce.renderAccountPayments](#initialize-the-microapp) renders the microapp automatically.
@@ -118,14 +118,14 @@ Initialize the microapp by calling the `renderAccountPayments()` method of the s
The `renderAccountPayments()` method takes the following three parameters:
* `style` - an options **object** for customizing the look of the microapp form. May be empty.
-* `storeContextData` - an **object** that supplies store context.
+* `storeContextData` - an **object** that supplies store context.
* `errorHandler` - a **function** that the microapp calls if the payments form submission fails.
```js filename="Example renderAccountPayments() wrapper function" copy
const initializeMicroapp = (style, storeContextData, errorHandler) => window.BigCommerce.renderAccountPayments(style, storeContextData, errorHandler);
```
-This [Cornerstone example (GitHub)](https://github.com/bigcommerce/cornerstone/blob/master/assets/js/theme/account.js#L102) initializes `window.BigCommerce.renderAccountPayments` using JavaScript.
+This [Cornerstone example (GitHub)](https://github.com/bigcommerce/cornerstone/blob/master/assets/js/theme/account.js#L102) initializes `window.BigCommerce.renderAccountPayments` using JavaScript.
The following example expresses the method's parameters as a TypeScript interface:
@@ -211,7 +211,7 @@ enum PaymentProviders {
Card data is stored securely with the payment gateway.
-**Is storing credit cards PCI compliant?**
+**Is storing credit cards PCI-compliant?**
Card data is stored securely with the payment gateway. The BigCommerce store is NOT storing the payment data.
diff --git a/docs/storefront/stencil/themes/context/object-reference/config.yml b/docs/storefront/stencil/themes/context/object-reference/config.yml
index a6caa5141..67eaf7a35 100644
--- a/docs/storefront/stencil/themes/context/object-reference/config.yml
+++ b/docs/storefront/stencil/themes/context/object-reference/config.yml
@@ -10,7 +10,7 @@ properties:
version:
type: string
example: '"2.6.0"'
- description: The themeʼs version number.
+ description: The theme's version number.
meta:
type: object
description: BigCommerce will use this metadata to list themes in Theme Marketplace.
@@ -30,7 +30,7 @@ properties:
documentation_url:
type: string
example: '"https://support.bigcommerce.com/articles/Public/Cornerstone-Theme-Manual"'
- description: URL of the themeʼs developer documentation.
+ description: URL of the theme's developer documentation.
author_name:
type: string
example: 'eCommerce Themes, Inc.'
@@ -88,7 +88,7 @@ properties:
type: string
example: '"scss"'
default: SCSS
- description: Name of the themeʼs CSS preprocessor.
+ description: Name of the theme's CSS preprocessor.
autoprefixer_cascade:
type: boolean
description: Denotes whether to enable the Autoprefixer CSS postprocessor in order to add vendor prefixes to CSS rules.
diff --git a/docs/storefront/stencil/themes/context/object-reference/helpers/cart/cartItems.yml b/docs/storefront/stencil/themes/context/object-reference/helpers/cart/cartItems.yml
index 4a0303668..5a33e5301 100644
--- a/docs/storefront/stencil/themes/context/object-reference/helpers/cart/cartItems.yml
+++ b/docs/storefront/stencil/themes/context/object-reference/helpers/cart/cartItems.yml
@@ -62,7 +62,7 @@ items:
description: URL to remove gift certificate from the cart.
rrp:
type: object
- description: Price object that defines the cart itemʼs list price (MSRP); can be used to display struck-out list prices.
+ description: Price object that defines the cart item's list price (MSRP); can be used to display struck-out list prices.
properties:
currency:
type: string
diff --git a/docs/storefront/stencil/themes/context/object-reference/helpers/common/product.yml b/docs/storefront/stencil/themes/context/object-reference/helpers/common/product.yml
index 67a652bcb..6e0ffb417 100644
--- a/docs/storefront/stencil/themes/context/object-reference/helpers/common/product.yml
+++ b/docs/storefront/stencil/themes/context/object-reference/helpers/common/product.yml
@@ -39,7 +39,7 @@ properties:
low_stock_level:
type: 'null'
description: |-
- If inventory tracking is turned on: Sets a threshold low-stock level. You can use conditional logic to display a “limited availability” badge if the stock_level propertyʼs value falls below this threshold. If inventory tracking is turned off: A “null” string.
+ If inventory tracking is turned on: Sets a threshold low-stock level. You can use conditional logic to display a “limited availability” badge if the stock_level property's value falls below this threshold. If inventory tracking is turned off: A “null” string.
name:
type: string
num_reviews:
diff --git a/docs/storefront/stencil/themes/context/object-reference/helpers/forms/login.yml b/docs/storefront/stencil/themes/context/object-reference/helpers/forms/login.yml
index 7634dba48..220ba53f7 100644
--- a/docs/storefront/stencil/themes/context/object-reference/helpers/forms/login.yml
+++ b/docs/storefront/stencil/themes/context/object-reference/helpers/forms/login.yml
@@ -15,10 +15,10 @@ properties:
type: string
enabled:
type: string
- description: Returns 1 when reCAPTCHA is enabled and 0 when itʼs disabled within the BigCommerce control panel.
+ description: Returns 1 when reCAPTCHA is enabled and 0 when it's disabled within the BigCommerce control panel.
public_key:
type: string
description: Optional key used for all reCAPTCHA in your store if specified in the BigCommerce control panel.
markup:
type: string
- description: HTML that adds reCAPTCHA V2.
\ No newline at end of file
+ description: HTML that adds reCAPTCHA V2.
diff --git a/docs/storefront/stencil/themes/context/object-reference/schemas/banners.yml b/docs/storefront/stencil/themes/context/object-reference/schemas/banners.yml
index 0792bc935..cc49a62ef 100644
--- a/docs/storefront/stencil/themes/context/object-reference/schemas/banners.yml
+++ b/docs/storefront/stencil/themes/context/object-reference/schemas/banners.yml
@@ -1,5 +1,5 @@
description: |-
- Elements of marketing banners at pageʼs top and/or bottom.
+ Elements of marketing banners at page's top and/or bottom.
`global` `{{banners}}` object
@@ -13,7 +13,7 @@ description: |-
**Limits**
* `{{banners}}` will only return the first 50 banners on each page.
-
+
type: object
properties:
bottom:
diff --git a/docs/storefront/stencil/themes/context/object-reference/schemas/blog.yml b/docs/storefront/stencil/themes/context/object-reference/schemas/blog.yml
index deb957f54..5cab18d6f 100644
--- a/docs/storefront/stencil/themes/context/object-reference/schemas/blog.yml
+++ b/docs/storefront/stencil/themes/context/object-reference/schemas/blog.yml
@@ -21,7 +21,7 @@ oneOf:
$ref: https://raw.githubusercontent.com/bigcommerce/docs/main/docs/storefront/stencil/themes/context/object-reference/helpers/blog/posts.yml
tag:
type: 'null'
- description: The blogʼs tag.
+ description: The blog's tag.
url:
type: string
description: URL to the blog page.
diff --git a/docs/storefront/stencil/themes/context/object-reference/schemas/breadcrumbs.yml b/docs/storefront/stencil/themes/context/object-reference/schemas/breadcrumbs.yml
index 84ef80e65..3b27bf8cc 100644
--- a/docs/storefront/stencil/themes/context/object-reference/schemas/breadcrumbs.yml
+++ b/docs/storefront/stencil/themes/context/object-reference/schemas/breadcrumbs.yml
@@ -1,5 +1,5 @@
description: |-
- Defines a pageʼs breadcrumbs. Available on virtually all pages that have a breadcrumb trail.
+ Defines a page's breadcrumbs. Available on virtually all pages that have a breadcrumb trail.
`global` `{{breadcrumbs}}` array
diff --git a/docs/storefront/stencil/themes/context/object-reference/schemas/cart.yml b/docs/storefront/stencil/themes/context/object-reference/schemas/cart.yml
index 332dd7486..3201be61c 100644
--- a/docs/storefront/stencil/themes/context/object-reference/schemas/cart.yml
+++ b/docs/storefront/stencil/themes/context/object-reference/schemas/cart.yml
@@ -31,11 +31,11 @@ properties:
type: object
description: Discount being applied to the cart in the current session.
properties:
- formatted:
+ formatted:
type: string
value:
type: integer
- currency:
+ currency:
string
gift_certificates:
type: array
@@ -118,11 +118,11 @@ properties:
type: boolean
category_names:
type: array
- items:
+ items:
type: string
configurable_fields:
type: array
- items:
+ items:
type: object
custom_fields:
type: array
@@ -196,7 +196,7 @@ properties:
description: URL to remove gift certificate from the cart.
rrp:
type: object
- description: Price object that defines the cart itemʼs list price (MSRP); can be used to display struck-out list prices.
+ description: Price object that defines the cart item's list price (MSRP); can be used to display struck-out list prices.
properties:
currency:
type: string
diff --git a/docs/storefront/stencil/themes/context/object-reference/schemas/comparisons.yml b/docs/storefront/stencil/themes/context/object-reference/schemas/comparisons.yml
index fd3bb133d..7d28e8fa8 100644
--- a/docs/storefront/stencil/themes/context/object-reference/schemas/comparisons.yml
+++ b/docs/storefront/stencil/themes/context/object-reference/schemas/comparisons.yml
@@ -28,7 +28,7 @@ items:
type: string
custom_fields:
type: array
- description: Array of additional product details as name-value pairs. For example, size, color, bookʼs ISBN, DVDʼs release date, etc.
+ description: Array of additional product details as name-value pairs. For example, size, color, book's ISBN, DVD's release date, etc.
items:
type: object
properties:
diff --git a/docs/storefront/stencil/themes/context/object-reference/schemas/countries.yml b/docs/storefront/stencil/themes/context/object-reference/schemas/countries.yml
index b5391c8ea..fb668ad0a 100644
--- a/docs/storefront/stencil/themes/context/object-reference/schemas/countries.yml
+++ b/docs/storefront/stencil/themes/context/object-reference/schemas/countries.yml
@@ -23,7 +23,7 @@ items:
example: Pound Sterling
symbol:
type: string
- description: The symbol for the currencyʼs primary display unit.
+ description: The symbol for the currency's primary display unit.
example: £
id:
type: integer
@@ -31,15 +31,15 @@ items:
example: 2
iso2:
type: string
- description: The countryʼs [ISO 3166 Alpha-2](https://www.iso.org/iso-3166-country-codes.html) code.
+ description: The country's [ISO 3166 Alpha-2](https://www.iso.org/iso-3166-country-codes.html) code.
example: GB
iso3:
type: string
- description: The countryʼs [ISO 3166 Alpha-3](https://www.iso.org/iso-3166-country-codes.html) code.
+ description: The country's [ISO 3166 Alpha-3](https://www.iso.org/iso-3166-country-codes.html) code.
example: GBR
name:
type: string
- description: The countryʼs display name.
+ description: The country's display name.
example: United Kingdom
selected:
type: boolean
diff --git a/docs/storefront/stencil/themes/context/object-reference/schemas/customer.yml b/docs/storefront/stencil/themes/context/object-reference/schemas/customer.yml
index 7b9805a97..e54040f0a 100644
--- a/docs/storefront/stencil/themes/context/object-reference/schemas/customer.yml
+++ b/docs/storefront/stencil/themes/context/object-reference/schemas/customer.yml
@@ -8,20 +8,20 @@ properties:
$ref: https://raw.githubusercontent.com/bigcommerce/docs/main/docs/storefront/stencil/themes/context/object-reference/helpers/customer/addresses.yml
customer_group_id:
type: number
- description: ID of this customerʼs group.
+ description: ID of this customer's group.
customer_group_name:
type: string
- description: Name of this customerʼs group.
+ description: Name of this customer's group.
edit_stored_instrument:
type: string
email:
type: string
description: Customer’s email address.
id:
- description: Customerʼs ID.
+ description: Customer's ID.
type: integer
name:
- description: Customerʼs name.
+ description: Customer's name.
type: string
num_new_messages:
description: Number of unread messages for this customer.
@@ -34,7 +34,7 @@ properties:
payment_methods:
$ref: https://raw.githubusercontent.com/bigcommerce/docs/main/docs/storefront/stencil/themes/context/object-reference/helpers/customer/payment_methods.yml
phone:
- description: Customerʼs phone number.
+ description: Customer's phone number.
type: string
recently_viewed_products:
type: array
@@ -47,28 +47,28 @@ properties:
type: object
properties:
address1:
- description: Customerʼs shipping address, first line.
+ description: Customer's shipping address, first line.
type: string
address2:
- description: Customerʼs shipping address, second line.
+ description: Customer's shipping address, second line.
type: string
city:
- description: Customerʼs shipping city.
+ description: Customer's shipping city.
type: string
company:
- description: Customerʼs shipping company name.
+ description: Customer's shipping company name.
type: string
country:
- description: Customerʼs shipping country.
+ description: Customer's shipping country.
type: string
country_id:
- description: ID for customerʼs shipping country.
+ description: ID for customer's shipping country.
type: string
destination:
description: 'Type of delivery destination: residential or business/commercial.'
type: string
first_name:
- description: Customerʼs shipping (first) name.
+ description: Customer's shipping (first) name.
type: string
form_session_id:
description: Used for custom shipping forms.
@@ -77,27 +77,27 @@ properties:
description: 'Unique, system-generated ID.'
type: string
last_name:
- description: Customerʼs shipping (last) name.
+ description: Customer's shipping (last) name.
type: string
last_used:
description: Timestamp when this address was last used as a shipping address.
type: string
phone:
- description: Customerʼs shipping phone number.
+ description: Customer's shipping phone number.
type: string
state:
- description: Customerʼs shipping state.
+ description: Customer's shipping state.
type: string
state_id:
- description: ID for customerʼs shipping state/province/region.
+ description: ID for customer's shipping state/province/region.
type: string
zip:
- description: Customerʼs shipping postal code.
+ description: Customer's shipping postal code.
type: string
shipping_addresses:
$ref: https://raw.githubusercontent.com/bigcommerce/docs/main/docs/storefront/stencil/themes/context/object-reference/helpers/customer/orders.yml
store_credit:
- description: Customerʼs store credit.
+ description: Customer's store credit.
type: object
properties:
currency:
diff --git a/docs/storefront/stencil/themes/context/object-reference/schemas/head.yml b/docs/storefront/stencil/themes/context/object-reference/schemas/head.yml
index 0f7ee70f5..ca0391ad2 100644
--- a/docs/storefront/stencil/themes/context/object-reference/schemas/head.yml
+++ b/docs/storefront/stencil/themes/context/object-reference/schemas/head.yml
@@ -5,7 +5,7 @@ description: |
type: object
properties:
favicon:
- description: The storeʼs favicon.
+ description: The store's favicon.
type: string
meta_tags:
description: Meta tags to improve store SEO.
@@ -17,5 +17,5 @@ properties:
description: CSS files to be included.
type: string
title:
- description: Current pageʼs title.
+ description: Current page's title.
type: string
diff --git a/docs/storefront/stencil/themes/context/object-reference/schemas/order.yml b/docs/storefront/stencil/themes/context/object-reference/schemas/order.yml
index 423c60226..6f4d4dbe9 100644
--- a/docs/storefront/stencil/themes/context/object-reference/schemas/order.yml
+++ b/docs/storefront/stencil/themes/context/object-reference/schemas/order.yml
@@ -169,30 +169,30 @@ properties:
properties:
address_lines:
type: array
- description: Customerʼs billing address
+ description: Customer's billing address
items:
type: string
city:
type: string
- description: Customerʼs billing city
+ description: Customer's billing city
company:
type: string
- description: Customerʼs billing company name
+ description: Customer's billing company name
country:
type: string
description: Customer billing country
email:
type: string
- description: Customerʼs billing email
+ description: Customer's billing email
full_name:
type: string
- description: Customerʼs billing name
+ description: Customer's billing name
phone:
type: string
description: Customer billing phone number
state:
type: string
- description: Customerʼs billing state
+ description: Customer's billing state
zip:
type: string
description: Customer billing ZIP
@@ -303,33 +303,33 @@ properties:
properties:
address_lines:
type: array
- description: Customerʼs shipping address
+ description: Customer's shipping address
items:
type: string
city:
type: string
- description: Customerʼs shipping city
+ description: Customer's shipping city
company:
type: string
- description: Customerʼs shipping company name
+ description: Customer's shipping company name
country:
type: string
- description: Customerʼs shipping country
+ description: Customer's shipping country
email:
type: string
- description: Customerʼs email
+ description: Customer's email
full_name:
type: string
- description: Customerʼs shipping name
+ description: Customer's shipping name
phone:
type: string
- description: Customerʼs shipping phone number
+ description: Customer's shipping phone number
state:
type: string
- description: Customerʼs shipping state
+ description: Customer's shipping state
zip:
type: string
- description: Customerʼs shipping zip
+ description: Customer's shipping zip
shipping_address_count:
type: string
description: Number of shipping addresses the customer has specified for this order.
diff --git a/docs/storefront/stencil/themes/foundations/react.mdx b/docs/storefront/stencil/themes/foundations/react.mdx
index c070d094a..f22d67cfc 100644
--- a/docs/storefront/stencil/themes/foundations/react.mdx
+++ b/docs/storefront/stencil/themes/foundations/react.mdx
@@ -1,6 +1,6 @@
---
title: Using npm and React to Customize Your Theme
-keywords: stencil, js, javascript, node, mern, if,
+keywords: stencil, js, javascript, node, mern, if,
---
# Using npm and React to Customize Your Theme
@@ -41,7 +41,7 @@ npm install --save-dev @babel/preset-react
### Update webpack.common.js
-Update` webpack.common.js` with the react preset.
+Update` webpack.common.js` with the React preset.
```js filename="Example 2: New presets and plugins" showLineNumbers copy
...
@@ -263,7 +263,7 @@ if (couponContainer) {
...
-
+
{{> components/common/header }}
{{> components/common/body }}
{{> components/common/footer }}
diff --git a/docs/storefront/stencil/themes/style/fonts-and-icons.mdx b/docs/storefront/stencil/themes/style/fonts-and-icons.mdx
index a1521fa76..97ef82229 100644
--- a/docs/storefront/stencil/themes/style/fonts-and-icons.mdx
+++ b/docs/storefront/stencil/themes/style/fonts-and-icons.mdx
@@ -2,7 +2,7 @@
#### Custom fonts unavailable on Page Builder
- * BigCommerce widgets come with a list of pre-defined fonts and do not support custom fonts at this time.
+ * BigCommerce widgets come with a list of pre-defined fonts and do not support custom fonts at this time.
* Third-party widgets can support any font available in the theme. To learn more about third-party widgets, see [Third-Party Widgets](/docs/storefront/stencil/content/widgets).
@@ -17,7 +17,7 @@ There are two paths to take for using custom fonts. They are as follows:
### Google Fonts
-[Google Fonts](https://fonts.google.com/) are a collection of open-source fonts available for use. The base Cornerstone theme uses Karla and Montserrat. Google Fonts come included in the Cornerstone theme.
+[Google Fonts](https://fonts.google.com/) are a collection of open-source fonts available for use. The base Cornerstone theme uses Karla and Montserrat. Google Fonts come included in the Cornerstone theme.
You can update the fonts in `config.json`; make sure to follow the `Google_FontName_Weight` format.
@@ -114,7 +114,7 @@ Assume that your theme's `config.json` contains the following key name and value
```json showLineNumbers
{
// ...
- "headings-font": "Google_Open+Sans_700"`
+ "headings-font": "Google_Open+Sans_700"
// ...
}
```
@@ -176,6 +176,6 @@ Simply add your new icon SVG file to the `assets/icons/ `folder. Then, from your
### Additional resources
* [Stencil Custom Sass Functions](/docs/storefront/stencil/themes/style/sass)
-* [Custom Icons Video Tutorial (BigCommerce YouTube)](https://youtube.com/watch?v=ZwrVN5QrEZY)
-* [Custom Fonts Video Tutorial (BigCommerce YouTube)](https://youtube.com/watch/-w7Hbn_p_pw)
+* [Custom Icons Video Tutorial (BigCommerce YouTube)](https://youtube.com/watch?v=ZwrVN5QrEZY)
+* [Custom Fonts Video Tutorial (BigCommerce YouTube)](https://youtube.com/watch/-w7Hbn_p_pw)
* [Google Fonts (Google)](https://fonts.google.com/)
diff --git a/docs/storefront/stencil/themes/templates/index.mdx b/docs/storefront/stencil/themes/templates/index.mdx
index 2f249b838..8228f39d4 100644
--- a/docs/storefront/stencil/themes/templates/index.mdx
+++ b/docs/storefront/stencil/themes/templates/index.mdx
@@ -19,12 +19,12 @@ This section explains how to author a custom template, map it to a URL, upload i
## Authoring a custom template
-If you're a theme developer, the first step is to create a custom template page.
+If you're a theme developer, the first step is to create a custom template page.
To create a custom page:
-1. Create a `custom` subdirectory in the `templates/pages` directory.
-2. Create the following four subdirectories under the `templates/pages/custom` directory:
+1. Create a `custom` subdirectory in the `templates/pages` directory.
+2. Create the following four subdirectories under the `templates/pages/custom` directory:
* brand
* category
@@ -38,7 +38,7 @@ To create a custom page:
Make sure to set following permissions:
* `755 (drwxr-x-r-x)` on all new subdirectories
-* `644 (rw-r–r–)` on all new files
+* `644 (rw-r–r–)` on all new files
Without these permissions, running your theme locally will fail with multiple error messages. You also will not be able to bundle your theme and the theme won't be uploaded to the store.
@@ -57,7 +57,7 @@ The requirements and options for mapping the `.stencil` or `config.stencil.json`
* When mapping URLs, make sure to convert any special characters to their [URL-encoded equivalents](https://www.urlencoder.org/).
-* After editing your `.stencil` or `config.stencil.json` files (if you are using Stencil V3.1 release or later), you must restart the Stencil app to view your changes locally.
+* After editing your `.stencil` or `config.stencil.json` files (if you are using Stencil V3.1 release or later), you must restart the Stencil app to view your changes locally.
To restart stencil, type `stencil start` at a command prompt, and append the appropriate switches for your workflow, for example: `stencil start -e -n`.
### Local mapping and testing
@@ -128,9 +128,9 @@ In addition to mapping a single array to a URL you can also map an array of URLs
## Specifying custom front matter
-You can add front matter directly to a custom template. For more information on using front matter, see [Using Front Matter](/docs/storefront/stencil/themes/context/frontmatter)
+You can add front matter directly to a custom template. For more information on using front matter, see [Using Front Matter](/docs/storefront/stencil/themes/context/frontmatter)
-The following example shows how to add front matter data to the `templates/pages/custom/brand/custom-brand.html` file.
+The following example shows how to add front matter data to the `templates/pages/custom/brand/custom-brand.html` file.
@@ -150,7 +150,7 @@ The following example shows how to add front matter data to the `templates/pages
-## Uploading a theme
+## Uploading a theme
Before you can apply your custom template to pages you need to bundle and push the theme to BigCommerce. For detailed instructions, see [Bundling and Pushing a Theme](/docs/storefront/stencil/deployment/upload).
@@ -178,7 +178,7 @@ This is necessary because all the brand pages are located under the /brands/ URL
### Outdated Stencil CLI
-If you have an old version of Stencil CLI installed, custom templates may not be supported and you need to update your CLI. To update CLI, issue the following command:
+If you have an old version of Stencil CLI installed, custom templates may not be supported, and you need to update your CLI. To update CLI, issue the following command:
`npm install -g bigcommerce/stencil-cli`
## Resources
diff --git a/docs/storefront/stencil/utils/events.mdx b/docs/storefront/stencil/utils/events.mdx
index 6b106ce35..e8b21ddf5 100644
--- a/docs/storefront/stencil/utils/events.mdx
+++ b/docs/storefront/stencil/utils/events.mdx
@@ -5,7 +5,7 @@
Stencil themes provide access to remote resources through data tags and event hooks. Developers can use these hooks to trigger defined events. A theme can hook to an event to perform actions or calculations based on shopper behavior.
-Stencil themes incorporate event hooks by importing the stencil-utils module. If take a look at [cornerstone/assets/js/theme/](https://github.com/bigcommerce/cornerstone/tree/master/assets/js/theme), you will see the import statement `'import utils from '@bigcommerce/stencil-utils';` at the top of files using leveraging event hooks.
+Stencil themes incorporate event hooks by importing the stencil-utils module. Looking at [cornerstone/assets/js/theme/](https://github.com/bigcommerce/cornerstone/tree/master/assets/js/theme), you will see the import statement `'import utils from '@bigcommerce/stencil-utils';` at the top of files using leveraging event hooks.
## Cookie Notification Example
@@ -50,7 +50,7 @@ In the following code snippet from Cornerstone in [templates/components/products
This data tag enables the emission of the `cart‑item‑add` event in this next snippet:
```js filename="Emitter, cart‑item‑add event" showLineNumbers copy
-/*
+/*
* Import all product-specific js
*/
[...]