Author Topic: Custom fields display change it in invioce  (Read 169 times)

Huubs

  • Jr. Member
  • **
  • Posts: 214
Custom fields display change it in invioce
« on: February 04, 2020, 13:59:44 pm »
Hello,

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

Code: [Select]
*custom_field_title* *custom_field_value*
Now I want to change this so I can style it a bit:

Code: [Select]
<strong>*custom_field_title*</strong><br />
*custom field_value*

I checked the template and it displays this:

Code: [Select]
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

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4329
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Custom fields display change it in invioce
« Reply #1 on: February 04, 2020, 17:59:18 pm »
You can overide /components/com_virtuemart/sublayouts/customfield.php in your template i think.
> function renderCustomfieldsCart