Post by straightlight » Sun Jul 31, 2016 5:41 am

In Opencart v2.3 stable release, found on this topic: http://forum.opencart.com/viewtopic.php?f=2&t=165970 , there are new ways to handle the extensions upon distributions. Followed are detailed instructions on how to use them on this version:

Extensions

Admin Extensions Controller

- admin/controller/extension/extension/<your_extension_name>.php

Inside each controllers that developers must create, ensure the paths now begins with:

Code: Select all

class ControllerExtensionExtensionExtensionname extends Controller {
extension/extension/<your_extension_name>
instead of using a single extension path. Detailed examples are already provided by the Opencart developers when visiting this particular sub-folder.

Admin Extensions Language

- admin/language/<your_language>/extension/extension/<your_extension_name>.php

Admin Extensions Model

- admin/model/extension/<your_extension_folder>/<your_extension_name>.php

Code: Select all

class ModelExtensionYourExtensionFolderYourExtensionName extends Model {
extension/<your_extension_folder>/<your_extension_name>
Admin Extensions Template

- admin/view/template/extension/extension/<your_extension_name>.tpl

Catalog Extensions Controller

- catalog/controller/extension/<your_extension_folder>/<your_extension_name>.php

Inside each controllers that developers must create, ensure the paths now begins with:

Code: Select all

class ControllerExtensionFoldernameExtensionname extends Controller {
extension/<your_extension_folder>/<your_extension_name>
Catalog Extensions Language

- catalog/language/<your_language>/extension/<your_extension_folder>/<your_extension_name>.php

Catalog Extensions Model

- catalog/model/extension/<your_extension_folder>/<your_extension_name>.php

Inside each models that developers must create, ensure the paths now begins with:

Code: Select all

class ModelExtensionYourExtensionFolderYourExtensionName extends Model {
extension/<your_extension_folder>/<your_extension_name>
Catalog Extensions Theme

- catalog/view/theme/<your_theme>/template/extension/<your_extension_folder>/<your_extension_name>.php

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Mon Aug 01, 2016 12:13 am

Modules

Admin modules Controller

- admin/controller/extension/module/<your_module_name>.php

Inside each controllers that developers must create, ensure the paths now begins with:

Code: Select all

class ControllerExtensionModuleModulename extends Controller {
extension/module/<your_module_name>
instead of using a single module path. Detailed examples are already provided by the Opencart developers when visiting this particular sub-folder.

Admin modules Language

- admin/language/<your_language>/extension/module/<your_module_name>.php

Admin modules Template

- admin/view/template/extension/module/<your_module_name>.tpl

Catalog modules Controller

- catalog/controller/extension/module/<your_module_name>.php

Inside each controllers that developers must create, ensure the paths now begins with:

Code: Select all

class ControllerExtensionModuleModulename extends Controller {
extension/module/<your_module_name>
Catalog modules Language

- catalog/language/<your_language>/extension/module/<your_module_name>.php

Catalog modules Model

- catalog/model/extension/module/<your_module_name>.php

Inside each models that developers must create, ensure the paths now begins with:

Code: Select all

class ModelExtensionModuleYourModuleName extends Model {
extension/module/<your_module_name>
Catalog modules Theme

- catalog/view/theme/<your_theme>/template/extension/module/<your_module_name>.php

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 1 guest