-
Image as a sidebox
I'm trying to add images to a right hand column. I've created the php files in this tutorial: http://www.zen-cart.com/wiki/index.php/Tutorial
So I've created the new_sidebox.php , new_sidebox_defines.php and the tpl_new_sidebox.php the sidebox info shows up in the layout boxes controller. The problem is no images appear on my site as expected . The code for the last one is:
<?php
$content = <<< End_Of_Quote
<a href="http://www.mysite.com/" target="blank">...</a>
<img src="/images/side_banner1.jpg" width="170" height="255" border="0">
End_Of_Quote;
?>
What am I doing wrong here?
-
Re: Image as a sidebox
If this won't work can anyone recommend another solution?
-
Re: Image as a sidebox
I would be inclined to use the Blank Sidebox mod and either remove the header from the code or turn it off in the stylesheet if you only want the image to display.
-
Re: Image as a sidebox
I'll give it a shot, thanks.
-
Re: Image as a sidebox
It sounds like you have the right files, but what is this?
$content = <<< End_Of_Quote
Is that really in your file? If so, the bare < symbols are likely to cause an error, not to mention the unquoted text.