Questions tagged [bigcommerce-stencil-cli]
28 questions
0
votes
0 answers
BigCommerce Updating global context variable
I am trying to add additional data to objects already stored in the global context by front matter.
I am assigning front matter results to a global context variable in the home.html page
---
products:
new:
limit:…

Michael Wild
- 1
- 1
0
votes
0 answers
Is there a way to add a value directly to the variable in Bigcommerce Stencil? (handlebars js)
Sometimes, I am facing the cases that I need to add a value directly to the variable when I am working on the Bigcommerce Stencil.
I googled it, but didn't find any answer for that.
Is there anyone who knows the trick?
I tried to add the value like…

JShobbyist
- 532
- 3
- 9
- 23
0
votes
0 answers
BigCommerce Footer links reset after theme update
In the BigCommerce admin, I've set a number of links in the Theme/Header & Footer/Support Column Links, and those have been working great. Then at some later point in time, I've run a stencil pull to get the most up-to-date theme settings on my…

Drew
- 1,422
- 1
- 18
- 29
0
votes
0 answers
How do I sort an array of objects by multiple properties using BigCommerce built in handlebars helpers?
I have a requirement to sort an array of objects by multiple properties in a BigCommerce Stencil theme using their built in helpers before iterating over the properly sorted list.
Can anyone please help me?
My current code example:
{{#each (sortBy…

SamAJr1
- 1
- 1
0
votes
1 answer
BigCommerce returns variantId for simple products in /api/storefront/carts/{{cart_id}}
I'm calling storefront api (api/storefront/carts/{{cart_id}}) from cart page.
I would like to use the lineitems available on physicalItems, digitalItems, giftCertificates, customItems available under lineItems.
Require to generate data array on…

sandip
- 533
- 9
- 29
0
votes
1 answer
NPM fails to install packages in the theme directory when running npm i
When I attempt to install the stencil untils module by running npm i in a theme directory I get the following error message.
npm WARN notsup Unsupported engine for @bigcommerce/stencil-cli@2.1.1: wanted: {"node":">= 10.0.0 <11.0.0"} (current:…

T-McVee
- 61
- 1
- 3
0
votes
1 answer
BigCommerce NPM - Update Babel
I am trying to run an older BigCommerce site locally but none of the JavaScript is working on the local site. Console seems to indicate an issue with Babel.
This is what is in the error log:
Error: Module build failed: TypeError:…

L.Smith
- 27
- 4
0
votes
2 answers
Product Variant Name using GraphQL in Bigcommerce
I'm using GQL query to show product variant information inside my table but when I'm calling product name its not working. Even my SKU,UPC/MPN and all rest values are showing but don't know how to show product name.
This is my site theme table Table…

Lalarukh khan
- 95
- 7
0
votes
1 answer
How does bigcommerce stencil themes work?
Hey I'm a new developer at an ecommerce company and we use bigcommerce platform to build and maintain stores. The problem I am having is understanding the codebase and how all of the files in the theme are interacting with eachother. For example how…

Kevin Millhouse
- 25
- 4
0
votes
1 answer
Image is getting "object Object" as src in bigcommerce
I want to show my product items images using GQL in my product-view page. I can show my SKUs, UPCs, MPNs using GQL in table. but in image receiving src value as "object Object".
Here's my post link too & here you can see my theme's…

Lalarukh khan
- 95
- 7
0
votes
1 answer
How to display Product Variant Option prices in Big Commerce
I'm trying to display the prices or product variant options on the frontend in Big Commerce, but it seems as though the data is editable in the UI, the data doesn't pass to the frontend for use? When looking at the data returned from context, price…

moody1208
- 437
- 1
- 4
- 19
0
votes
1 answer
How to make BigCommerce Category Description accessible to display within navigation
I am building a custom navigation for a BigCommerce site and need to display category descriptions within the navigation items in addition to name and url.
My navigation is being displayed via a component so I know I can't request Front Matter…

moody1208
- 437
- 1
- 4
- 19
0
votes
1 answer
BigCommerce's Stencil CLI and port selection
When running stencil start you'll get some information such as
-------------------------------------------------
[Browsersync] Proxying: http://localhost:3001
[Browsersync] Access URLs:
---------------------------------------
Local:…

carrier
- 32,209
- 23
- 76
- 99