4
0
forked from crowetic/commerce

39 Commits

Author SHA1 Message Date
Luis Alvarez
bf71d1d41a Updated wishlist hooks, added more, updated API. 2020-10-26 15:23:19 -05:00
Luis Alvarez
7633a6fae8 Updated types for swr hooks 2020-10-24 10:24:28 -05:00
Luis Alvarez
3941b90b0f Use CommerceError for hooks 2020-10-22 16:37:06 -05:00
Luis Alvarez
2804627aef Updated defaults in all hooks 2020-10-21 10:35:49 -05:00
Luis Alvarez
d98897a7e3 Added useCustomer hook 2020-10-21 10:23:05 -05:00
Luis Alvarez
f498a708d3 Remove no longer needed open checkout hook 2020-10-14 19:25:20 -05:00
Luis Alvarez
d4f09d3590 Add util hooks for creating hooks 2020-10-13 04:46:41 -05:00
Luis Alvarez
beed2d23e0 Added useSearch hook 2020-10-13 03:49:24 -05:00
Luis Alvarez
c099b27cad Add totals to cart 2020-10-12 20:03:53 -05:00
Luis Alvarez
8e42fdd25d Minor change 2020-10-10 10:06:28 -05:00
Luis Alvarez
2030255c5e Add checkout button 2020-10-09 22:40:12 -05:00
Luis Alvarez
a92dcb851b Updated paths to useCart 2020-10-09 17:43:10 -05:00
Luis Alvarez
48e4cef4e7 add single module for useCart 2020-10-09 17:21:39 -05:00
Luis Alvarez
939bc388bb Allow custom swr 2020-10-09 17:18:02 -05:00
Luis Alvarez
d67c728e80 Export the extend fn 2020-10-09 13:24:13 -05:00
Luis Alvarez
22ba0d7315 Updated useCart hook 2020-10-09 12:58:49 -05:00
Luis Alvarez
7758ea3199 Removed the CartProvider 2020-10-09 11:26:39 -05:00
Luis Alvarez
b5ee7feb46 Fixed commerce config types 2020-10-09 11:17:54 -05:00
Luis Alvarez
eb3f29fa95 updated the useUpdateItem hook 2020-10-09 11:10:58 -05:00
Luis Alvarez
cc0e62cd7e Updated the useRemoveItem hook 2020-10-09 10:44:54 -05:00
Luis Alvarez
c2096a8ab4 Make use-add-item hook extendable 2020-10-09 10:36:23 -05:00
Luis Alvarez
6dca1eadd2 Update Next and make the CartProvider not required anymore 2020-10-08 22:17:40 -05:00
Luis Alvarez
5c4f3e7ff2 Memoize functions in commerce hooks and debounce update 2020-10-08 20:36:31 -05:00
Luis Alvarez
e874f43abc Type changes 2020-10-07 15:27:22 -05:00
Luis Alvarez
3ac6805ebe bug fixes for cart actions 2020-10-07 15:08:17 -05:00
Luis Alvarez
63e8f431d8 Allow cart view to remove the item 2020-10-07 11:19:50 -05:00
Luis Alvarez
0483e97954 Fix cart provider 2020-10-06 21:00:36 -05:00
Luis Alvarez
b5b5d1343f Update item quantity 2020-10-06 19:07:02 -05:00
Luis Alvarez
21d5a8ea57 Added use-cart-actions hook 2020-10-05 21:57:38 -05:00
Luis Alvarez
289c2948d6 Added remove item from cart hook 2020-10-05 12:35:55 -05:00
Luis Alvarez
45c3a5345d Updated types and added remove item from cart api 2020-10-05 12:25:03 -05:00
Luis Alvarez
486c50a68b Added update item hook 2020-10-05 11:46:56 -05:00
Luis Alvarez
55ac91fcee Removed no longer required cart mock 2020-10-05 10:17:46 -05:00
Luis Alvarez
2f35358942 See if cart is empty 2020-10-05 01:05:04 -05:00
Luis Alvarez
f8df1c1879 Fixed bugs and updated hooks 2020-10-05 00:39:54 -05:00
Luis Alvarez
a3cf05fbd2 Fetch the cart! 2020-10-04 21:20:52 -05:00
Luis Alvarez
6fa1204e0b add to cart c: 2020-10-04 19:44:11 -05:00
Luis Alvarez
6c378d98ea Updated hooks 2020-10-04 13:46:28 -05:00
Luis Alvarez
0ad9ac0d5d Hook changes 2020-10-04 13:12:41 -05:00