Hello,
Can somebody please help me to display the BasePrice in Category view instead of the FinalPrice?
I am using VM2.0.8e
Joomla2.5.6
Thx
in your components/com_virtuemart/views/category/tmpl/default.php around line 283 there is code to do this..
if ($this->showBasePrice) {
echo $this->currency->createPriceDiv ('basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $product->prices);
echo $this->currency->createPriceDiv ('basePriceVariant', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT', $product->prices);
}
is $this->showBasePrice set? It will be a setting in VM admin
Hello and thx for your reply.
the code you mentioned does not exist in line 283.
There is a setting in VM admin Configuration to display the Baseprice and I have checked this option. However, the base-price is shown at the Product Details and on the shopping cart only. The Baseprice is not displayed on the Category view.
When viewing the Category view the Final Price is shown. I would like to display the Baseprice on the Category view only.
I hope my question is clear.. i really need the help
thank you in advance
just try this in your category template
echo $this->currency->createPriceDiv ('basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $product->prices);
but you should really be using 2.0.18a
You are the best! thx it works :)