Bagisto Forum

    Bagisto

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

    Show products by category in front page

    Knowledge Base
    2
    6
    1801
    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.
    • W
      William Hatanaka last edited by

      Hello, I am using Bagisto v.1.1.2. and the Velocity theme.
      How can I show the products on main page by category of products.
      Now I can show the products including, for example, on Velocity meta data-> Home Page Content this command :

       @include('shop::home.new-products')
      

      Is there some commands like that I can use it? If no, how can I create it?
      Thank you very much.

      1 Reply Last reply Reply Quote 1
      • V
        Vaishali Agarwal last edited by Vaishali Agarwal

        Hi @William-Hatanaka
        Yes, you use the below command to show product by category, for any doubt you may check out Bagisto demo

        @include('shop::home.category', ['category' => 'mens-collection'])
        

        Thanks

        W 2 Replies Last reply Reply Quote 1
        • W
          William Hatanaka @Vaishali Agarwal last edited by

          @Vaishali-Agarwal , thank you very much!
          Are there a list of command of that ?
          Thank you.

          1 Reply Last reply Reply Quote 0
          • W
            William Hatanaka @Vaishali Agarwal last edited by

            @Vaishali-Agarwal, I've tried your orientation and it is work OK!
            Thank you.
            But, how I can eliminate the button 'add to cart' of the card of product?
            withoutAddToCart.png
            If the customer wants to buy more than one product the customer, after add to cart, needs to edit the cart to change the quantity of the chosen product, so it is better the customer click on the product picture and click the button 'add to cart' from the product detailed card, where the customer can choose the quantity of the product before add to cart.
            cardDetailedProduct.png

            1 Reply Last reply Reply Quote 0
            • V
              Vaishali Agarwal last edited by

              Hi @William-Hatanaka
              locate to this file packages/Webkul/Velocity/src/Resources/views/shop/products/add-to-cart.blade.php to remove add to cart.

              Thanks

              W 1 Reply Last reply Reply Quote 0
              • W
                William Hatanaka @Vaishali Agarwal last edited by

                @Vaishali-Agarwal ,
                Your guidance worked perfectly. Thank you very much

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