Hello, can anyone tell me how to create and add a extension on the slider cart drawer?
This is dependant on the theme. In general most out of the box themes don’t allow for app extensions to be added to them, so you have to use Javascript.
Thanks for the info! Could you please guide me on how to use JavaScript to add my app extension to the theme, specifically in the cart drawer?
Not really because there are thousands of themes and hundreds of different cart drawers. You can use Javascript to create an element + inject your components that way
Hey @Tushar_Kungar, @bkspace is on point, here. There are lots of ways to approach extending/building cart drawers and my understanding is that it’s not currently possible to approach this with theme app extensions directly (more info here)
The most common way folks approach this is using the AJAX Section Rendering API to fetch cart data, create a <div>
for a widget, and insert it into the drawer whenever it opens.
There’s a bit more info on this approach here if you’re interested too.
Hope this helps!