Skip to content

New hooks system

Compare
Choose a tag to compare
@haubc haubc released this 18 May 20:53
  • 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