AlegroCart open source E-commerce
Web hosting by Host1Plus

image when the product is in special price

Support for Template related issues

image when the product is in special price

Postby 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 4616 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
Oistacus
 
Posts: 133
Joined: Sat Oct 08, 2011 3:21 pm
Location: Matera ITALY

Return to Template Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron