Information sidebox

Making changes to the Information sidebox

Three sideboxes show links to internal content:

  1. Create (if you don’t already have it) a directory named includes/modules/sideboxes/YOURTEMPLATE/

  2. Copy the includes/modules/sideboxes/information.php file into your new directory

  3. 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:

    $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);

This question is answered in the FAQ Adding a Link to the Information sidebox.

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).