Skip to content

Releases: bigcommerce/stencil-utils

Releasing 0.3.2

04 Aug 21:25
Compare
Choose a tag to compare
Release 0.3.2

Releasing 0.3.1

30 Jul 19:56
Compare
Choose a tag to compare

Releasing 0.3.0

29 Jul 00:18
Compare
Choose a tag to compare
Release 0.3.0

Releasing 0.2.0

17 Jul 22:57
Compare
Choose a tag to compare

Includes new Tools section with Image being the first Tool.

0.1.7: Merge pull request #32 from bigcommerce/cookies

07 Jul 19:45
Compare
Choose a tag to compare

0.1.6: Merge pull request #31 from bigcommerce/cartfix

18 Jun 22:16
Compare
Choose a tag to compare
Removed Form Models and fixed Cart rendering

0.1.5: Merge pull request #30 from bigcommerce/formfix

16 Jun 00:28
Compare
Choose a tag to compare
Added form validation models and swapped search remote api

Added form validation models

12 Jun 23:00
Compare
Choose a tag to compare

Themes can utilize the simple form validation models as

let fieldValue = $('input[name="username"]'); //example value is "myname"

var validated = utils.forms.login.username(fieldValue)
console.log(validated) //false, Bigcommerce requires email based usernames, utils.forms.login.username performs these checks for you.

Available form models will be documented and include forms such as Login, Create Account, Add Address, etc.

New hooks system

18 May 20:53
Compare
Choose a tag to compare
  • New hooks system, the following hooks will be fired:
    • Cart
      • cart-item-add-remote - When an item is added to the cart
      • cart-item-update-remote - When an item is updated (quantity)
      • cart-item-remove-remote - When an item is removed from the cart
    • Search
      • search-quick-remote - When a search is performed in the quick-search input
    • Product
      • product-options-change-remote - When a product remote has been changed
  • Can access the remote utils directly instead going through the namespace:
    • utils.remote.cart.itemAdd -> utils.cart.itemAdd

Add itemAdd function

12 May 18:04
Compare
Choose a tag to compare

New function:

  • itemAdd - Allows you to add items to the cart

Refactor options logic for flexibility.