Here is our development website link:
https://lioonnize.wixsite.com/demo/france
click on “STORE PAGE” you will see the lightbox opens the only first time
On this page: FRANCE, we have written the following code to open the lightbox named “france”:
On the storePage link we invoke lightbox URL: https://lioonnize.wixsite.com/demo/france/?name=france
import wixWindow from 'wix-window';
import wixLocation from 'wix-location';
function open_Lightbox() {
let query = wixLocation.query;
var goto = query.name;
console.log(goto);
wixWindow.openLightbox(goto);
}
$w.onReady(function () {
open_Lightbox();
});
On Lightbox “france”: I have added code on the lightbox close button:
export function button32_click(event) {
// This function was added from the Properties & Events panel. To learn more, visit http://wix.to/UcBnC-4
// Add your code for this event here:
wixWindow.lightbox.close({});
}
regards
sneha shah