ChrisColeman Posted January 18 Share Posted January 18 Hi,    I would like to change the default tabs for plugin - a pointer in the right direction would be highly appretiated. Thanks  . Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 18 Share Posted January 18 The default tab for any plugin is "General". Then, in the module's admin skin template, this Smarty variable, {$MODULE_ZONES}, will bring in the tabs "Allowed Zones" and "Disabled Zones". (The visible nomenclature is relevant to the admin's language pack being used.) Also, in the module's admin index script, a call is made to instantiate a Module class instance, typically: $module = new Module(__FILE__, $_GET['module'], 'admin/index.tpl', true); where true relates to whether or not to determine and record countries allowed and disallowed and show the respective tabs. To add tabs, make a call to: $GLOBALS['main']->addTabControl(); where the function is in: /classes/acp.class.php When CubeCart is ready to show the collection of tab details, a hook, 'admin.tabs', allows for a module to fine-tune that collection. Quote Link to comment Share on other sites More sharing options...
ChrisColeman Posted January 21 Author Share Posted January 21 Thank You, Â Â Â Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.