Customize purchased modules

Customize purchased modules

Laraship QuestionsCategory: TechnicalCustomize purchased modules
adm asked 7 months ago

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
1 Answers
laraship Staff answered 7 months ago

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

adm replied 7 months ago

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

laraship Staff replied 7 months ago

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.

adm replied 7 months ago

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

laraship Staff replied 7 months ago

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 {

50% OFF

No Minimum, No Exceptions
 
GO TO STORE
close-link