iankil, on 02 January 2012, 14:03, said:
Hi, you can use this code and paste in in /includes/modules/product_listing.php:
<a href="' . tep_href_link('product_info.php','products_id=' . $listing['products_id']) . '"><img src="layout/images/more_info.gif" border="0" alt=" " /></a> <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '"><img src="layout/images/button_buy_now.gif" border="0" alt=" " /></a>
its a "more info" and a "buy now" button. These buttons requires two images, button_buy_now.gif and more_info.gif
The most simple way to do this is to download my Horizon2.3 template from the add on page
http://addons.oscommerce.com/info/8289 and open the file and take a look. You will also find the buttons there.
Good Luck
/Janne
Hi Janne,
thanks for you help but the page im referring to is /includes/modules/new_products.php
below is where i "THINK" needs modification
$new_prods_content .= '<div class="item"><div class="item-name"><center><p><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a></p></center></div><div class="item-image"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></div><div class="item-price"><p>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</p></div></div>';
This is the original version plus a few css tweaks to add my classes
any suggestions?
Yellowboy