Jump to content

Adding in Custom Server Side Includes


Guest

Recommended Posts

Ive tried following

http://www.cubecart.com/site/forums/index....showtopic=17597

with no luck, just wondering if you can help.

Ill start from the beginning.

1. In Index.php (store root) I have added this:

include("includes/boxes/rightBanners.inc.php");

$body->assign("RIGHT_BANNERS",$box_content);

Its with the others within the // START CONTENT BOXES comment.

Ive put the same code in cart.php in the store root aswell.

2. In includes/boxes/rightBanner.inc.php:

<?php

include("_inc_banners.php");

$box_content = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/global/index.tpl");

?>

3. In the skins/myskinname/styletemplates/global/index.php

I have added {RIGHT_BANNERS} into the section where I want the server side include to go into

Here is what it looks like:

http://www.simplycashmere.com/store/index....iewCat&catId=15

See the include is working at the top, but the images are not showing (will fix that later). Look under Currency, there is an 'object' text, that is where I put {RIGHT_BANNERS} tag. That is where the SSI should appear.

Anyone spot any errors on my part or can help. If anyone can help get it working ill add some money into your paypal account for saying thanks.

Cheers

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...