redirect to homepage when the store is Closed

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi all,

Busy with 3.90, and I wanted to know if anyone can assist me redirect the storeclose.cshtml to a homepage page, it would be nice for my site to redirect the store closed to a more informative friendlier page.

Thank you
6 years ago
Hi,

You have two options:

Option 1) You can create a new informative topic page. In the topic edit page, ENABLE the option "Accessible when store closed" for that topic page.

Now, you can add a JS redirect on store closed view (Vies/Common/StoreClosed.cshtml) OR simply add a link to that topic page on storeclosed view.


Option 2) Go to: Presentation/Nop.Web/Infrastructure/RouteProvider.cs

In "RouteProvider.cs"

look for this:

//store closed
            routes.MapLocalizedRoute("StoreClosed",
                            "storeclosed",
                            new { controller = "Common", action = "StoreClosed" },
                            new[] { "Nop.Web.Controllers" });


Change the route and use homepage or any other custom page as per your requirement.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.