Reading list Switch to dark mode

    Laravel eCommerce Hide Shop for Guest

    Updated 9 August 2019

    Laravel eCommerce Hide Shop for Guest module allows the admin to hide their storefront from the guest user/unregistered customers of their website.

    To view the storefront, firstly, the guest user needs to get registered themselves with the website then only they can proceed to shop.

    This module will provide full control to the store owner over the visibility of their storefront to the guest users. This extension only allows the registered customers of the website to view the storefront.

    Features of Laravel eCommerce Hide Shop for Guest

    • The admin can easily enable or disable this module.
    • The storefront will not be visible to the guest users.
    • The admin can add the custom notification from the backend.
    • The guest user needs to register themselves with the website to view the storefront.
    • Only registered customer can view the storefront.
    • Instead of the storefront, the guest user will find the Log ln page.

    Installation of Laravel eCommerce Hide Shop for Guest

    The customers will get a zip folder, Unzip the respective extension zip then merge “packages” folders into the project root directory.

    Laravel-eCommerce-Hide-shop-for-guest-module-installation

    Goto config/app.php file then add the following line under the Providers

    Webkul\HideShopForGuest\Providers\HideShopForGuestServiceProvider::class
    Laravel-eCommerce-hide-shop-for-guest-module-configuration

    Goto composer.json file inside the Bagisto root directory then add the following line under ‘psr-4’

    "Webkul\HideShopForGuest\":"packages/Webkul/HideShopForGuest/src"
    Laravel-eCommerce-hide-shop-for-guest-module-configuration-2

    Now, goto app/Http/Kernel.php file then add the following line under ‘middleware groups’

    Start your headless eCommerce
    now.
    Read More
    \Webkul\HideShopForGuest\Http\Middleware\HideShopForGuest::class
    Laravel-eCommerce-hide-shop-for-guest-module-configuration-3

    Next, run these below command to complete the setup in the bagisto root directory.

    composer dump-autoload

    Hide Shop for Guest – Configuration

    Once you successfully execute the command, you will see the Hide Shop for Guest under the Configure>>Show Price After Login. 

    Laravel-eCommerce-hide-shop-for-guest-admin-configuration

    From the drop-down admin can easily enable or disable the module.

    Notification for Customer: The admin can easily notify their customer to Log In/Sign Up with the website by showing this pop-up notification to the customer at front-end.

    Hide Shop for Guest – Front End

    Once the admin enabled this module, it will reflect on the front end accordingly.

    As shown in the below image the guest user can’t view the storefront until or unless they get register themselves with the website. The guest user will also see the notification to sing up with the website.

    laravel-eCommerce-hide-shop-for-guest-login-singup-Notification-

    After successfully signed up with the website the guest user can easily view the storefront.

    Laravel-eCommerce-hide-shop-for-guest-store-fornt-end



    That’s all for the Laravel eCommerce Hide Shop for Guest still, have any issue feel free to add a ticket here


    Current Product Version - v0.1.0

    Supported Framework Version - v0.1.6

    . . .
    Discuss on Helpdesk

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    6 comments

  • steven
    i have error Route [customer.session.index] not defined.
    • Ritika Singh (Moderator)
      Hi,

      Greetings of the day!

      We have created a ticket related to your query 449430. Our support team will contact you soon to assist you with this query.

      Thanks & Regards
      Team Webkul

      • Ritika Singh (Moderator)
        Hi,

        Greetings of the day!

        We have created a ticket related to your query 449430. Our support team will contact you soon to assist you with this query.

        Thanks & Regards
        Team Webkul

  • steven
    i doesn’t work
    i have error
  • William Hatanaka
    Hello, I am using the Bagisto 1.1.2 and installed successfully this extension (Hide the Shop from guest) on it.
    My question is, after the client logins on the shop the profile page is shown. Can I change to show the main page of the shop instead of appear the profile page?
    If it is possible, could you guide me how to do it please?
  • Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home

    Table of Content