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);
What determines which links are shown in the Information Sidebox?
- Most of the pages in this sidebox may have links enabled or disabled using Admin > Configuration > Define Page Status
- The About Us and Brands pages have their links controlled by the site specific overrides file.
How do I add a link to the Information Sidebox?
This question is answered in the FAQ Adding a Link to the Information sidebox.
What if the link should only be available to logged in users?
Wrap the code that creates the link in a check for the appropriate conditions. See protecting pages for more information.
Still have questions? Use the Search box in the upper right, or try the full list of FAQs. If you can't find it there, 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 June 8, 2022 by Scott C Wilson (f614349).