News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

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

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);

mratki

It's working, thank you so much!

Regards,
M