Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

STS flow-How to get output of a box in html file


qaiserrs

Recommended Posts

Dears

I am trying to explore STS template system. i direly feel that i need help from someone who has already been through it.

What i need to do is simple.

I just want to show a banner/box in the right column which is added from the OSC admin.

 

I have done the following steps:

1: added a banner from admin banner manager.

2: created a file in the includes/boxes directory under name customBanner.php

3: added this line in column_right.php include(DIR_WS_BOXES . 'customBanner.php');

4: And finally added the following code to customBanner.php

<?php

if ($banner = tep_banner_exists('dynamic', '170x158')) {

?>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center"><?php echo tep_display_banner('static', $banner); ?></td>

</tr>

</table>

<?php

}

?>

 

This code is basically used for OSC without STS template.

 

Now i need to know how STS template giving output in php.html files e.g.<td>$specialbox</td>. I mean how this variable is getting value from the sts.

and how can i show advertisement box in the right column.

 

Your in time help will be great for me.

 

Regards

Qaiser

Edited by qaiserrs
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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...