News:

Support the VirtueMart project and become a member

Main Menu

Echo salesprice on categories view

Started by Menace, August 02, 2012, 11:53:11 AM

Previous topic - Next topic

Menace

I am still looking desperately for a solution how to echo the salesprice of a certain procuct on categories overview.
When my categories are listed in the frontend, I would like to add a pricetag which calls the lowest price of the products that are in the category.

I use salesprice only, vm setup as catalogue.

This way I want to be able to show customers an "as low as $xxx,xx"


The code should be placed as shown below in ...template/com_virtuemart/category/default.php:
// Show Category ?>
<div class="category floatleft<?php echo $category_cellwidth $show_vertical_separator ?>">
<div class="spacer">
<h2>
<a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>">
<?php echo $category->category_name ?>
<br />
<?php // if ($category->ids) {
echo $category->images[0]->displayMediaThumb("",false); 
//} ?>

</a>
</h2>
                                         -------THE CODE SHOULD BE PLACED HERE!-------
</div>