Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    outofstock doesnt show on items

    General Discussion
    3
    4
    171
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      marwan.dalaty last edited by

      if the item doesnt have stock anymore, the client cant add it to the cart and the button will be greyed out.
      SO how can I show him a message on the top of the product that the item is out of stock?

      1 Reply Last reply Reply Quote 0
      • Rishabh-Webkul
        Rishabh-Webkul last edited by

        Hello @marwan-dalaty

        You can customize your code from the file

        packages >> Webkul >> Shop >> src >> Resources >> views >> products >> view.blade.php

        view.bladephp.png

        Thanks & Regards

        M 1 Reply Last reply Reply Quote 0
        • M
          marwan.dalaty @Rishabh-Webkul last edited by

          @Rishabh-Webkul where can I add the css changes for the label out of stock after I add it inside view.blade.php? now the label is showing but I need to add its CSS to be able to show in the home page when user try to explore product

          A 1 Reply Last reply Reply Quote 0
          • A
            amit-webkul @marwan.dalaty last edited by

            Hello @marwan-dalaty ,

            If you are making changes inside the shop package -> view.blade.php file, you can add your Tailwind CSS directly to the HTML.

            After adding the CSS, you will need to compile it and create a build file. To compile the CSS, you will need to follow a few steps.
            Step 1: Install npm inside the shop package using the following command:

            npm install
            

            Step 2: Run the following command to create the build.

            npm run build
            

            This will update your changes in the build file

            1 Reply Last reply Reply Quote 0
            • First post
              Last post