khopek:
This generator is amazing. I was sitting here forever individually changing names. Only problem is the new pages aren't showing up in Configuration-->Define Page Status and they also aren't showing up in my Information Sidebox. I did alter the information.php file to include my new pages.
hello Khopek and Anno,
i'm new comer in zen-cart. To add the new define page to Define Page Status, you must execute this SQL command in your database (you can use phpmyadmin) :
INSERT INTO configuration( configuration_title, configuration_key, configuration_value, configuration_description,
configuration_group_id, sort_order, last_modified, date_added, use_function, set_function ) VALUES (
'Name of your Form', 'DEFINE_NAME_OF_YOUR_FORM_STATUS', '1', 'Enable Name of Your Form Link/Text?<br />0= Link ON,
Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF,
Define Text OFF', '25', '84', now( ) , now( ) , NULL , 'zen_cfg_select_option(array('0', '1', '2', '3'),');
notes :
- change name_of_your_form with the name of your form
- if you use prefix for the table, i.e : 'zen_', then change the table configuration with zen_configuration in SQL command above
To add your new define page in sidebox, you must edit the sidebox file. For example, open your includes/modules/sideboxes/information.php. Add these lines to your information.php under unset($information); :
if (DEFINE_NAME_OF_YOUR_FORM_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_NAME_OF_YOUR_FORM) . '">' . BOX_INFORMATION_NAME_OF_YOUR_FORM . '</a>';
}
note :
- also change name_of_your_form with the name of your form
save the file and refresh your Online Catalog.
regards,
siyam junianto