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

We create the override file includes/templates/YOURTEMPLATE/sideboxes/tpl_information.php.

Right before the list end

  $content  .= '</ul>' . "\n";

we add the link:

    $content .= '<li><a href="" target="_blank" rel="noreferrer noopener">The Greatest Shopping Cart Ever!</a></li>' . "\n" ;

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 September 4, 2020 by Scott C Wilson (9e8cba3).