Creating a new theme/module in bagisto 2.0
-
Re: Adding New theme to bagisto default theme
A lot of places are mentioning to follow the following: Create Custom Theme In Bagisto link. However I feel like this doc is outdated.
Since in Bagisto v2.0 vite got introduced I am wondering whether someone could help out with creating a new theme the proper way. The structure of the theme.php and most other files have changed drastically compared to the old documentation.
Similar to how Bagisto made the shop/admin into a module would this be a better approach to make the theme in a custom package/ ???
Note: I am intending to customize the admin/shop to suit the clients needs this would go beyond simple view changes.
p.s. the images quality on the site for creating a custom theme is very bad/unreadable.
-
-
Thank you for suggesting page!
There is still some room for explanations I think. Here is some feedback for maybe the next documentation update:Admin/Shop (Theme):
- Example of how to include custom created files in: "public/shop/{theme}/assets/css/style.css" /
"public/shop/{theme}/assets/js/script.js" /
"public/shop/{theme}/assets/images/example_image.jpg/.png" - As mentioned earlier but there is no clear explanation on the vite {} elements. I am not too familiar with this but having examples/console commands that use vite in bagisto might be nice.
- Example of how to include custom created files in: "public/shop/{theme}/assets/css/style.css" /
-
For people still seeking some more help with creating a custom Theme/Module in this case.
I've noticed the following pages that has useful information:
Architecture Concepts
Package Development Prerequisite
Package DevelopmentMy understanding of making a new theme was still the old way and wrong, until I read the docs a bit more in detail.