Information sidebox
Making changes to the Information sidebox
Three sideboxes show links to internal content:
- Information Sidebox - links to define pages
- More Information Sidebox - links to extra pages
- EZ-Pages Sidebox (Important Links) - links to EZ-Pages
How do I re-arrange the order of the links in the information sidebox?
-
Create (if you don’t already have it) a directory named
includes/modules/sideboxes/YOURTEMPLATE/
-
Copy the includes/modules/sideboxes/information.php file into your new directory
-
Edit the
if
blocks into the order that you would like them to appear.
For example, if you wished the terms and conditions link to appear first, you would move this entire block of php:
if (DEFINE_CONDITIONS_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>';
}
(taking care not to leave the curly bracket behind) to just below the line that says:
unset ($information);
How do I add a link to the Information Sidebox?
This question is answered in the FAQ Adding a Link to the Information sidebox.
Still have questions? No problem! Just head over to the
Zen Cart support forum
and ask there in the appropriate subforum.
In your post, please include your Zen Cart and PHP versions, and a link to your site.
Is there an error or omission on this page? Please post to General Questions on the support forum. Or, if you'd like to open a pull request, just review the guidelines and get started.
You can even PR right here.
Last modified October 18, 2020 by Scott C Wilson (04e2a39).