How to create category product grid column on home page Front-End like this
-
-
@bala
you may create this by adding the below code in admin->velocity-> meta data->HomePageContent (click on source code icon)@include('shop::home.category', ['category' => 'electronics/cell-phones-smart-watches'])
-
@Vaishali-Agarwal
Thanks but i'm asking how can i show those products in two rows like mention above the image , there are only one row slider . -
@bala
can you please confirm me about your bagisto version? -
@Vaishali-Agarwal v1.1.2
-
@bala
In Bagisto latest v1.2.0 version, there is a feature already implemented to increase the number of featured or new products on the Homepage, https://prnt.sc/vvhkv8. I recommend you to update your bagisto verison if you want more features.If you still want to do the changes in your existing project for increasing the category product no then changes in the below file;
Here update the number you want to increase;
https://github.com/bagisto/bagisto/blob/c88ca31b9460ea096b453bb62b8c6fa894558f7d/packages/Webkul/Velocity/src/Resources/views/shop/home/category.blade.php#L20update your method in this file
https://github.com/bagisto/bagisto/blob/c88ca31b9460ea096b453bb62b8c6fa894558f7d/packages/Webkul/Velocity/src/Http/Controllers/Shop/ShopController.php#L137 -
@Vaishali-Agarwal oh thank you so much
-
@Vaishali-Agarwal i tested the bagisto v1.2.0 demo from bagisto.com , there is no option for hompage configuration https://prnt.sc/vvjey0
-
@bala
Ohh Yes, earlier I was with the master project.
this feature is currently available only in master branch and will come in next release.you can till update this with the file as provided above for category.
-
@Vaishali-Agarwal is possible get pull from master >?
-
@bala
Yes you could take the master branch but it's a development branch..we recommend always update your code with latest release. -
yeah sure