How can I show root category as a single row in shop front page.
I would like to show each category of product lists in a single row. How can I achieve this? I try to create root category and attach item to it but I will show in the new product row on shop front page.
Could you please confirm, Are you want to view all the root category products in a single row in the new products.
@Amitk-Webkul Sorry to confuse you. Maybe I have root category or root's child category. Let's say I have Promotion and New arrival category and there are products inside those categories. I would like to show a separate row for those category items in front page. The default theme is already included with Featured and New Products row like a screenshot below.
You can create a carousel for the same. Please follow the below steps.
-Reach on Theme customization on the Admin panel
- Setting-> Theme-> Create theme
- fill all the required fields and select Type product carousel and save
- here add Filter In Key provide category slug and give 1 in value and save it.
- Save it.
- Go to the shop
If you facing the issue please let us know.
@Amitk-Webkul Sorry my current version is 1.5 and I can't find the step 1.
For the Bagisot version 1.5.1. or below. Just go on the below path.
- Settings-> Velocity-> Homepage content.
- Open the homepage content in the source code view
- Here add your Category in the Blade file for example:-
@include('shop::home.category', ['category' => 'women'])
- and Save it.
It will view your category on the homepage.
@Amitk-Webkul Thanks for quick response. It does work with Bagisto version 2.0 what you mentioned about product_carousel theme customization but promotion carousel listed all products on the front page. In this picture testing product has no category (may be root category), Dog food is assigned to Promotion (slug - promotion) category, Electronic products is assigned to New Arrivals (slug - new-arrivals) category.
If you want to create a promotion carousel. In this case, create promotions for the particular category create a product carouse, and provide a category slug in the carousel.
It will appear promotions products in that carousel.
@Amitk-Webkul I have no chance. I follow your steps but it stills show all products in Moonsoon category.
Shop homepage with Moonsoon product_carousel
phyothiha last edited by phyothiha
@phyothiha It works now. I remove moonsoon slug from filter and add category_id key with respective id value