PaulineK Posted January 26, 2007 Share Posted January 26, 2007 Hey... I want to add an image to the right column of oscommerce. Can someone tell me how I can do this? Link to comment Share on other sites More sharing options...
davidinottawa Posted January 26, 2007 Share Posted January 26, 2007 Hey... I want to add an image to the right column of oscommerce. Can someone tell me how I can do this? 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. Link to comment Share on other sites More sharing options...
PaulineK Posted January 26, 2007 Author Share Posted January 26, 2007 take a look at /includes/column_right.php fileyou 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 More sharing options...
davidinottawa Posted January 26, 2007 Share Posted January 26, 2007 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 More sharing options...
PaulineK Posted January 26, 2007 Author Share Posted January 26, 2007 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. Yes, it is: http://accuflex.ca/shopping/catalog/index.php languages is the last box on the right. I really appreciate the help. Link to comment Share on other sites More sharing options...
PaulineK Posted January 26, 2007 Author Share Posted January 26, 2007 Yes, it is: http://accuflex.ca/shopping/catalog/index.php languages is the last box on the right. I really appreciate the help. Hey David... I played around a bit and figured it out. Thank you for your help. Link to comment Share on other sites More sharing options...
davidinottawa Posted January 26, 2007 Share Posted January 26, 2007 Hey David... I played around a bit and figured it out. Thank you for your help. 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 Link to comment Share on other sites More sharing options...
PaulineK Posted January 26, 2007 Author Share Posted January 26, 2007 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 More sharing options...
davidinottawa Posted January 26, 2007 Share Posted January 26, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.