Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing column_left.php


martyjquinn

Recommended Posts

Hi, I am new but have a basic knowlege of some code.

 

Here is my question. I would really appeaciate any help.

 

On my website, I have figured out how to edit column_left.php and include a new box called sample from a file called sample.php. What I want to do is call up sample.php as a box with a link to PDF file. The PDF is a sample of what I am selling (downloadable random exercises for accounting students).

 

From a file called amazon.php, I grabbed all the code, tweaked the header etc. But I am stuck on this bit:

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',

'text' => '<iframe src="http://rcm-uk.amazon.co.uk/e/cm?t=accountingexe-21&o=2&p=8&l=as1&asins=1405893249&fc1=000000&IS2=1&lt1=_blank&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>'); new infoBox($info_box_contents);

 

I know the code starting at (in bold above) 'text' => is the link to amazon (which I altered myself). How can I put a simple file link here. I have tried this <a href=sample.pdf> , but that is too simple I guess.

 

Any help gratefully received.

 

Martin

Link to comment
Share on other sites

'<a target="_blank" href="' . tep_href_link('adobe/booking-form.pdf') .'">' . tep_image(DIR_WS_IMAGES . 'pdf.gif', 'Bookin Form',32) . '</a>'

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

'<a target="_blank" href="' . tep_href_link('adobe/booking-form.pdf') .'">' . tep_image(DIR_WS_IMAGES . 'pdf.gif', 'Bookin Form',32) . '</a>'

 

Many thanks Sam, just took me a little tweaking and I got it. Much appreciated.

 

Martin

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...