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

Custom fields display change it in invioce

Started by Kuubs, February 04, 2020, 13:59:44 PM

Previous topic - Next topic

Kuubs

Hello,

I'd like to change the display of the custom fields in the invoice. At hte moment it gets displayed like this:

*custom_field_title* *custom_field_value*

Now I want to change this so I can style it a bit:

<strong>*custom_field_title*</strong><br />
*custom field_value*


I checked the template and it displays this:

if (!empty($item->product_attribute)) {
if(!class_exists('VirtueMartModelCustomfields'))require(JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'customfields.php');
$product_attribute = VirtueMartModelCustomfields::CustomsFieldOrderDisplay($item,'FE');
echo $product_attribute;
}


But if I check the method there is nothing that I can actually change. Does anyone know how to achieve this?

Studio 42

You can overide /components/com_virtuemart/sublayouts/customfield.php in your template i think.
> function renderCustomfieldsCart