Jump to content

[SOLVED] payment methods


Recommended Posts

@InterNeo

There are a few methods in Module class that you can use to get list of modules.

You can try to filter out by the tab "payments_gateways" the module registered to

 

Module::getModulesOnDisk(true)

Modules::getModulesInstalled();

 

 

You can also look into the admin/tabs.AdminModules.php to find some hints.

  • Like 1
Link to comment
Share on other sites

@shokinro:

Thank you. I give you a plus

 

I did it this way:

 

$modulesArrays = Module::getModulesInstalled();

$selected = array();

foreach($modulesArrays as $module)

{

$elem = Module::getInstanceByName($module["name"]);

if($elem->tab == "payments_gateways")

array_push($selected, $elem->name);

}

$smarty -> assign('modulesList', $selected);

Link to comment
Share on other sites

×
×
  • Create New...