News:

Looking for documentation? Take a look on our wiki

Main Menu

Display Field name in product view

Started by mratki, October 07, 2021, 11:29:03 AM

Previous topic - Next topic

mratki

Hello, how to display text "Price" before cost price? For example PRICE: 15.670,98 kn
Same question with manufacturers, example MANUFACTURER: Bartscher

Regards,
M

Studio 42

IN Virtuemart >Configuration
Price tab, you can select if you want see the label or not.
For "manufacturer" this need to be changed in the PHP file
See /components/com_virtuemart/views/productdetails/tmpl/default_manufacturer.php
You should create an overide in your template to not loose changes on Virtuemart update
Free XML sitemap generator [url="http://shop.st42.fr/en/catalog/products/virtuemart-2-sitemap.htm"]http://shop.st42.fr/en/catalog/products/virtuemart-2-sitemap.htm[/url]  , Free Unused Image cleaner [url="http://shop.st42.fr/en/products/virtuemart-media-folder-clear.htm"]http://shop.st42.fr/en/products/virtuemart-media-folder-clear.htm[/url]
Language Switch in product & category [url="http://shop.st42.fr/en/categories-tools/multi-language-for-virtuemart.htm"]http://shop.st42.fr/en/categories-tools/multi-language-for-virtuemart.htm[/url]
More extentions [url="http://shop.st42.fr/en/"]http://shop.st42.fr/en/[/url]

mratki

Thanks for a quick reply.
I have enabled all labels but the price label is still not displaying, I quess it's hided somewhere else...
So what exactly should be changed in manufacturers php file? I'm kinda new with php and all that stuff...

Regards,
M

Studio 42

replace
echo implode(', ',$mans);
with
echo 'manufacturer :  '.implode(', ',$mans);

Or with Joomla language support
echo jText::_('COM_VIRTUEMART_PRODUCT_DETAILS_MANUFACTURER_LBL').implode(', ',$mans);
Free XML sitemap generator [url="http://shop.st42.fr/en/catalog/products/virtuemart-2-sitemap.htm"]http://shop.st42.fr/en/catalog/products/virtuemart-2-sitemap.htm[/url]  , Free Unused Image cleaner [url="http://shop.st42.fr/en/products/virtuemart-media-folder-clear.htm"]http://shop.st42.fr/en/products/virtuemart-media-folder-clear.htm[/url]
Language Switch in product & category [url="http://shop.st42.fr/en/categories-tools/multi-language-for-virtuemart.htm"]http://shop.st42.fr/en/categories-tools/multi-language-for-virtuemart.htm[/url]
More extentions [url="http://shop.st42.fr/en/"]http://shop.st42.fr/en/[/url]

mratki

It's working, thank you so much!

Regards,
M