Results 1 to 10 of 50

Thread: Company Name Field Priority

Threaded View

  1. #40
    Senior Member
    Join Date
    Mar 2019
    Location
    Philadelphia, PA, USA
    Posts
    120
    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.