Question:
Hello eveyone
I would like to open a Wix windows i made when the cart is empty.
I try to use wixWindowFrontend, but it doesent’work.
My window is called “Panier Vide” : how to do it please?
And how to close it please (in code)
Here the code i use :
wixWindowFrontend.openLightbox(‘panier vide’)
thank you
Product:
Wix EDITOR
The single line of code you shared is correct, meaning the rest of the code might not be, care to share it?
As for closing a light box:
import { lightbox } from ‘wix-window-frontend’
lightbox.close()
hello
Effectively, the code was correct : i made a mistake with the name of the lightbox. (capital letters) :slight_smile.
Ok for the opening of the lightbox.
And what about to close?
This code:
wixWindowFrontend.lightbox.close(‘Panier vide’)
Thank you DeanAyalon
The close()
method does not receive any arguments, it is simply
wixWindowFrontend.lightbox.close()
1 Like
Every thing is ok. 
thanks