[Skip to main content](#vessel-content)

#   vex close button

##

- **[aron555](/forum/user/51176-aron555 "View aron555's Profile")**
- [![aron555's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/51176-aron555 "View aron555's Profile") Topic Author
- [ Offline](/forum/user/51176-aron555)

Less More

- Posts: 17
- Thank you received: 2
-
-

7 years 7 months ago [\#304938](#304938) by [aron555](/forum/user/51176-aron555 "View aron555's Profile")  *[vex close button](/forum/27-checkout/897155-vex-close-button#304938 "-- url of the page with the problem -- :   fa4.ru/  -- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.3 -- PHP version -- : 7.2.10 -- Browser(s) name and version -- : chrome  Hi! Please tell me how to add a pop-up button to Close the window VEX")* was created by *[aron555](/forum/user/51176-aron555 "View aron555's Profile")*

-- url of the page with the problem -- : [ fa4.ru/](http://fa4.ru/)
-- HikaShop version -- : 4.0.2
-- Joomla version -- : 3.9.3
-- PHP version -- : 7.2.10
-- Browser(s) name and version -- : chrome

Hi! Please tell me how to add a pop-up button to Close the window VEX

- [ ![vexclose.jpg](/forum/attachment/46397) ](/forum/attachment/46397 "vexclose.jpg") [ ](/forum/attachment/46397?download=1 "vexclose.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NzE1NS12ZXgtY2xvc2UtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

7 years 7 months ago [\#304953](#304953) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[vex close button](/forum/27-checkout/897155-vex-close-button#304953 "-- url of the page with the problem -- :   fa4.ru/  -- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.3 -- PHP version -- : 7.2.10 -- Browser(s) name and version -- : chrome  Hi! Please tell me how to add a pop-up button to Close the window VEX")*

Hi,

There is already a close button by default on vew popups:
[ monosnap.com/file/ppjuFVVYP4dDnyPRq6PSRJda1HbNyT](https://monosnap.com/file/ppjuFVVYP4dDnyPRq6PSRJda1HbNyT)
If you don't see it, it probably means that you have custom CSS to hide it.
Otherwise, it could also be that you didn't set the showCloseButton parameter of vex to 1 when you initialized your vew popups.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NzE1NS12ZXgtY2xvc2UtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[aron555](/forum/user/51176-aron555 "View aron555's Profile")**
- [![aron555's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/51176-aron555 "View aron555's Profile") Topic Author
- [ Offline](/forum/user/51176-aron555)

Less More

- Posts: 17
- Thank you received: 2
-
-

7 years 7 months ago [\#304963](#304963) by [aron555](/forum/user/51176-aron555 "View aron555's Profile")  Replied by *[aron555](/forum/user/51176-aron555 "View aron555's Profile")* on topic *[vex close button](/forum/27-checkout/897155-vex-close-button#304963 "-- url of the page with the problem -- :   fa4.ru/  -- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.3 -- PHP version -- : 7.2.10 -- Browser(s) name and version -- : chrome  Hi! Please tell me how to add a pop-up button to Close the window VEX")*

Thank you! That's right, I'm using the vex dialog on frontend, and the default setting is showCloseButton of vex set to 0. Please tell me how to initiate it to 1?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NzE1NS12ZXgtY2xvc2UtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

7 years 7 months ago [\#304967](#304967) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[vex close button](/forum/27-checkout/897155-vex-close-button#304967 "-- url of the page with the problem -- :   fa4.ru/  -- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.3 -- PHP version -- : 7.2.10 -- Browser(s) name and version -- : chrome  Hi! Please tell me how to add a pop-up button to Close the window VEX")*

Hi,

Well, how do you add that vew popup ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NzE1NS12ZXgtY2xvc2UtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[aron555](/forum/user/51176-aron555 "View aron555's Profile")**
- [![aron555's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/51176-aron555 "View aron555's Profile") Topic Author
- [ Offline](/forum/user/51176-aron555)

Less More

- Posts: 17
- Thank you received: 2
-
-

7 years 7 months ago [\#305007](#305007) by [aron555](/forum/user/51176-aron555 "View aron555's Profile")  Replied by *[aron555](/forum/user/51176-aron555 "View aron555's Profile")* on topic *[vex close button](/forum/27-checkout/897155-vex-close-button#305007 "-- url of the page with the problem -- :   fa4.ru/  -- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.3 -- PHP version -- : 7.2.10 -- Browser(s) name and version -- : chrome  Hi! Please tell me how to add a pop-up button to Close the window VEX")*

The pop-up window is called by the plugin "HikaShop Card notification Plugin" method popup, by clicking on the " Buy " button in the product card

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NzE1NS12ZXgtY2xvc2UtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

7 years 7 months ago [\#305008](#305008) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[vex close button](/forum/27-checkout/897155-vex-close-button#305008 "-- url of the page with the problem -- :   fa4.ru/  -- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.3 -- PHP version -- : 7.2.10 -- Browser(s) name and version -- : chrome  Hi! Please tell me how to add a pop-up button to Close the window VEX")*

Hi,

Then try adding the code:
vex.defaultOptions.showCloseButton = 1;
after the code:
vex.defaultOptions.className = "vex-theme-default";
in the file plugins/hikashop/cartnotify/cartnotify.php

The following user(s) said Thank You: [aron555](/forum/user/51176-aron555 "View aron555's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NzE1NS12ZXgtY2xvc2UtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[aron555](/forum/user/51176-aron555 "View aron555's Profile")**
- [![aron555's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/51176-aron555 "View aron555's Profile") Topic Author
- [ Offline](/forum/user/51176-aron555)

Less More

- Posts: 17
- Thank you received: 2
-
-

7 years 7 months ago [\#305028](#305028) by [aron555](/forum/user/51176-aron555 "View aron555's Profile")  Replied by *[aron555](/forum/user/51176-aron555 "View aron555's Profile")* on topic *[vex close button](/forum/27-checkout/897155-vex-close-button#305028 "-- url of the page with the problem -- :   fa4.ru/  -- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.3 -- PHP version -- : 7.2.10 -- Browser(s) name and version -- : chrome  Hi! Please tell me how to add a pop-up button to Close the window VEX")*

Thanks Nikolas! I understand the principle and read the documentation [ github.com/HubSpot/vex/blob/29b137d92b18...ex.dialog.coffee#L42](https://github.com/HubSpot/vex/blob/29b137d92b18a7bdedd2acd1998084453f9bd1f3/coffee/vex.dialog.coffee#L42) found that correctly you need to specify with DIALOG
vex.dialog.defaultOptions.showCloseButton = 1;
it work!

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NzE1NS12ZXgtY2xvc2UtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.086 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
