custom field not showing

  • Posts: 507
  • Thank you received: 21
  • Hikashop Business
8 years 1 month ago #252783

-- 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

Attachments:

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
8 years 1 month ago #252786

Hi,

Try to add the code:

foreach ($itemFields as $fieldName => $oneExtraField) {
				if(empty($element->$fieldName)) {
					$element->$fieldName = $oneExtraField->field_default;
				}
			}
after the line:
$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: 8 years 1 month ago by nicolas.
The following user(s) said Thank You: michelpouli

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

  • Posts: 507
  • Thank you received: 21
  • Hikashop Business
8 years 1 month ago #252857

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.064 seconds
Powered by Kunena Forum