1 /** @type {import('types').Sidebar.SidebarItem[]} */
2 export const storefrontDevelopmentSidebar = [
3 {
4 type: "link",
5 path: "/storefront-development",
6 title: "Overview",
7 },
8 {
9 type: "separator",
10 },
11 {
12 type: "category",
13 title: "General",
14 children: [
15 {
16 type: "link",
17 path: "/storefront-development/tips",
18 title: "Connect to Medusa",
19 },
20 {
21 type: "link",
22 path: "/storefront-development/publishable-api-keys",
23 title: "Publishable API Key",
24 },
25 {
26 type: "link",
27 path: "/storefront-development/localization",
28 title: "Localization",
29 },
30 {
31 type: "link",
32 path: "/storefront-development/production-optimizations",
33 title: "Production Optimizations",
34 },
35 ],
36 },
37 {
38 type: "category",
39 title: "Tutorials",
40 description:
41 "The following tutorials guide you to build a storefront for different kinds of use cases.",
42 children: [
43 {
44 type: "ref",
45 path: "/nextjs-starter/guides/storefront-returns",
46 title: "Create Returns from Storefront",
47 },
48 {
49 type: "link",
50 path: "/storefront-development/guides/express-checkout",
51 title: "Express Checkout Storefront",
52 },
53 {
54 type: "link",
55 path: "/storefront-development/guides/react-native-expo",
56 title: "Mobile App with React Native and Expo",
57 },
58 ],
59 },
60 {
61 type: "category",
62 title: "Regions",
63 description:
64 "Regions are different areas you sell products in. Learn how to use regions in your storefront.",
65 children: [
66 {
67 type: "link",
68 path: "/storefront-development/regions",
69 title: "Overview",
70 },
71 {
72 type: "link",
73 path: "/storefront-development/regions/list",
74 title: "List Regions",
75 },
76 {
77 type: "link",
78 path: "/storefront-development/regions/store-retrieve-region",
79 title: "Store and Retrieve Regions",
80 },
81 {
82 type: "link",
83 path: "/storefront-development/regions/context",
84 title: "Region React Context",
85 },
86 ],
87 },
88 {
89 type: "category",
90 title: "Products",
91 description:
92 "Learn how to show products and related data in your storefront.",
93 children: [
94 {
95 type: "link",
96 path: "/storefront-development/products/list",
97 title: "List Products",
98 children: [
99 {
100 type: "link",
101 path: "/storefront-development/products/options",
102 title: "Filter by Options",
103 },
104 ],
105 },
106 {
107 type: "link",
108 path: "/storefront-development/products/retrieve",
109 title: "Retrieve a Product",
110 },
111 {
112 type: "link",
113 path: "/storefront-development/products/variants",
114 title: "Select a Variant",
115 },
116 {
117 type: "link",
118 path: "/storefront-development/products/price",
119 title: "Retrieve Variant Prices",
120 autogenerate_path: "storefront-development/products/price/examples",
121 },
122 {
123 type: "link",
124 path: "/storefront-development/products/inventory",
125 title: "Retrieve Variant Inventory",
126 },
127 ],
128 },
129 {
130 type: "category",
131 title: "Product Categories",
132 description: "Learn how to show product categories in your storefront.",
133 children: [
134 {
135 type: "link",
136 path: "/storefront-development/products/categories/list",
137 title: "List Categories",
138 },
139 {
140 type: "link",
141 path: "/storefront-development/products/categories/retrieve",
142 title: "Retrieve a Category",
143 },
144 {
145 type: "link",
146 path: "/storefront-development/products/categories/products",
147 title: "Retrieve a Category's Products",
148 },
149 {
150 type: "link",
151 path: "/storefront-development/products/categories/nested-categories",
152 title: "Retrieve Nested Categories",
153 },
154 ],
155 },
156 {
157 type: "category",
158 title: "Product Collections",
159 description: "Learn how to show product collections in your storefront.",
160 children: [
161 {
162 type: "link",
163 path: "/storefront-development/products/collections/list",
164 title: "List Collections",
165 },
166 {
167 type: "link",
168 path: "/storefront-development/products/collections/retrieve",
169 title: "Retrieve a Collection",
170 },
171 {
172 type: "link",
173 path: "/storefront-development/products/collections/products",
174 title: "Retrieve a Collection's Products",
175 },
176 ],
177 },
178 {
179 type: "category",
180 title: "Carts",
181 description:
182 "Learn how to manage carts in your storefront. These carts are later used to implement the checkout flow.",
183 children: [
184 {
185 type: "link",
186 path: "/storefront-development/cart/create",
187 title: "Create Cart",
188 },
189 {
190 type: "link",
191 path: "/storefront-development/cart/retrieve",
192 title: "Retrieve Cart",
193 },
194 {
195 type: "link",
196 path: "/storefront-development/cart/context",
197 title: "Cart React Context",
198 },
199 {
200 type: "link",
201 path: "/storefront-development/cart/update",
202 title: "Update Cart",
203 },
204 {
205 type: "link",
206 path: "/storefront-development/cart/manage-items",
207 title: "Manage Line Items",
208 },
209 {
210 type: "link",
211 path: "/storefront-development/cart/manage-promotions",
212 title: "Manage Promotions",
213 },
214 {
215 type: "link",
216 path: "/storefront-development/cart/totals",
217 title: "Show Totals",
218 },
219 ],
220 },
221 {
222 type: "category",
223 title: "Checkout",
224 description:
225 "Learn how to implement the different steps of the checkout flow in your storefront. By following the checkout flow, customers can complete their purchase.",
226 children: [
227 {
228 type: "link",
229 path: "/storefront-development/checkout",
230 title: "Overview",
231 },
232 {
233 type: "link",
234 path: "/storefront-development/checkout/email",
235 title: "1. Enter Email",
236 },
237 {
238 type: "link",
239 path: "/storefront-development/checkout/address",
240 title: "2. Set Address",
241 },
242 {
243 type: "link",
244 path: "/storefront-development/checkout/shipping",
245 title: "3. Choose Shipping Method",
246 },
247 {
248 type: "link",
249 path: "/storefront-development/checkout/payment",
250 title: "4. Choose Payment Provider",
251 children: [
252 {
253 type: "link",
254 path: "/storefront-development/checkout/payment/stripe",
255 title: "Example: Stripe",
256 },
257 ],
258 },
259 {
260 type: "link",
261 path: "/storefront-development/checkout/complete-cart",
262 title: "5. Complete Cart",
263 },
264 {
265 type: "link",
266 path: "/storefront-development/checkout/order-confirmation",
267 title: "Show Order Confirmation",
268 },
269 ],
270 },
271 {
272 type: "category",
273 title: "Customers",
274 description:
275 "Learn how to allow customers to register, login, and manage their profile in your storefront.",
276 children: [
277 {
278 type: "sub-category",
279 title: "Authentication",
280 description:
281 "Learn how to authenticate customers in your storefront. This includes basic email-password authentication and third-party (social) login.",
282 children: [
283 {
284 type: "link",
285 path: "/storefront-development/customers/register",
286 title: "Register Customer",
287 },
288 {
289 type: "link",
290 path: "/storefront-development/customers/verify-account",
291 title: "Register Customer with Email Verification",
292 },
293 {
294 type: "link",
295 path: "/storefront-development/customers/login",
296 title: "Login Customer",
297 },
298 {
299 type: "link",
300 path: "/storefront-development/customers/third-party-login",
301 title: "Third-Party (Social) Login",
302 },
303 {
304 type: "link",
305 path: "/storefront-development/customers/reset-password",
306 title: "Reset Password",
307 },
308 ],
309 },
310 {
311 type: "sub-category",
312 title: "Profile",
313 description:
314 "Learn how to retrieve a customer, manage their customer profile, and log them out in your storefront.",
315 children: [
316 {
317 type: "link",
318 path: "/storefront-development/customers/retrieve",
319 title: "Retrieve Customer",
320 },
321 {
322 type: "link",
323 path: "/storefront-development/customers/context",
324 title: "Customer React Context",
325 },
326 {
327 type: "link",
328 path: "/storefront-development/customers/profile",
329 title: "Edit Customer Profile",
330 },
331 {
332 type: "link",
333 path: "/storefront-development/customers/addresses",
334 title: "Manage Customer Addresses",
335 },
336 {
337 type: "link",
338 path: "/storefront-development/customers/log-out",
339 title: "Log-out Customer",
340 },
341 ],
342 },
343 ],
344 },
345 ]