Post by blackgoat » Sat Oct 20, 2018 9:48 am

Is it possible to clone Manufacturers? I've changed (with success) Manufacturers to fit my needs but I'd like to have another 'Manufacturers' named something else. I'm not sure what all files need to be copied and renamed and then how much those files need to be changed.

I'm working with 3.0.2 and a custom theme.

Any help would be greatly appreciated.

Newbie

Posts

Joined
Thu May 10, 2018 9:28 am

Post by opencart.my » Sat Oct 20, 2018 10:19 pm

Pretty much all files relating to manufacturer:

Code: Select all

upload/admin/controller/catalog/manufacturer.php
upload/admin/language/en-gb/catalog/manufacturer.php
upload/admin/model/catalog/manufacturer.php
upload/admin/view/template/catalog/manufacturer_form.twig
upload/admin/view/template/catalog/manufacturer_list.twig
upload/catalog/controller/product/manufacturer.php
upload/catalog/language/en-gb/product/manufacturer.php
upload/catalog/model/catalog/manufacturer.php
upload/catalog/view/theme/default/template/product/manufacturer_info.twig
upload/catalog/view/theme/default/template/product/manufacturer_list.twig
Not to mention duplicating the `manufacturer`& `manufacturer_to_store` tables in the database.

Also, the above list is not complete. There are many other places which 'manufacturer' is being referenced. For example:

Code: Select all

upload/admin/controller/catalog/product.php on line 842 to 864.
And many other files especially the `product` files which reference to manufacturer heavily.

It depends what you want to achieve, maybe you don't want to link product with your cloned manufacturer.

Hope it helps.

Developing Quality OpenCart Extensions since 2011. View my Extensions.


User avatar
New member

Posts

Joined
Mon Jan 22, 2018 6:03 pm

Who is online

Users browsing this forum: No registered users and 5 guests