I am trying to have a sidebox on my self-hosted workdpress blog to show my new products. I followed the instructions for the Side Box Anywhere, but couldn't get it to work.
So I researched other posts on it, and followed what this one said to do:
http://www.zen-cart.com/forum/showth...le_sidebox.php
so in the single_sidebox.php file, I set the full path to the application_top to this:
PHP Code:
require('/home/MY-USERNAME/public_html/zen/includes/application_top.php');
I uploaded the single-sidebox in my zen folder.
I tried pasting this code:
PHP Code:
<?php
$zcSBmodule = 'whats_new.php';
$zcSBlayout = 'right';
require ('/home/MY-USERNAME/public_html/zen/single_sidebox.php');
?>
into my sidebar.php and tried it in different places, but couldn't get it to work--I want it to be on the right sidebar. Here's the code for that file for the right sidebar:
PHP Code:
<!-- start sidebar-wrapper-right -->
<div id="sidebar-wrapper-right" class="sidebar">
<ul id="sidebar-2">
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>
<div class="widget">
<li><h2 class="title"><?php _e('Profile'); ?></h2>
<p>This is a test profile widget</p>
</li>
</div>
<?php endif; ?>
</ul>
</div>
<!-- start sidebar-wrapper-right -->
I also tried using some wordpress plugins/widgets that are supposed to let you put php in the text box widgets, but that didn't work.
Also, I put in the width for the side box into the single_sidebox.php file in case my zen cart default was too big:
PHP Code:
if (!isset($zcSBwidth)) $zcSBwidth = (isset($_GET['width'])) ? zen_db_input($_GET['width']) : 180;
Any ideas on what I'm doing wrong, or where exactly I should paste the code on my sidebar.php file?
My blog is http://www.TraciBunkers.com/blog
THANKS!
Bookmarks