# CookieConfiguration.openOffCanvas cannot call from custom made jquery plugin

**URL:** <https://forum.shopware.com/t/cookieconfiguration-openoffcanvas-cannot-call-from-custom-made-jquery-plugin/93240>\
**Category:** Shopware 6 (English)\
**Created:** [4. März 2022 um 07:09 UTC](https://forum.shopware.com/t/cookieconfiguration-openoffcanvas-cannot-call-from-custom-made-jquery-plugin/93240 "2022-03-04T07:09:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Binu](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Binu](https://forum.shopware.com/u/Binu)\
**Post date:** [4. März 2022 um 07:09 UTC](https://forum.shopware.com/t/cookieconfiguration-openoffcanvas-cannot-call-from-custom-made-jquery-plugin/93240/1 "2022-03-04T07:09:11Z")

</div>

Hi Guys,  
I am new to shopware 6 platform. I am trying to load the openOffCanvas from CookieConfiguration plugin on one of custom jquery plugin.

I have used the script as follows,

import CookieConfiguration from ‚src/plugin/cookie/cookie-configuration.plugin‘;  
…  
…  
\_onClickButton() {  
CookieConfiguration.openOffCanvas();  
}

But whenever I try, I am getting an error,

`Uncaught TypeError: o.b.openOffCanvas is not a function`

But when I try, CookieConfiguration.prototype.openOffCanvas(); but which cause the inner functions not able to load. Get the same kind of errors.

Can you guys share what have I done wrong here.

Thank you
