Create New Bagisto custom theme returns error
-
According to this video (https://www.youtube.com/watch?v=K3FdBDsXAH8) and this article ( https://bagisto.com/en/create-custom-theme-in-bagisto/) I've cloned the Shop package. I changed the name spaces and according to your article I didn't touch the routes names. But after all changes I got this error:
Diglactic\ Breadcrumbs\ Exceptions \DuplicateBreadcrumbException (PHP 8.2.12 10.16.1) Breadcrumb name "shop.customer.profile.index" has already been registered
error in page:
C:\xampp\htdocs\bagisto\packages\Webkul\Store\src\Routes\breadcrumbs .php: 10
How can I fix it?
-
Hello @hossein
Greetings of the day..!!
Can you please provide the screenshot of the cloned package? and the error message of the same.
Thanks & Regards..!!
-
@Rishabh-Webkul Sure:
-
Hello @hossein
After checking your error this is due to because it is already registered in the shop package from which you just cloned the package. To resolve this error kindly make changes in the breadcrumbs from shop.customer.profile.index to store.customer.profile.index
you have to make changes in all the breadcrumbs as per your package.
Then the package will get registered after all the changes as shown in the below image.
Thanks & Regards..!!
-
@Rishabh-Webkul
Thank you Rishabh for your help. But it was not neither your video tutorial and your article.
Now, I faced another error which I don't have any idea:Target [Webkul\Store\Contracts\ThemeCustomization] is not instantiable while building [Webkul\Store\Http\Controllers\HomeController].
I shared some screenshot of error and possible related files. Please check and let me know.
Thanks. -
Hello @hossein
Greetings of the day..!!
It is very difficult to show each and every file making changes in the blog or tutorial video.
We are working to push our code to our official Bagisto custom theme repository, after that you can easily download that Store package and use it accordingly.
Thanks & Regards..!!
-
Hello @hossein
Greetings of the day..!!
Now you can check the Repository and clone the Store package from the given link.
GitHub Repository - https://github.com/bagisto/custom-theme
Thanks & Regards..!!
-
@Rishabh-Webkul thank you so much
-
Hello @hossein
Thanks for the update.
Also, if you like our support, you may give us the review here:- https://www.trustpilot.com/review/bagisto.com
That would be grateful for us.
Thanks & Regards,
Bagisto Team