+ Reply to Thread
Results 1 to 7 of 7

Thread: Seller's banner on the seller's page

  1. #1
    Senior Member
    Join Date
    Nov 2021
    Posts
    163

    Seller's banner on the seller's page

    Seller's banner on the seller's page

    I want to display the seller's banner on his page.
    Created a field for uploading a file in the seller's account.
    I write the condition in content.tpl:
    <div class="header-banner-cont w-100 h-100 mx-auto {if !$bread_crumbs_exists}pt-4{/if} d-flex justify-content-center">
    {if $seller_info.Fields.poster_com.value}
    {$seller_info.Fields.poster_com.value}
    {else}
    <div id="header-banner" class="point1 mx-auto overflow-hidden">
    {include file='blocks'|cat:$smarty.const.RL_DS|cat:'header_ banner.tpl'}
    </div>
    {/if}
    </div>

    The banner is displayed on the seller's listings page, but there is no banner on the seller's page((((

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello,

    Actually, the page with seller's listings is the seller's page

    or if you mean the Sellers page, you can create an html box via Content > Content Boxes:

    Box position > Header Banner

    Box type > HTML

    Content > insert your banner content

    Show box on > select a page of your account type

  3. #3
    Senior Member
    Join Date
    Nov 2021
    Posts
    163
    Rudi, i meant the output of a фссщгте custom field with an image

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    I need a particular example of the page where this field doesn't work

  5. #5
    Senior Member
    Join Date
    Nov 2021
    Posts
    163
    Welcome)
    My profile page where the banner should be displayed https://www.helpner.ru/nemo /
    the profile field has been added and the image has been uploaded, but is not displayed.
    And here is the listing page where this image is shown https://www.helpner.ru/russia/ryazan...veloper-4.html
    Last edited by Kaniel Outis; December 21, 2021 at 08:09 AM.

  6. #6
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Go to includes > controllers > account_type.inc.php

    under:
    PHP Code:
    Only registered members can view the code
    add:
    PHP Code:
    Only registered members can view the code

  7. #7
    Senior Member
    Join Date
    Nov 2021
    Posts
    163
    Rudi, it work!

    i write additional rule for type account to display

    {if $pageInfo.Key == 'at_employer'}
    {if $seller_info.Fields.poster_com.value}
    <span class="seller-poster">
    {$seller_info.Fields.poster_com.value}
    </span>
    {/if}
    {else}
    <div id="header-banner" class="point1">
    {include file='blocks'|cat:$smarty.const.RL_DS|cat:'header_ banner.tpl'}
    </div>
    {/if}
    Last edited by Kaniel Outis; December 21, 2021 at 05:08 PM.

+ Reply to Thread