Raw
1 /** @type {import('types').Sidebar.SidebarItem[]} */
2 export const cartSidebar = [
3 {
4 type: "sidebar",
5 sidebar_id: "cart",
6 title: "Cart Module",
7 children: [
8 {
9 type: "link",
10 path: "/commerce-modules/cart",
11 title: "Overview",
12 },
13 {
14 type: "separator",
15 },
16 {
17 type: "category",
18 title: "Concepts",
19 children: [
20 {
21 type: "link",
22 path: "/commerce-modules/cart/concepts",
23 title: "Cart Concepts",
24 },
25 {
26 type: "link",
27 path: "/commerce-modules/cart/promotions",
28 title: "Promotion Adjustments",
29 },
30 {
31 type: "link",
32 path: "/commerce-modules/cart/tax-lines",
33 title: "Tax Lines",
34 },
35 {
36 type: "link",
37 path: "/commerce-modules/cart/links-to-other-modules",
38 title: "Links to Other Modules",
39 },
40 ],
41 },
42 {
43 type: "category",
44 title: "Server Guides",
45 autogenerate_tags: "cart+server",
46 autogenerate_as_ref: true,
47 sort_sidebar: "alphabetize",
48 description:
49 "Learn how to use the Cart Module in your customizations on the Medusa application server.",
50 children: [
51 {
52 type: "link",
53 path: "/commerce-modules/cart/extend",
54 title: "Extend Module",
55 },
56 {
57 type: "link",
58 path: "/commerce-modules/cart/cart-totals",
59 title: "Retrieve Cart Totals",
60 },
61 {
62 type: "link",
63 path: "/commerce-modules/cart/sales-channel-availability",
64 title: "Enforce Sales Channel Availability",
65 },
66 ],
67 },
68 {
69 type: "category",
70 title: "Storefront Guides",
71 autogenerate_tags: "storefront+cart,-jsSdk",
72 autogenerate_as_ref: true,
73 sort_sidebar: "alphabetize",
74 description:
75 "Learn how to integrate the Cart Module's features into your storefront.",
76 },
77 {
78 type: "category",
79 title: "Admin Guides",
80 autogenerate_tags: "admin+cart,-jsSdk",
81 autogenerate_as_ref: true,
82 sort_sidebar: "alphabetize",
83 description:
84 "Learn how to utilize administative features of the Cart Module.",
85 },
86 {
87 type: "category",
88 title: "Admin User Guides",
89 autogenerate_tags: "userGuide+cart",
90 autogenerate_as_ref: true,
91 sort_sidebar: "alphabetize",
92 description:
93 "Learn how to utilize and manage Cart features in the Medusa Admin dashboard.",
94 },
95 {
96 type: "category",
97 title: "References",
98 description:
99 "Find references for tools and resources related to the Cart Module, such as data models, methods, and more. These are useful for your customizations.",
100 children: [
101 {
102 type: "link",
103 path: "/commerce-modules/cart/workflows",
104 title: "Workflows",
105 hideChildren: true,
106 children: [
107 {
108 type: "category",
109 title: "Workflows",
110 autogenerate_tags: "workflow+cart",
111 autogenerate_as_ref: true,
112 sort_sidebar: "alphabetize",
113 },
114 {
115 type: "category",
116 title: "Steps",
117 autogenerate_tags: "step+cart",
118 autogenerate_as_ref: true,
119 sort_sidebar: "alphabetize",
120 },
121 ],
122 },
123 {
124 type: "link",
125 path: "/commerce-modules/cart/js-sdk",
126 title: "JS SDK",
127 hideChildren: true,
128 children: [
129 {
130 type: "sub-category",
131 title: "Store",
132 autogenerate_tags: "jsSdk+storefront+cart",
133 description:
134 "The following methods or properties are used to send requests to Store API Routes related to the Cart Module.",
135 autogenerate_as_ref: true,
136 sort_sidebar: "alphabetize",
137 },
138 {
139 type: "sub-category",
140 title: "Admin",
141 autogenerate_tags: "jsSdk+admin+cart",
142 description:
143 "The following methods or properties are used to send requests to Admin API Routes related to the Cart Module.",
144 autogenerate_as_ref: true,
145 sort_sidebar: "alphabetize",
146 },
147 ],
148 },
149 {
150 type: "link",
151 path: "/references/cart/events",
152 title: "Events Reference",
153 },
154 {
155 type: "sidebar",
156 sidebar_id: "cart-service-reference",
157 title: "Main Service Reference",
158 childSidebarTitle: "Cart Module's Main Service Reference",
159 children: [
160 {
161 type: "link",
162 path: "/references/cart",
163 title: "Reference Overview",
164 },
165 {
166 type: "separator",
167 },
168 {
169 type: "category",
170 title: "Methods",
171 autogenerate_path:
172 "/references/cart/ICartModuleService/methods",
173 },
174 ],
175 },
176 {
177 type: "sidebar",
178 sidebar_id: "cart-models-reference",
179 title: "Data Models Reference",
180 childSidebarTitle: "Cart Module Data Models Reference",
181 children: [
182 {
183 type: "link",
184 path: "/references/cart/models",
185 title: "Reference Overview",
186 },
187 {
188 type: "separator",
189 },
190 {
191 type: "category",
192 title: "Data Models",
193 autogenerate_path: "/references/cart_models/variables",
194 },
195 ],
196 },
197 ],
198 },
199 ],
200 },
201 ]