Hello,
i need to detect if customfield in present in product detail page.
I set custom field "Plugin" like "textinput".
in productdetails\default.php i need to know if that customfield is present.
How can i do this?
Thanks!!
joomla 3.7.2 and virtuemart 3.2.2
when i print $this->product->customfields, i see that:
1. if product has custom field the variable is empty
2. if product has not custom field the variable contains Array()
well, i tried with this:
if (!isset($this->product->customfields))
{
//do something...
}
else
{
//do something else ....
}
In you opinion this code may work fine?
Thanks
I use this, IT CHECKS BY POSITION
if (!empty($this->product->customfieldsSorted['MY-POSITION'])) {
// Do something here
}
very well!!
Thank you so much!