Hi Frosticek, i created an attribute with id "18" for "CARS" category and i m using the function
<?php if(function_exists('atr_show_attribute')) { echo atr_show_attribute(18); } ?>
so i can display that attribute in a specific position at item page.
However if you use that function there are 2 problems.
1ST problem: The attribute label is visible on all categories (it must be visible only in CARS category)
2ND problem: The attribute label is still been visible no matter if the attribute value is empty or not.
FOR EXAMPLE I CREATED THE FOLLOWING ATTRIBUTE ONLY FOR THE CARS CATEGORY:
ATTRIBUTE ID= 18
ATTRIBUTE LABEL= TOP SPEED
ATTRIBUTE VALUE= 250mph
when i add this code in item page file
<?php if(function_exists('atr_show_attribute')) { echo atr_show_attribute(18); } ?>
On CARS category it works OK and display: TOP SPEED - 250mph
On PHONES category it display only the label: TOP SPEED (It should hide not only the value of the attribute but also the label!)
On CARS category again if i leave empty the value of the attribute it still display only the label: TOP SPEED (It should hide not only the value of the attribute but also the label when the value is empty!)
Could you please provide a quick fix for that as i need to launch my site ASAP ?
Thanks in advance Frosticek.