Bagisto Forum

    Bagisto

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

    How to add hot category?

    General Discussion
    4
    9
    815
    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

      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

        @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 Reply Quote 0
        • T
          tluanga last edited by

          @Vaishali-Agarwal thank you so much...

          1 Reply Last reply Reply Quote 0
          • A
            AN-Varit @Vaishali Agarwal last edited by

            @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

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

              A 1 Reply Last reply Reply Quote 0
              • A
                AN-Varit @devansh-webkul last edited by

                @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

                  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 Reply Quote 0
                  • A
                    AN-Varit @devansh-webkul last edited by

                    @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

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

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