Hide individual specifications

  • Posts: 93
  • Thank you received: 3
11 years 2 months ago #161549

-- url of the page with the problem -- : in development
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 3.3
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hi,
I hope this is an easy one, I have about 15 custom product fields which show up in the specification section perfectly however I want to hide those that have a blank value, I can see that I think its the view block_custom_item (though maybe wrong) but not sure what code to put where to hide the blank ones.

Thanks

Tony

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

  • Posts: 13201
  • Thank you received: 2322
11 years 2 months ago #161554

Hi,

You have to edit the view "product / show_block_custom_main" and in the foreach use something like:

if(empty($value)) continue;
after:
	if(isset($this->element->$fieldName))
		$value = trim($this->element->$fieldName);

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

Time to create page: 0.064 seconds
Powered by Kunena Forum