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

Bagisto

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

How to add hot category?

General Discussion
4
9
850
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.
  • T
    tluanga last edited by 9 Aug 2020, 06:23

    Is there a way to add this on my home page of my store.?
    sss.png

    1 Reply Last reply Reply Quote 0
    • V
      Vaishali Agarwal last edited by Vaishali Agarwal 9 Aug 2020, 13:27 9 Aug 2020, 13:26

      @tluanga
      You can easily add the hot category from the admin backend.
      Just go this route velocity->meta data->Home Page Content and add the below line of code @include('shop::home.hot-categories', ['category' => ['category_slug1', 'category_slug2', 'category_Slug3', 'category_slug4']])

      A 1 Reply Last reply 23 Sept 2021, 09:10 Reply Quote 0
      • T
        tluanga last edited by 9 Aug 2020, 14:06

        @Vaishali-Agarwal thank you so much...

        1 Reply Last reply Reply Quote 0
        • about a year later
        • A
          AN-Varit @Vaishali Agarwal last edited by 23 Sept 2021, 09:10

          @Vaishali-Agarwal Is there away to return this categories through the api?

          1 Reply Last reply Reply Quote 0
          • devansh-webkul
            devansh-webkul last edited by 23 Sept 2021, 14:07

            Hi @AN-Varit, you can only get these categories,
            https://devdocs.bagisto.com/1.x/api/categories.html

            A 1 Reply Last reply 26 Sept 2021, 12:48 Reply Quote 0
            • A
              AN-Varit @devansh-webkul last edited by 26 Sept 2021, 12:48

              @devansh-webkul If I want to add is_hot attribute to category and filter by it in api area.
              What is the best approach to do that?

              1 Reply Last reply Reply Quote 0
              • devansh-webkul
                devansh-webkul last edited by devansh-webkul 27 Sept 2021, 05:32 27 Sept 2021, 05:31

                Hi @AN-Varit,

                • No need to do any code. Just go to Catalog > Attribute in the admin panel.

                • And create an attribute with the name is_hot and type boolean and add all the necessary settings like the table in product_flat and in layered_navigation.

                • Now assigned that attribute to attribute family.

                • Then check, if still not coming then you can slightly add one check for is_hot because rest of the things is already done for you.

                A 1 Reply Last reply 27 Sept 2021, 08:11 Reply Quote 0
                • A
                  AN-Varit @devansh-webkul last edited by 27 Sept 2021, 08:11

                  @devansh-webkul Thanks for replying, but I want to filter category itself not its products

                  1 Reply Last reply Reply Quote 0
                  • devansh-webkul
                    devansh-webkul last edited by 27 Sept 2021, 13:40

                    Then, in this case, you need to customize this as per your need.

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