Quote Originally Posted by DivaVocals View Post
These are the only two posts in this thread which covers this..

Does anyone have a solution for how to use this mod to display more than one sidebox?? DrByte?? anyone???
Answering my own question:

Following these instructions I was successfully able to display the categories sidebox by creating a file called external-displayed-categories.php which contained this code:
Code:
<?php
  $zcSBmodule = 'categories.php';
  $zcSBlayout = 'left';
  require ("/path/to/zencart/single_sidebox.php");
?>
I created a second file to display new products called external-displayed-whatsnew.php which contained this code:
Code:
<?php
  $zcSBmodule = 'whats_new.php';
  $zcSBlayout = 'left';
  require ("/path/to/zencart/single_sidebox.php");
?>
Both work perfectly together on the same page/site.

BUT, my externally called sideboxes didn't look like they do in the shop.. Soooooooo...

I needed to add some code to get my sideboxes looking like they do in the shop. To do this I simply linked the stylesheet with the declarations which affect my sideboxes in my single_sidebox.php file..

Now in the name of being a stickler for detail, I wanted to make sure that sidebox "pages" will properly validate. So I added the following to my single_sidebox.php file at the VERY top of the file:
Code:
<!DOCTYPE html>
<html>
<head>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
</head>
Just before the <title> opening and closing tags, you will need to add a link to the stylesheet which styles the sideboxes.

You add this to the single_sidebox.php file because that is the file the individual sidebox files call. They will inheirit the stylesheet settings from this file.



For the site I'm working on, instead of linking to the Zen Cart stylesheets in my single_sidebox.php file, I created a "mini" Zen Cart "external sideboxes only" stylesheet. This "mini" stylesheet contains only the declarations I needed to style the externally called sideboxes to match the ones in the store.



I also created the "external sideboxes only" stylesheet so that I could use CSS to hide the Zen Cart sidebox titles of my externally called sideboxes without affecting the rest of the Zen Cart shop.



That's it really..


I got it working with more than one sidebox. (It's been reported on this support thread that this was not possible - i wanted to confirm that I had no issue getting more than one sidebox to display using the Sideboxes Anywhere add-on)


I have not tested this with the shopping cart or login sideboxes yet. However, I am fairly certain that cookies and session settings may render some fairly gnarly results with these two particular sideboxes.. I will be testing this over the weekend, and report back my findings.


Once I finish testing, I'll post a link to the site I am working on so folks can see my end result.. :) (FYI, I'm using iframes to display my externally called sideboxes for a variety of reasons...) Wanted to post this to pass on the information to others..