still show "Price" label even after set "Use only as catalogue"

Started by baijianpeng, May 26, 2014, 05:48:40 AM

Previous topic - Next topic

baijianpeng

Joomla 2.5.20
VirtueMart 2.6.4
Mono-language website

In VM configuration, I choose "Use only as catalogue" to use the whole VM component as products showcase system.

Then, I noticed that on the frontend product detail page, the label "Price:" is still showing without price number and unit following. Obviusly this should not happen.

This must be a bug of VM 2.6.4. Or, maybe I missed an setting option of "hide price label if Use as catalogue"? But I did not find such an option to choose.

Hope someone of VM team will confirm this and fix it.

Thanks.

http://www.joomlagate.com/

Chinese Joomla Users Portal

GJC Web Design

Yes - it is wrong in VM

over ride   components/com_virtuemart/views/productdetails/tmpl/default_showprices.php

and surround ~ line 24 with

if (!VmConfig::get('use_as_catalog', 0)  ) {

//

}

so

if (!VmConfig::get('use_as_catalog', 0)  ) {
if (!empty($this->product->prices['salesPrice'])) {
echo "<strong>" . JText::_ ('COM_VIRTUEMART_CART_PRICE') . "</strong>";
}
}
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

baijianpeng

Thank you, your code works fine.

Well, I still hope the VM team member will accept this as a bug and fix it in newer version.

Thanks.
http://www.joomlagate.com/

Chinese Joomla Users Portal