How to Override modules to customize their basic features?
Need to customize some features of marketplace.
As i can extend theme to a new child theme and can easily customize them.
Documentation providing to override module view only.
Please help
Attachments
Hello,
This question really depends on what kind of customizations you're looking for
1) to Override views : https://www.laraship.com/docs/laraship/customize-laraship/customize-module-view/
2) To Override Language Files : https://www.laraship.com/docs/laraship/customize-laraship/customize-translation-files/
3) To Inject other functionality or change data retrieved you can use Actions and Filters
4) To Add additonal fields https://www.laraship.com/docs/laraship/customize-laraship/custom-fields/
5) You can override config files by copying them to the config directory.
Please share with us the functionality you're looking to extend so we can help you with
Hello,
I am looking to adding more fields and features while adding or editing a product in marketplace,
so please guide me how can i create child of marketplace module
Hello,
Laravel does not handle the controllers, requests, models, however I recommend the following:
1) Create your custom module by following the steps here : https://www.laraship.com/docs/laraship/customize-laraship/create-your-own-plugin/
2) Comment out the routes you need to override in web.php in the original extension.
3) define the commented routes in the the new extension web.php and point it to the new controllers
4) extend the new controller from the original controller.
Hello
Please provide an example of these points
3) define the commented routes in the the new extension web.php and point it to the new controllers
4) extend the new controller from the original controller.
Just put store management or anyone feature of marketplace outside marketplace folder.
Thanks in advance
Basically you need to adjust the routes file web.php and direct it to use your customized controller not the original controller
for extending controller you need to define the controller as
class YouController extends OriginalController {
Please login or Register to submit your answer