• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

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

Show products by category in front page

Knowledge Base
2
6
2.5k
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 19 Jun 2020, 02:51

    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 20 Jun 2020, 08:32 20 Jun 2020, 08:31

      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 21 Jun 2020, 10:38 Reply Quote 1
      • W
        William Hatanaka @Vaishali Agarwal last edited by 21 Jun 2020, 09:36

        @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 21 Jun 2020, 10:38

          @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 22 Jun 2020, 05:11

            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 23 Jun 2020, 05:57 Reply Quote 0
            • W
              William Hatanaka @Vaishali Agarwal last edited by 23 Jun 2020, 05:57

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

              1 Reply Last reply Reply Quote 0
              6 out of 6
              • First post
                6/6
                Last post