Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add image


PaulineK

Recommended Posts

take a look at /includes/column_right.php file

you could add html directly in there, or add a separate file in the includes/boxes/ directory.

 

Thanks for your reply.

 

I don't know a lot about working with .php code, exactly where could I insert the code without effecting the php? Actually, what I am trying to do is add a SSL site seal and it is in javascript. I just want to add it somewhere on the pages and I thought one of the columns would be a good spot.

Link to comment
Share on other sites

Thanks for your reply.

 

I don't know a lot about working with .php code, exactly where could I insert the code without effecting the php? Actually, what I am trying to do is add a SSL site seal and it is in javascript. I just want to add it somewhere on the pages and I thought one of the columns would be a good spot.

 

do you have a url ?

what is the last box on the right that you are displaying ? review ? currencies ? languages ?

 

It's also a good idea to put your seal on your checkout_payment pages.

Link to comment
Share on other sites

ok cool.

looks good.

It would look a lot better if it were inside a box the same as the ones above it.

good start though.

 

d

 

Yes, I agree. Will attempt to do that at a later date.

Again, I thank you for your assistance...it is much appreciated!

Link to comment
Share on other sites

Yes, I agree. Will attempt to do that at a later date.

Again, I thank you for your assistance...it is much appreciated!

 

Hi Pauline - it's very easy. Just create one new file for the box, and add this box to the column_right.php file and it's like this :

http://cranberrycorners.ca/purchase3/

 

 

 

1. Start a new file and name it seal.php.

Put this code in seal.php, be sure to Save it under : /includes/boxes/seal.php

<?php 
// seal file
?>
<tr><td>
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => ' ');

 new infoBoxHeading($info_box_contents, false, true);

 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'center',
						'text' => '<script language="Javascript" src="https://seal.starfieldtech.com/getSeal?sealID=1555717984028dbcae31271104e5ff12b17f6705370205070344397184"></script>');

new infoBox($info_box_contents);
?>
</td></tr>

 

Then - at the bottom of the /includes/column_right.php file, simply call this new file using a require statement like this :

require(DIR_WS_BOXES . 'seal.php');

 

 

That's it. Done.

Now you have a stand alone module for the entire seal box, which can be used consistently anywhere throughout your application.

 

If you want the box to have a heading like This Site is Secure! or whatever, then all you have to do is change the line like this :

$info_box_contents[] = array('text' => ' ');

to this :

$info_box_contents[] = array('text' => 'This Site is Secure! ');

or you could also make another text definition in your /includes/languages/english.php file like this :

define('BOX_HEADING_SECURE', 'This site is secure!');

then change the line in your seal.php to read like this :

$info_box_contents[] = array('text' =>BOX_HEADING_SECURE);

 

Notice how you do not put the single quotes into the array inside seal.php if you are using defined language.

 

hth, david

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...