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.