Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to show an image depending from price in product_info.php


luckyno

Recommended Posts

Posted

add this code and customize it:

 

<?php if($product_info['products_price'] >= 700){ 
 echo '<tr><td colspan="2">'; 
 echo tep_image(DIR_WS_IMAGES . 'freedel.gif'); 
 echo '</td></tr>'; }?>

 

tha firs and the last echos can be modified to match your html code.

 

the >=700 is the price... you can change it...

 

I use this code to show a picture with free shipping for items with price higher than 700 swiss francs.

I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages!

Archived

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

×
×
  • Create New...