A Zen Cart sidebox is what displays various items in the side columns of your Zen Cart store. By default numerous sideboxes will show in either the left or right column of a Zen Cart online store for instance the categories sidebox, the search sidebox, and the information sidebox. Adding a new sidebox to Zen Cart can be completed in a few quick steps. You will need access to the server to add and modify files.
Add a Zen Cart Sidebox:
- Create Sidebox Template:Add a new file to the server in the following directory: zen-cart-root/includes/templates/template-name/sideboxes/. You should name the file something relating to the contents of the sidebox. In this example we will be adding a welcome message sidebox so we might name the file tpl_welcome.php. The contents of the file will include what you want to display in the box and will be in a $content variable. Below is an example of the contents of the file if you wanted it to just display a message like “Welcome to my store”.
- < ?php
- * Side Box Template
- $content = 'Welcome to my store.';