How to show sub category items in home page in Velocity?



  • How to show sub category items in home page in Velocity?

    Say I want to show list of 'smart-phone' sub category items , relations are as follows electronics>'cell-phones-smart-watches'>smart-phone .

    I used to show them like this but not works?

    @include('shop::home.category', ['category' => 'electronics','cell-phones-smart-watches','smart-phone'])
    Can this achievable in this source? /var/www/html/packages/Webkul/Velocity/src/Resources/views/shop/home/category.blade.php

    Thanks.



  • Hi @Zakir
    you can achieve this by adding the below code in admin->velocity-> meta data->HomePageContent

    @include('shop::home.category', ['category' => 'electronics/cell-phones-smart-watches/smart-phone'])



  • Working fine thanks.
    @Vaishali-Agarwal one more , how to increase number of item show per line, currently it is 10 ?



  • @Zakir
    you can achieve this from the store configuration settings inside Admin configuration->catalog->product->store configuration (Here add the number as per your requirement inside per page field)


Log in to reply