Edit module Tophits products

02.12.2012 12:00
#1
nomak1
Joomshopping forum user no avatar
Name: nomak1
13.05.2012
Posts: 1
Quote
Edit module Tophits products

Hello I want the output modules: title, picture, description, price and buy button. To do this I changed the code (modules/mod_jshopping_tophits_products/tmpl/default.php) to this:
[code]
<div class="tophits_products">
<?php foreach($last_prod as $curr){ ?>
<div class="block_item">
<?php if ($show_image) { ?>
<div class="item_image">
<a href="<?php print $curr->product_link?>">
<img src = "<?php print $jshopConfig->image_product_live_path?>/<?php if ($curr->product_thumb_image) print $curr->product_thumb_image; else print $noimage?>" alt="" />
</a>
</div>
<?php } ?>
<div class="item_name">
<a href="<?php print $curr->product_link?>"><?php print $curr->name?></a>
</div>


<div class="description">
<?php print $curr->short_description?>
</div>
<?php if ($curr->_display_price){?>
<div class="item_price">
<?php print formatprice($curr->product_price);?>
<div class="buttons">
<a class="button_buy_mod" href="<?php print $curr->buy_link?>"><?php print _JSHOP_BUY?></a>
</div>
</div>

<?php }?>
</div>
<?php } ?>
</div>

[/code]
Everything works, except the purchase - but it appears not form a link. Help please.

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.