In magento Home page display Once the customer clicks checkbox in the popup. It should close the popup and should not pop again.
Magento 2 Homepage Popup – Display on Page Load
magento2
magento2
In magento Home page display Once the customer clicks checkbox in the popup. It should close the popup and should not pop again.
Best Answer
You can try this way:
In the above code, we are checking whether the cookie is stored in the localstorage. If it is not stored in the local storage we are calling our modal popup. Only after clicking the checkbox, the cookie will be stored in the local storage.