[Skip to main content](#vessel-content)

#   Hide empty specifications

##

- **[anypc](/forum/user/9451-anypc "View anypc's Profile")**
- [![anypc's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9451.jpg)](/forum/user/9451-anypc "View anypc's Profile") Topic Author
- [ Offline](/forum/user/9451-anypc)
- AnY-Shop.nl

Less More

- Posts: 154
- Thank you received: 10
-
-
-
- [](http://www.AnY-Shop.nl)
-

12 years 3 months ago [\#164801](#164801) by [anypc](/forum/user/9451-anypc "View anypc's Profile")  *[Hide empty specifications](/forum/26-product-category-display/869835-hide-empty-specifications#164801 "Hi there!  I'm having trouble with a webshop: The product view shows specifications such as condition, shipping cost etcetera. The fields that I leave blank also appear in the product view.  Another webshop i created (my own) doesnt show these fields when left blank.  The only difference is that the other shop is on joomla 2.5.X and this one is on joomla 3  Anyone know where to edit this?")* was created by *[anypc](/forum/user/9451-anypc "View anypc's Profile")*

Hi there!

I'm having trouble with a webshop:
The product view shows specifications such as condition, shipping cost etcetera.
The fields that I leave blank also appear in the product view.

Another webshop i created (my own) doesnt show these fields when left blank.

The only difference is that the other shop is on joomla 2.5.X and this one is on joomla 3

Anyone know where to edit this?

---

Proud of my website [ www.hetcomputerwinkeltje.nl](http://www.hetcomputerwinkeltje.nl)

Currently just running catalog mode, but hope to go live soon again ![:)](/media/kunena/emoticons/3.png ":)")

- [ ![h0403fb0.jpg](/forum/attachment/18578) ](/forum/attachment/18578 "h0403fb0.jpg") [ ](/forum/attachment/18578?download=1 "h0403fb0.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njk4MzUtaGlkZS1lbXB0eS1zcGVjaWZpY2F0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 3 months ago [\#164803](#164803) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Hide empty specifications](/forum/26-product-category-display/869835-hide-empty-specifications#164803 "Hi there!  I'm having trouble with a webshop: The product view shows specifications such as condition, shipping cost etcetera. The fields that I leave blank also appear in the product view.  Another webshop i created (my own) doesnt show these fields when left blank.  The only difference is that the other shop is on joomla 2.5.X and this one is on joomla 3  Anyone know where to edit this?")*

Hi,

Thanks to check if your view "product / show_block_custom_main" has not been edited.
There is indeed a code in that view which check if the value is empty or not, if empty, we skip the display.
Code:

$value = ''; if(empty($this-&gt;element-&gt;$fieldName) &amp;&amp; !empty($this-&gt;element-&gt;main-&gt;$fieldName))$this-&gt;element-&gt;$fieldName = $this-&gt;element-&gt;main-&gt;$fieldName; if(isset($this-&gt;element-&gt;$fieldName)) $value = trim($this-&gt;element-&gt;$fieldName); if (!empty ($value) &#124;&#124; $value == 0) { ...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njk4MzUtaGlkZS1lbXB0eS1zcGVjaWZpY2F0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[anypc](/forum/user/9451-anypc "View anypc's Profile")**
- [![anypc's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9451.jpg)](/forum/user/9451-anypc "View anypc's Profile") Topic Author
- [ Offline](/forum/user/9451-anypc)
- AnY-Shop.nl

Less More

- Posts: 154
- Thank you received: 10
-
-
-
- [](http://www.AnY-Shop.nl)
-

12 years 3 months ago [\#164901](#164901) by [anypc](/forum/user/9451-anypc "View anypc's Profile")  Replied by *[anypc](/forum/user/9451-anypc "View anypc's Profile")* on topic *[Hide empty specifications](/forum/26-product-category-display/869835-hide-empty-specifications#164901 "Hi there!  I'm having trouble with a webshop: The product view shows specifications such as condition, shipping cost etcetera. The fields that I leave blank also appear in the product view.  Another webshop i created (my own) doesnt show these fields when left blank.  The only difference is that the other shop is on joomla 2.5.X and this one is on joomla 3  Anyone know where to edit this?")*

Hello Xavier, Thanx for your answer, this is what the file looks like: Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.3.2 * @author hikashop.com * @copyright (C) 2010-2014 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;?php $this-&gt;fieldsClass-&gt;prefix = ''; $displayTitle = false; ob_start(); foreach ($this-&gt;fields as $fieldName =&gt; $oneExtraField) { $value = ''; if(empty($this-&gt;element-&gt;$fieldName) &amp;&amp; !empty($this-&gt;element-&gt;main-&gt;$fieldName))$this-&gt;element-&gt;$fieldName = $this-&gt;element-&gt;main-&gt;$fieldName; if(isset($this-&gt;element-&gt;$fieldName)) $value = trim($this-&gt;element-&gt;$fieldName); if (!empty ($value) &#124;&#124; $value == 0) { $displayTitle = true; ?&gt; &lt;tr class="hikashop_product_custom_&lt;?php echo $oneExtraField-&gt;field_namekey;?&gt;_line"&gt; &lt;td class="key"&gt; &lt;span id="hikashop_product_custom_name_&lt;?php echo $oneExtraField-&gt;field_id;?&gt;" class="hikashop_product_custom_name"&gt; &lt;?php echo $this-&gt;fieldsClass-&gt;getFieldName($oneExtraField);?&gt; &lt;/span&gt; &lt;/td&gt; &lt;td&gt; &lt;span id="hikashop_product_custom_value_&lt;?php echo $oneExtraField-&gt;field_id;?&gt;" class="hikashop_product_custom_value"&gt; &lt;?php echo $this-&gt;fieldsClass-&gt;show($oneExtraField,$value); ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } } $specifFields = ob_get_clean(); if($displayTitle){ ?&gt; &lt;div id="hikashop_product_custom_info_main" class="hikashop_product_custom_info_main"&gt; &lt;h4&gt;&lt;?php echo JText::_('SPECIFICATIONS');?&gt;&lt;/h4&gt; &lt;table width="100%"&gt; &lt;?php echo $specifFields; ?&gt; &lt;/table&gt; &lt;/div&gt; &lt;?php }

I'm no programmer but I think the code is there? It still shows empty fields ![:(](/media/kunena/emoticons/22.png ":(")

---

Proud of my website [ www.hetcomputerwinkeltje.nl](http://www.hetcomputerwinkeltje.nl)

Currently just running catalog mode, but hope to go live soon again ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njk4MzUtaGlkZS1lbXB0eS1zcGVjaWZpY2F0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 3 months ago [\#164940](#164940) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Hide empty specifications](/forum/26-product-category-display/869835-hide-empty-specifications#164940 "Hi there!  I'm having trouble with a webshop: The product view shows specifications such as condition, shipping cost etcetera. The fields that I leave blank also appear in the product view.  Another webshop i created (my own) doesnt show these fields when left blank.  The only difference is that the other shop is on joomla 2.5.X and this one is on joomla 3  Anyone know where to edit this?")*

Hi,

Are you sure that you don't have spaces, or anything else in the field ?
Is it really empty ?

Are these fields custom fields you created, or default fields or the product edition page ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njk4MzUtaGlkZS1lbXB0eS1zcGVjaWZpY2F0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Superpsychics](/forum/user/31898-superpsychics "View Superpsychics's Profile")**
- [![Superpsychics's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31898-superpsychics "View Superpsychics's Profile")
- [ Offline](/forum/user/31898-superpsychics)

Less More

- Posts: 18
- Thank you received: 0
-
-

12 years 3 months ago -  12 years 3 months ago [\#165551](#165551) by [Superpsychics](/forum/user/31898-superpsychics "View Superpsychics's Profile")  Replied by *[Superpsychics](/forum/user/31898-superpsychics "View Superpsychics's Profile")* on topic *[Hide empty specifications](/forum/26-product-category-display/869835-hide-empty-specifications#165551 "Hi there!  I'm having trouble with a webshop: The product view shows specifications such as condition, shipping cost etcetera. The fields that I leave blank also appear in the product view.  Another webshop i created (my own) doesnt show these fields when left blank.  The only difference is that the other shop is on joomla 2.5.X and this one is on joomla 3  Anyone know where to edit this?")*

Hey,

Same problem here. All empty custom fields appeared in the front end after updating to 2.3.2
"product / show_block_custom_main" looks fine and all fields are indeed empty (no spaces etc.)

Please advise! Thank you

Last edit: 12 years 3 months ago by [Superpsychics](/forum/user/31898-superpsychics "View Superpsychics's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njk4MzUtaGlkZS1lbXB0eS1zcGVjaWZpY2F0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

12 years 3 months ago [\#165582](#165582) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide empty specifications](/forum/26-product-category-display/869835-hide-empty-specifications#165582 "Hi there!  I'm having trouble with a webshop: The product view shows specifications such as condition, shipping cost etcetera. The fields that I leave blank also appear in the product view.  Another webshop i created (my own) doesnt show these fields when left blank.  The only difference is that the other shop is on joomla 2.5.X and this one is on joomla 3  Anyone know where to edit this?")*

You can see the check :
if (!empty ($value) &#124;&#124; $value == 0) {
which makes sure that product fields only display if something was entered in them.
So I don't see how that's possible that the custom field displays without value in them.
I've checked on our end and could not reproduce the problem.
So either you have something in the fields (a space, or some other kind of blank character) or you have modified the code in some way and you're not looking at the view file for the correct template.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njk4MzUtaGlkZS1lbXB0eS1zcGVjaWZpY2F0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Superpsychics](/forum/user/31898-superpsychics "View Superpsychics's Profile")**
- [![Superpsychics's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31898-superpsychics "View Superpsychics's Profile")
- [ Offline](/forum/user/31898-superpsychics)

Less More

- Posts: 18
- Thank you received: 0
-
-

12 years 3 months ago [\#165662](#165662) by [Superpsychics](/forum/user/31898-superpsychics "View Superpsychics's Profile")  Replied by *[Superpsychics](/forum/user/31898-superpsychics "View Superpsychics's Profile")* on topic *[Hide empty specifications](/forum/26-product-category-display/869835-hide-empty-specifications#165662 "Hi there!  I'm having trouble with a webshop: The product view shows specifications such as condition, shipping cost etcetera. The fields that I leave blank also appear in the product view.  Another webshop i created (my own) doesnt show these fields when left blank.  The only difference is that the other shop is on joomla 2.5.X and this one is on joomla 3  Anyone know where to edit this?")*

Hey again,

I just did a quick check in my backup before updating to 2.3.2 and the php code in "show_block_custom_main" was

if (!empty ($value)) {

I changed it to that instead of the: if (!empty ($value) &#124;&#124; $value == 0) { you suggested which was already in the view file "show_block_custom_main" after the update, and it now works.

The " &#124;&#124; $value == 0) " part of your suggestion seems to be wrong.

Thank you for your prompt reply regardless.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njk4MzUtaGlkZS1lbXB0eS1zcGVjaWZpY2F0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[chris711](/forum/user/371-chris711 "View chris711's Profile")**
- [![chris711's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/371-chris711 "View chris711's Profile")
- [ Offline](/forum/user/371-chris711)

Less More

- Posts: 96
- Thank you received: 4
-
-

12 years 2 months ago [\#168503](#168503) by [chris711](/forum/user/371-chris711 "View chris711's Profile")  Replied by *[chris711](/forum/user/371-chris711 "View chris711's Profile")* on topic *[Hide empty specifications](/forum/26-product-category-display/869835-hide-empty-specifications#168503 "Hi there!  I'm having trouble with a webshop: The product view shows specifications such as condition, shipping cost etcetera. The fields that I leave blank also appear in the product view.  Another webshop i created (my own) doesnt show these fields when left blank.  The only difference is that the other shop is on joomla 2.5.X and this one is on joomla 3  Anyone know where to edit this?")*

business_v2.3.2_2014-08-11_18-22-19 - Joomla 3.3.0

I also had the same issue, where a custom product field was specified, that the heading Specifications and the extra field title were showing, even when the value field was empty. The suggested change to products/show/block_custom_main.php solved that problem for me also.

The Specifications Div now only displays when the extra field is populated.

Thank you to Superpsychics

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njk4MzUtaGlkZS1lbXB0eS1zcGVjaWZpY2F0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

12 years 2 months ago -  12 years 2 months ago [\#168507](#168507) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Hide empty specifications](/forum/26-product-category-display/869835-hide-empty-specifications#168507 "Hi there!  I'm having trouble with a webshop: The product view shows specifications such as condition, shipping cost etcetera. The fields that I leave blank also appear in the product view.  Another webshop i created (my own) doesnt show these fields when left blank.  The only difference is that the other shop is on joomla 2.5.X and this one is on joomla 3  Anyone know where to edit this?")*

Hi,

Thanks for your feedback.
We are investigating on that problem in order to fix it in the next release.
The most difficult part will be to reproduce your problem ; so having details about your configuration could help us to reproduce it and be sure of the fix.
The other possibility is to let you test a potential fix.
Can you please test with the code Code:

if(!empty($value) &#124;&#124; $value === '0') {

and tell us if the result is good for you ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 12 years 2 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

The following user(s) said Thank You: [anypc](/forum/user/9451-anypc "View anypc's Profile"), [krir](/forum/user/31669-krir "View krir's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njk4MzUtaGlkZS1lbXB0eS1zcGVjaWZpY2F0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[chris711](/forum/user/371-chris711 "View chris711's Profile")**
- [![chris711's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/371-chris711 "View chris711's Profile")
- [ Offline](/forum/user/371-chris711)

Less More

- Posts: 96
- Thank you received: 4
-
-

12 years 2 months ago [\#168636](#168636) by [chris711](/forum/user/371-chris711 "View chris711's Profile")  Replied by *[chris711](/forum/user/371-chris711 "View chris711's Profile")* on topic *[Hide empty specifications](/forum/26-product-category-display/869835-hide-empty-specifications#168636 "Hi there!  I'm having trouble with a webshop: The product view shows specifications such as condition, shipping cost etcetera. The fields that I leave blank also appear in the product view.  Another webshop i created (my own) doesnt show these fields when left blank.  The only difference is that the other shop is on joomla 2.5.X and this one is on joomla 3  Anyone know where to edit this?")*

Hi Jerome,

I tested with " if(!empty($value) &#124;&#124; $value === '0') { " - that code works fine and the Specifications Header and fields are not visible when there is no content in the extra field. If the extra field is populated with a value of '0' or any other value, then the Div with header 'Specifications' and the field Title are visible with the input value also showing.

Should you wish to replicate for testing - I added a single custom product field 'Pallet Quantity' set to show on both frontend and backend - it is not set as a required field as it only applies to a small number of products.

Best Regards

Chris

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njk4MzUtaGlkZS1lbXB0eS1zcGVjaWZpY2F0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[anypc](/forum/user/9451-anypc "View anypc's Profile")**
- [![anypc's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9451.jpg)](/forum/user/9451-anypc "View anypc's Profile") Topic Author
- [ Offline](/forum/user/9451-anypc)
- AnY-Shop.nl

Less More

- Posts: 154
- Thank you received: 10
-
-
-
- [](http://www.AnY-Shop.nl)
-

12 years 2 months ago [\#169822](#169822) by [anypc](/forum/user/9451-anypc "View anypc's Profile")  Replied by *[anypc](/forum/user/9451-anypc "View anypc's Profile")* on topic *[Hide empty specifications](/forum/26-product-category-display/869835-hide-empty-specifications#169822 "Hi there!  I'm having trouble with a webshop: The product view shows specifications such as condition, shipping cost etcetera. The fields that I leave blank also appear in the product view.  Another webshop i created (my own) doesnt show these fields when left blank.  The only difference is that the other shop is on joomla 2.5.X and this one is on joomla 3  Anyone know where to edit this?")*

Thank you Jerome!

Replacing Code:

if (!empty ($value) &#124;&#124; $value == 0) {

with Code:

if(!empty($value) &#124;&#124; $value === '0') {

Did the trick!

It now ignores empty fields!

---

Proud of my website [ www.hetcomputerwinkeltje.nl](http://www.hetcomputerwinkeltje.nl)

Currently just running catalog mode, but hope to go live soon again ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njk4MzUtaGlkZS1lbXB0eS1zcGVjaWZpY2F0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[uteco](/forum/user/5467-uteco "View uteco's Profile")**
- [![uteco's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5467-uteco "View uteco's Profile")
- [ Offline](/forum/user/5467-uteco)

Less More

- Posts: 43
- Thank you received: 3
-
-

11 years 5 months ago -  11 years 5 months ago [\#203394](#203394) by [uteco](/forum/user/5467-uteco "View uteco's Profile")  Replied by *[uteco](/forum/user/5467-uteco "View uteco's Profile")* on topic *[Hide empty specifications](/forum/26-product-category-display/869835-hide-empty-specifications#203394 "Hi there!  I'm having trouble with a webshop: The product view shows specifications such as condition, shipping cost etcetera. The fields that I leave blank also appear in the product view.  Another webshop i created (my own) doesnt show these fields when left blank.  The only difference is that the other shop is on joomla 2.5.X and this one is on joomla 3  Anyone know where to edit this?")*

Besides the custom values within the product page, there is also the compare page, which shows these custom values.
For some reason, I guess it must be in views -&gt; compare.php, the empty values(their titles, as the values are empty!) are shown.

Is there something we could add in order not to show them as well in the compare page?

Thank you

Last edit: 11 years 5 months ago by [uteco](/forum/user/5467-uteco "View uteco's Profile"). Reason: Thnak -&gt; Thank

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njk4MzUtaGlkZS1lbXB0eS1zcGVjaWZpY2F0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

11 years 5 months ago [\#203402](#203402) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide empty specifications](/forum/26-product-category-display/869835-hide-empty-specifications#203402 "Hi there!  I'm having trouble with a webshop: The product view shows specifications such as condition, shipping cost etcetera. The fields that I leave blank also appear in the product view.  Another webshop i created (my own) doesnt show these fields when left blank.  The only difference is that the other shop is on joomla 2.5.X and this one is on joomla 3  Anyone know where to edit this?")*

Hi,

You could add the code: Code:

$display = false; foreach($this-&gt;elements as $element) { if(!empty($element-&gt;$fieldName) &#124;&#124; $element-&gt;$fieldName === '0') { $display = true; } } if(!$display) continue;

after the code: Code:

if($oneExtraField-&gt;field_type != "customtext") {

in the file "compare" via the menu Display&gt;Views.

The following user(s) said Thank You: [uteco](/forum/user/5467-uteco "View uteco's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njk4MzUtaGlkZS1lbXB0eS1zcGVjaWZpY2F0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[uteco](/forum/user/5467-uteco "View uteco's Profile")**
- [![uteco's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5467-uteco "View uteco's Profile")
- [ Offline](/forum/user/5467-uteco)

Less More

- Posts: 43
- Thank you received: 3
-
-

11 years 5 months ago [\#203522](#203522) by [uteco](/forum/user/5467-uteco "View uteco's Profile")  Replied by *[uteco](/forum/user/5467-uteco "View uteco's Profile")* on topic *[Hide empty specifications](/forum/26-product-category-display/869835-hide-empty-specifications#203522 "Hi there!  I'm having trouble with a webshop: The product view shows specifications such as condition, shipping cost etcetera. The fields that I leave blank also appear in the product view.  Another webshop i created (my own) doesnt show these fields when left blank.  The only difference is that the other shop is on joomla 2.5.X and this one is on joomla 3  Anyone know where to edit this?")*

the solution worked perfectly. thank you very much.

I think this option could be implemented in future releases, tough i know this thread is not the whishing section!

However, I am very happy as it solves allot of problems in my case.
Michael

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njk4MzUtaGlkZS1lbXB0eS1zcGVjaWZpY2F0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.095 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
