PDA

View Full Version : Hide seller tab if not a dealer



Peter Jonsson
January 4, 2014, 01:12 PM
What code can i use to hide the seller tab on the mobile theme ?



<td class="divider"></td>
<td class="item" abbr="seller">
<table class="sTable">
<tr>
<td class="left"></td>
<td class="center" valign="top"><div>{$lang.seller_info}</div></td>
<td class="right"></td>
</tr>
</table>
</td>

I have tried things like


{if $listing_data_Account_type != dealer}
<td class="divider"></td>
<td class="item" abbr="seller">
<table class="sTable">
<tr>
<td class="left"></td>
<td class="center" valign="top"><div>{$lang.seller_info}</div></td>
<td class="right"></td>
</tr>
</table>
</td>
{/if}

But i cant get it to work.

Chris Brown
January 4, 2014, 02:27 PM
Not sure if this thread may help http://www.flynax.com/forum/showthread.php?780-Remove-seller-info-tab

Peter Jonsson
January 4, 2014, 03:31 PM
I have it working on the main theme but it wont work on the mobiltheme

Mike
January 6, 2014, 10:04 AM
i think better

{if $seller_info.Type != 'dealer'

Peter Jonsson
January 6, 2014, 12:33 PM
Thanks.

Needed to change dealer to buyer then it worked.

Thanks alot Mike!

Chris Brown
January 6, 2014, 12:41 PM
i think better

{if $seller_info.Type != 'dealer'

If I had 2 types of dealer accounts how would you write this code to work for dealer and dealer2 as an example