Post by bynd001 » Sun Feb 12, 2017 11:08 am

hello , I'm new here on Opencart v2.3.0.2, I'm sorry if i'm in wrong forum

I want to clone manufacturer and create a module named othercomapnies based on manufacturer
well I duplicate files
admin\controller\catalog\manufacturer.php
admin\language\en-gb\catalog\manufacturer.php
admin\view\template\catalog\manufacturer_form.tpl
admin\view\template\catalog\manufacturer_list.tpl

and named

admin\controller\extension/module\othercomapnies.php
admin\language\en-gb\extension/module\othercomapnies.php
admin\view\template\extension/module\othercomapnies_form.tpl
admin\view\template\extension/module\othercomapnies_list.tpl

and I changed manufacturer to othercomapnies inside the files and I changed
catalog/manufacturer to extension/module/othercomapnies
I also changed the class
class ControllerCatalogManufacturer extends Controller to
class ControllerExtensionModuleOthercomapnies extends Controller
I did add a table on MySQL similar to manufacturer table

but all that is not working I can't see the module on extensions , is it possible to create a module from catalog or I can't .

and Thank you

Newbie

Posts

Joined
Tue Feb 07, 2017 4:30 am

Post by cyclops12 » Sun Feb 12, 2017 9:48 pm

If you have put the files where you state you have put them then you should see the newly added modules in extensions/extensions then choose modules from the dropdown list, and your newly created module should be in there

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by bynd001 » Mon Feb 13, 2017 1:03 am

cyclops12 wrote:If you have put the files where you state you have put them then you should see the newly added modules in extensions/extensions then choose modules from the dropdown list, and your newly created module should be in there
thank you for your replay
I did upload the files to

admin/controller/extension/module/othercomapnies.php
admin/language/en-gb/extension/module/othercomapnies.php
admin/view/template/extension/module/othercomapnies_form.tpl
admin/view/template/extension/module/othercomapnies_list.tpl

but i can't see othercomapnies on extensions/extensions on modules

Newbie

Posts

Joined
Tue Feb 07, 2017 4:30 am

Post by cyclops12 » Mon Feb 13, 2017 2:10 am

Have you checked in the relevant directories to make sure all the files have been uploaded correctly
Also may be a cache issue so clear all your caches

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by bynd001 » Mon Feb 13, 2017 4:25 am

I did clear the cache but still can't find it on Extensions >> Extensions >> Modules (26)
but still can't find the othercomapnies on Modules (26)

Newbie

Posts

Joined
Tue Feb 07, 2017 4:30 am

Post by blackgoat » Mon Oct 29, 2018 1:43 am

Did you ever figure this out? I want to do something similar and have another manufacturer page.

Newbie

Posts

Joined
Thu May 10, 2018 9:28 am

Post by kestas » Mon Oct 29, 2018 4:16 am

After new module created you need also check and enable user group permissions... access and modify.

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am
Who is online

Users browsing this forum: No registered users and 6 guests