Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add php Links for Regular Graphics


rekhis

Recommended Posts

Under Tips & Tricks section of oscommerce.info, there is a topic (Add php Links for Regular Graphics 12 Jul 2005 [252]). The solution given is a php code.

 

Which file should I be modifying to put this code?

 

Thanks in advance

...Manjeet

Link to comment
Share on other sites

It depends on where the graphic is loacted. If it is in the left column, then edit includes/column_left.php. If it's only on the index pages, tehn edit index.php, and so on.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Where do you want the graphic to be? It is just like a regular html link and the only part that is php is the

tep_href_link('product_info.php', 'cPath=1&products_id=1')

Which uses the tep_href_link function so that it adds the session id,

 

You just put it where you want it to go just like you would an html link but use the whole thing

<?php echo '<p><a href="' . tep_href_link('product_info.php', 'cPath=1&products_id=1') . '"><img src="images/graphic.jpg" alt="Graphic" name="../images/graphic" width="66" height="100" border="0" id="../images/graphic"></a></p>'; ?>

Of course you have to change the name ot the graphic and the category and the product id in cPath=1&products_id=1

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...