4
0
forked from crowetic/commerce

108 Commits

Author SHA1 Message Date
Luis Alvarez
16d6369b64 Merge branch 'master' of https://github.com/okbel/e-comm-example 2020-10-27 04:48:49 -05:00
Luis Alvarez
6fb5b412a8 Losing my mind, but always fixing the types 🕺 2020-10-27 03:26:54 -05:00
Luis Alvarez
9ad0f0ef6b Added actions and more stuff to the wishlist page 2020-10-27 03:13:25 -05:00
Luis Alvarez
95fd730f0a Add list of products to the returned wishlist 2020-10-27 02:13:22 -05:00
Luis Alvarez
7f7795ec87 /checkout redirects to cart if no cookie is set 2020-10-27 00:52:09 -05:00
Luis Alvarez
c9b4a9ad4c Add preview where applicable 2020-10-27 00:47:29 -05:00
Luis Alvarez
3e7b1f833f Add channel id when creating a cart 2020-10-27 00:27:17 -05:00
Luis Alvarez
a6772c136a Add channel id to config 2020-10-27 00:20:11 -05:00
Luis Alvarez
2f37fa46a9 Select variant in product page 2020-10-26 22:31:49 -05:00
luc
ae822df689 remove lib/bigcommerce and lib/commerce 2020-10-27 02:51:53 +01:00
Luis Alvarez
970d35dc08 Remove unrequired actions 2020-10-26 19:12:04 -05:00
luc
200f148488 use relative paths in lib folder 2020-10-27 01:05:13 +01:00
Luis Alvarez
be03b6eae0 Only include required operations for the wishlist API 2020-10-26 19:02:23 -05:00
Luis Alvarez
0ec552c2b8 Removed Body type 2020-10-26 18:26:40 -05:00
Luis Alvarez
0f4f061cbd Added useRemoveItem and other fixes 2020-10-26 18:25:35 -05:00
Luis Alvarez
e91a6791d5 Added wishlist button component 2020-10-26 17:13:34 -05:00
Luis Alvarez
bf71d1d41a Updated wishlist hooks, added more, updated API. 2020-10-26 15:23:19 -05:00
Luis Alvarez
23a36d0826 Added definitions for the wishlist 2020-10-26 10:34:52 -05:00
Luis Alvarez
50c50b6d53 Removed code related to unused image sizes API 2020-10-25 19:50:33 -05:00
Luis Alvarez
29aedfc149 Fix remaining response type 2020-10-25 18:46:32 -05:00
Luis Alvarez
6de830af43 Fixed type 2020-10-25 18:23:36 -05:00
Luis Alvarez
cf5762058e Fix fetch types 2020-10-25 17:57:35 -05:00
Luis Alvarez
af9dfe79d2 Added usePrice to products in the landing 2020-10-25 17:52:52 -05:00
Luis Alvarez
7d9dad9b0d Add @vercel/fetch to deps 2020-10-25 17:33:59 -05:00
luc
cb415e09e6 refactor 2020-10-25 23:29:10 +01:00
luc
f9ff967347 use @zeit/fetch server-side 2020-10-25 23:17:39 +01:00
Luis Alvarez
3654cb47d5 Added locale metadata for products and product page 2020-10-25 15:14:54 -05:00
Luis Alvarez
7bc2c408ee Added i18n for custom pages 2020-10-25 13:31:12 -05:00
Luis Alvarez
dca8f281ab Hook fixes and update the customer after an operation 2020-10-23 21:49:33 -05:00
Luis Alvarez
444456d376 Updated types, hooks, useCustomer sample 2020-10-23 19:21:37 -05:00
Luis Alvarez
4d9b9f77b2 Fix product paths 2020-10-22 21:38:03 -05:00
Luis Alvarez
1d7365bc38 Updated logout API to remove the cookie 2020-10-22 18:44:35 -05:00
Luis Alvarez
b81d04b952 Added logout API 2020-10-22 18:02:41 -05:00
Luis Alvarez
7c91f8a80f Login should work now! 2020-10-22 17:13:28 -05:00
Luis Alvarez
a72c6e49de Updated login handler 2020-10-22 16:28:22 -05:00
Luis Alvarez
228f2141e7 Allow the auth cookie in development 2020-10-22 16:27:31 -05:00
Luis Alvarez
e4a99601f5 Updated types, API, and make the signup work 2020-10-22 13:25:44 -05:00
Luis Alvarez
316801627b Fixed type 2020-10-21 15:21:31 -05:00
Luis Alvarez
1569d62902 Fixed type issue and updated to latest canary 2020-10-21 12:49:59 -05:00
Luis Alvarez
2aae613f1b Added op to get the logged in customer 2020-10-21 09:53:19 -05:00
Luis Alvarez
f0a2c744e8 Moved create customer API to signup method 2020-10-21 09:15:14 -05:00
Luis Alvarez
a1e47a73d2 Added useLogin hook and API endpoint 2020-10-20 22:27:38 -05:00
Luis Alvarez
ef81a968af Fix potential body bug 2020-10-20 13:49:17 -05:00
Luis Alvarez
ed879f8b2c Run login after creating the customer 2020-10-20 13:18:38 -05:00
Luis Alvarez
7db006f64a Added login operation 2020-10-20 12:51:35 -05:00
Luis Alvarez
0922c87621 Handle validation for duplicated emails 2020-10-19 22:08:01 -05:00
Luis Alvarez
9257b44c0d Improved error handling for the fetch api 2020-10-19 21:48:22 -05:00
Luis Alvarez
20c08fcbb4 Allow the API to create customers 2020-10-19 21:29:27 -05:00
Luis Alvarez
f4bc27666b Updated types 2020-10-19 12:52:09 -05:00
Luis Alvarez
9309bff517 Type fixes 2020-10-19 12:40:26 -05:00