Skip to main content

custom field not showing

10 years 1 month ago #252783 by jouwnaambord.nl
-- url of the page with the problem -- : www.jouwnaambord.nl/naamborden/aluminium-naambord-zakelijk
-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6
-- Browser(s) name and version -- : all

Hi,

Just updated to hikashop 2.6.4.

One customfield with expected deliverytime shown is not working properly. It's normaly shown at default and changes when a radiobutton is changed by the user. But now the defaulttext will only popup when the (not default) radiobutton is clicked. Once clicked the text changes as it should. See screenshots.

B.R.
Michel

Please Log in or Create an account to join the conversation.

10 years 1 month ago - 10 years 1 month ago #252786 by nicolas
Replied by nicolas on topic custom field not showing
Hi,

Try to add the code:
Code:
foreach ($itemFields as $fieldName => $oneExtraField) { if(empty($element->$fieldName)) { $element->$fieldName = $oneExtraField->field_default; } }
after the line:
Code:
$itemFields = $fieldsClass->getFields('display:field_item_product_show=1', $element, 'item', 'checkout&task=state');
in the file components/com_hikashop/views/product/view.html.php
Last edit: 10 years 1 month ago by nicolas.
The following user(s) said Thank You: jouwnaambord.nl

Please Log in or Create an account to join the conversation.

10 years 1 month ago #252857 by jouwnaambord.nl
Hi Nicolas,

Yes that did the trick, thanks again!

Michel.

Please Log in or Create an account to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum