-
March 19, 2019, 06:54 AM
#40
Senior Member
My listings all have an 'invisible' "Seller Type" field. I was able to get around this by editing /templates/{your-template}/tpl/blocks/listing_details_seller.tpl and changing line 27: {$seller_info.Full_name}
to
{if $listing_data.seller_type_field eq 'seller_type_cdcretail'}
{$seller_info.company_name}
{elseif $listing_data.seller_type_field eq 'seller_type_cdcwholesale'}
{$seller_info.company_name}
{elseif $listing_data.seller_type_field eq 'seller_type_standard_dealer'}
{$seller_info.company_name}
{else}
{$seller_info.Full_name}
{/if}
The {else} section allows my private sellers to have their names displayed while all others display the dealer name. I haven't tried, but I think the code could be modified to pull the account_type so you wouldn't need to add another listing field. There's probably a more eloquent way to write that, but it works.
-Jason
ETA: Sorry, I hadn't read the entire thread and just saw that this solution was already presented. Also, it won't work if you use the IOS/Android Apps.
Last edited by Jason Barbour; March 19, 2019 at 07:04 AM.