I have a custom module in which the user should only be able to navigate to a page in the frontend when the “Demo mode” setting is set to true in the configuration of the module. I am able to get the current state of the setting in the frontend, but don’t know how to go about enabling/disabling navigating to a specific page. Essentially when the setting “Demo mode” is turned of, the user shouldn’t even be able to open the page.
You may also like
We want to make product name clickable in bundle summary. When user click on product it should be redirected to simple product […]
I’m trying to hook Amasty Onestep Checkout to the MGS Claue template and I got a few questions. First of all, when […]
I have created a simple extension where I add blocks on the product page. In the product page i am printing some […]
Walmart Global Tech visited our campus for hiring students for the role of SDE 2. There were a total of 4 rounds. […]