-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3.24
I'm trying to switch parts of a product's description based on values of that product's custom fields. I have the Nonumber Sourcerer extension to help place php in the product description. I have been able to get Sourcerer to do simple echo's and some other stuff. I can't get it to retrieve the custom field's value though. I'm still learning php and very new to Hikashop, so I'm sure it's my php code. The code I currently have is:
{source}
[[?php
$fieldClass = hikashop_get('class.field');
$fieldClass = $fieldClass->getField('headstamp','product');
echo $fieldClass->field_value[value];
?]]
{/source}
Right now I was just trying to get the output of the actual value, but I can't get that. I'm not sure if I have the right class or function. Eventually I want it to output a different description based on the value of the headstamp custom field. Any help would greatly be appreciated.