You haven't said "where" you intend to use it.
I have no idea what exactly you're trying to do at this point.
It's already been stated that the Sidebox Anywhere mod is written to be used on PHP pages, not HTML pages. It is a PHP script. It is called from within existing PHP scripts. A simple PHP "require" command is all that's needed.
Translation:
1. Upload the single_sidebox.php file, as instructed, to the same folder as your Zen Cart files. Make no changes to it.
2. On a PHP page ... ie: one that has a .php extension, (not a .html extension), insert the 3 lines of code shown. Usually this would be an existing PHP page on your site.
3. the "path/to/zencart/" would be the server's filesystem path to your Zen Cart store, such as /home/yourname/public_html/store/
Sure.
1. Upload single_sidebox.php as instructed.
2. Create a call_my_sidebox.php file in your /public_html/ folder.
3. Put this in it, making appropriate edits to suit your server:4. Run the file in your browser: www.tjrstores.com/call_my_sidebox.phpCode:<?php $zcSBmodule = 'whats_new.php'; $zcSBlayout = 'left'; require ("/home/tjrstores_user_name/public_html/zencart/single_sidebox.php"); ?>
Your Zen Cart whats-new sidebox content will show up in the browser.



Reply With Quote
