News:

Looking for documentation? Take a look on our wiki

Main Menu

How to display the Baseprice in Category view?

Started by cleverbargain, February 13, 2013, 17:03:38 PM

Previous topic - Next topic

cleverbargain

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


GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

cleverbargain

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

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

cleverbargain