# Where are the theme's default js files of Shopware 6?

**URL:** https://forum.shopware.com/t/where-are-the-themes-default-js-files-of-shopware-6/65558
**Category:** General Questions (EN)
**Created:** [17. März 2020 um 15:27 UTC](https://forum.shopware.com/t/where-are-the-themes-default-js-files-of-shopware-6/65558 "2020-03-17T15:27:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)
#### Post date: [17. März 2020 um 15:27 UTC](https://forum.shopware.com/t/where-are-the-themes-default-js-files-of-shopware-6/65558/1 "2020-03-17T15:27:50Z")

</div>

In Shopware 5, under Responsive/public/src/js you could find all js files of the theme. Where are the js files of Shopware 6 ?

---

<div class="post-metadata">

### Author: ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)
#### Post date: [17. März 2020 um 15:41 UTC](https://forum.shopware.com/t/where-are-the-themes-default-js-files-of-shopware-6/65558/2 "2020-03-17T15:41:00Z")

</div>

hey,

have a look here:&nbsp;[platform/src/Storefront/Resources/app/storefront/src at 6.1 · shopware/platform · GitHub](https://github.com/shopware/platform/tree/6.1/src/Storefront/Resources/app/storefront/src)

Best regards from Schöppingen

![cool](http://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/shopware.png "cool")&nbsp;Michael Telgmann

---

<div class="post-metadata">

### Author: ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)
#### Post date: [17. März 2020 um 16:23 UTC](https://forum.shopware.com/t/where-are-the-themes-default-js-files-of-shopware-6/65558/3 "2020-03-17T16:23:44Z")

</div>

Thank you, do you also know where is the implementation for the shopping card icon click? When the offcanvas shopping card is being opened after click [@Michael Telgmann]([http://forum.shopware.com/profile/17553/Michael](http://forum.shopware.com/profile/17553/Michael) Telgmann „Michael Telgmann“)‍ ?

---

<div class="post-metadata">

### Author: ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)
#### Post date: [18. März 2020 um 07:57 UTC](https://forum.shopware.com/t/where-are-the-themes-default-js-files-of-shopware-6/65558/4 "2020-03-18T07:57:54Z")

</div>

Hello,

just have a look at the template file:&nbsp;[platform/buy-widget-form.html.twig at 6.1 · shopware/platform · GitHub](https://github.com/shopware/platform/blob/6.1/src/Storefront/Resources/views/storefront/page/product-detail/buy-widget-form.html.twig#L12)&nbsp;  
There you could find a data attribute on the form element. This usually is an indicator for a Javascript plugin which is set to this element. If you now search in the main.js file which is located in the directory, I showed you before, you will find this line:&nbsp;[platform/main.js at 6.1 · shopware/platform · GitHub](https://github.com/shopware/platform/blob/6.1/src/Storefront/Resources/app/storefront/src/main.js#L98) Here is the plugin registered to the HTML element. If you now go up a bit in the main.js file you will find this line:&nbsp;[platform/main.js at 6.1 · shopware/platform · GitHub](https://github.com/shopware/platform/blob/6.1/src/Storefront/Resources/app/storefront/src/main.js#L32) Here is the plugin imported and you see the file from where it is imported. Which is this one:&nbsp;[platform/add-to-cart.plugin.js at 6.1 · shopware/platform · GitHub](https://github.com/shopware/platform/blob/6.1/src/Storefront/Resources/app/storefront/src/plugin/add-to-cart/add-to-cart.plugin.js)

I hope this makes the structure more clear and will help you to find the specific files you need on your own&nbsp; ![Wink](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/b3785da0cbf2c8566cb535dcf55b2730b5224899.png "Wink")

Best regards from Schöppingen

![cool](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/86c57fbace799dd4eb1f1b8a2d3bdc1733f0aea1.png "cool")&nbsp;Michael Telgmann

---

<div class="post-metadata">

### Author: ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)
#### Post date: [18. März 2020 um 14:52 UTC](https://forum.shopware.com/t/where-are-the-themes-default-js-files-of-shopware-6/65558/5 "2020-03-18T14:52:24Z")

</div>

Thank you for your fast feedback!
