Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing product reference for clickable graphic


JLinder

Recommended Posts

I am fumbling through the customization process for a template...There are several boxes on the main page that have clickable links that go to the fake products that populated the template when I bought it. Now that I have my own products in the catalog I want to have these clickable boxes point to MY stuff... How do I change the references for these links?

 

Here is the whole section, but the reference to the clickable graphics (m24.jpg) is in the last few lines.

 

Thanks 10^6

Jon

 

Applicable code:

<!-- new_products //-->
<?php
 $info_box_contents = sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B'));
 if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) {
$new_products_query = tep_db_query("select p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where products_status = '1' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);
 } else {
$new_products_query = tep_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . (int)$new_products_category_id . "' and p.products_status = '1' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);
 }
 $row = 0;
 $col = 0;
?>
	 	 <table border="0" cellspacing="0" cellpadding="0">
		  <tr><td><a href="<?=tep_href_link('index.php','cPath=1')?>"><?=tep_image(DIR_WS_IMAGES.'m24.jpg')?></a></td>
			  <td width="6"></td>
			  <td>
			   <table border="0" cellspacing="0" cellpadding="0">
				<tr><td>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...