image when the product is in special price

Support for Template related issues
Post Reply
Oistacus
Posts: 133
Joined: Sat Oct 08, 2011 3:21 pm
Location: Matera ITALY

image when the product is in special price

Post by Oistacus » Fri Nov 25, 2011 12:05 pm

Hi ,
right now I added a new image when the product is in special price . When the product is in special price , if I don t click additional info , I don't see the offert . Now , if the product is in special price , I can see a small image to indicate the promotion .
The image :
Immagine.JPG
Immagine.JPG (64.08 KiB) Viewed 7075 times
I edited the file product tpl and insert this line :
<div class="shipping">
<?php if ($shipping) { ?><img src="catalog/styles/<?php echo $this->style?>/image/shippable.png" alt="<?php echo $text_shippable; ?>" title="<?php echo $text_shippable; ?>" ><?php } elseif(!$downloads) { ?><img src="catalog/styles/<?php echo $this->style?>/image/non_shippable.png" alt="<?php echo $text_non_shippable; ?>" title="<?php echo $text_non_shippable; ?>"><?php } ?>
<?php if (isset($product_discounts)){ ?><img src="catalog/styles/<?php echo $this->style?>/image/special_price.gif" alt="<?php echo $text_special_price; ?>" title="<?php echo $text_special_price; ?>"> <?php }?>
<?php if ($downloads) { ?><img src="catalog/styles/<?php echo $this->style?>/image/downloadable.png" alt="<?php echo $text_downloadable; ?>" title="<?php echo $text_downloadable; ?>" >
<span><?php echo $text_downloadable;?>

add in file language the text_special_price , and upload the image . Just a little adjust , but Work fine !!!

Ois

Post Reply