Code: Select all
$parameters['contents'][] = ['text' => tep_draw_bootstrap_button(EXPORT_CUSTOMERS_NEWSLETTER, 'fas fa-file-export', tep_href_link('customers.php', 'preaction=export'), null, null, 'btn-warning btn-block')];Code: Select all
$parameters['contents'][] = ['text' => tep_draw_bootstrap_button(EXPORT_CUSTOMERS_NEWSLETTER, 'fas fa-file-export', tep_href_link('customers.php', 'preaction=export'), null, null, 'btn-warning btn-block')];Code: Select all
admin\includes\actions\customers\infoboxes\default.phpCode: Select all
$parameters['contents'][] = ['text' => $GLOBALS['Admin']->button(EXPORT_CUSTOMERS_NEWSLETTER, 'fas fa-file-export', 'btn-warning btn-block', $GLOBALS['Admin']->link('customers.php', ['preaction' => 'export']))];I have tried changing the name of the define/constant in the hook file and the language file and its still saying that ADMIN_EXPORT_CUSTOMERS_NEWSLETTER is already defined. Without the define in the language file the text is not present on the button. Removing the whole define from the language file creates a further error and stops the page loading.[06-Apr-2024 15:22:05 Europe/London] PHP Warning: Constant ADMIN_EXPORT_CUSTOMERS_NEWSLETTER already defined in /home/###/public_html/####/includes/languages/english/hooks/admin/customers/MC.php on line 12
Just change the bit at the bottom that mentions the language file to one copied from another file and updates the location of the language file and all seems good again.
Thanks you very much. This coding is getting harder for someone like me that knows very little about it.
You know I'm sure once we get used to the changes and how to update them without getting errors I'm sure it will get easier