Skip to main content

vex close button

More
7 years 6 months ago #304938 by aron555
vex close button was created by aron555
-- 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

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago #304953 by nicolas
Replied by nicolas on topic vex close button
Hi,

There is already a close button by default on vew popups:
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 or Create an account to join the conversation.

More
7 years 6 months ago #304963 by aron555
Replied by aron555 on topic vex close button
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 or Create an account to join the conversation.

More
7 years 6 months ago #304967 by nicolas
Replied by nicolas on topic vex close button
Hi,

Well, how do you add that vew popup ?

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago #305007 by aron555
Replied by aron555 on topic vex close button
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 or Create an account to join the conversation.

More
7 years 6 months ago #305008 by nicolas
Replied by nicolas on topic vex close button
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

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago #305028 by aron555
Replied by aron555 on topic vex close button
Thanks Nikolas! I understand the principle and read the documentation github.com/HubSpot/vex/blob/29b137d92b18...ex.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

Please Log in or Create an account to join the conversation.

Time to create page: 0.201 seconds
Powered by Kunena Forum