Stencil Resources

July 28, 2020

Stack Overflow Articles

Official Big Commerce Stack Overflow Tag

dynamicComponent - Article 1

setting a variable in handlebarsjs

Display Object Model on the Screen

This in swatch.html: {{{pre this}}}

Adding Product to Cart

  • This happens at product-details.js
  • the default add to cart click event is assigned around line 47 (code below)
  • addProductToCart method is at around line 396

Default Add to Cart Click Event

$form.on('submit', event => {
            this.addProductToCart(event, $form[0]);
        });

API Calls

Overview of API Auths

GraphQL Auth

Storefront API Examples

Create A Token

Static Site Bootstrap + Vanilla JS example

GraphQL Storefront Examples

Getting Started with GraphQL

Obtaining Store API Creds

Making Store API Requests

Disable CORs in Chrome -

open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" --disable-web-security

Personal Updates

This is a password protected section available to those who know me in some fashion. If you know me and you do not already have a login, you can request a login here.

Personal Updates
Book Reviews

I am nuts about books. I read on all kinds of topics. I attempt to review each book I read for the sake of my own enrichment as well as conversation starters with others.

My Book Reviews
Pastoral Ministry

God has called me to be a pastor, and occasionally I have some pastoral thoughts I like to share.

Pastoral Posts
The Attic

You never know what you will find in an attic! Usually there is a hodgepodge of things buried under dust.

Explore the Attic
Technology

Most of what is included here are notes to myself. The majority of folks will not find interest in these posts.

Technology Posts