I have a place in mind to test it out.
It is one file that helps create the end result that you would see on the web
I have a place in mind to test it out.
It is one file that helps create the end result that you would see on the web
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.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Thank you fr the clear instruction.
Maybe a slight update to the file in the downloads section to avoind this in future could be a good idea..?
OK I got it working on its own separate page, thank you DrByte for that.
My question is what code do I need to insert it in this section of the page...
This piece of code is related to this website www.iwacstores.com/testsite/index.phpCode:<div align="center"><a href="rss_feed.php"><img src="themes/<?=$setts['default_theme'];?>/img/system/rss.gif" border="0" alt="" align="absmiddle"></a></div> HERE IS WHERE I WANT TO INSERT THE SIDEBOX <div><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="180" height="1"></div></td> <td width="100%">
and will place it under the RSS Auctions image on the left hand side.
BUT I also would need to know if the code used would be suitable to use on any page, as most are similar to this one.
Thanks
Rob
Wouldn't let me edit the post for some reason..
would like to add in http://www.tjrstores.com/new_stock.php which is the link to how the side box is displayed.
I'd do it like this:
Code:<div align="center"><a href="rss_feed.php"><img src="themes/<?=$setts['default_theme'];?>/img/system/rss.gif" border="0" alt="" align="absmiddle"></a></div> <?php $zcSBmodule = 'whats_new.php'; $zcSBlayout = 'left'; require ("/home/iwac_user_name/public_html/testsite/single_sidebox.php"); ?> <div><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="180" height="1"></div></td> <td width="100%">
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Hmmm ... your tjrstores site is different from your iwacstores site.
They need to be on the same server ... and ideally on the same hosting account.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
OK.. with the page being on a separate website and server I changed the path/to/
to this
http://www.tjrstores.com/single_sidebox.php
and it worked, but the images of the products are not loading.
So would I therefore need to create the single_sidebox.php file on the IWAC Stores server for this to work properly?
or
Have i missed something in the code?
OK
I tried to add the pages etc onto iwac stores' server and got an error 500 internal server error.
The sidebox is trying to call for the images in http://iwacstores.com images dir
of course these images are not there.
How do I change this?
For the styling:
Add this to the very bottom of the single_sidebox.php file (*after* the closing ?> line):You may have to even make that an entire URL:Code:<style type="text/css"> @import "/includes/templates/tjrwatches/css/stylesheet.css"; </style>Code:<style type="text/css"> @import "http://www.tjrstores.com/includes/templates/tjrwatches/css/stylesheet.css"; </style>
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Bookmarks