+ Reply to Thread
Results 1 to 8 of 8

Thread: "Contact Seller" when price field is empty

  1. #1
    Senior Member
    Join Date
    Jun 2016
    Posts
    185

    "Contact Seller" when price field is empty

    Hi

    How to make it possible to make it show "Contact Seller" when no price is stated. All over the site where price is supposed to show if given.

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

    you can hide account data via tpl files:

    go to templates > your template > settings.tpl.php > edit

    change this row:
    PHP Code:
    Only registered members can view the code
    to:
    PHP Code:
    Only registered members can view the code
    then go to tpl > content.tpl

    find:
    Code:
    Only registered members can view the code.
    and comment out like:
    Code:
    Only registered members can view the code.

  3. #3
    Senior Member
    Join Date
    Jun 2016
    Posts
    185
    Thank you for the answer. Did not see it since it was in another topic this question was.

    But will it hide completely with or just for visitors and show for logged in users.

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    979
    If you need to show this box only for logged in users

    use the code like this:
    PHP Code:
    Only registered members can view the code
    and:
    Code:
    Only registered members can view the code.

  5. #5
    Senior Member
    Join Date
    Jun 2016
    Posts
    185
    Ok. Will try that code.

    For the question of this topic about adding "Contact seller" when a user adds no price. Which file to edit so it effects all places where price is supposed to be shown if price is given.

    For i found a solution, but that solution is only for the details page. And has no effect other places where price is shown.

  6. #6
    Quote Originally Posted by Fadil Asani View Post
    For the question of this topic about adding "Contact seller" when a user adds no price.
    Try to use the following solution:

    Code:
    Only registered members can view the code.
    Viktor,
    Flynax technical department,
    Best wishes.

  7. #7
    Senior Member
    Join Date
    Jun 2016
    Posts
    185
    the second code does not exist anywhere in the template tpl files

  8. #8
    Hello Fadil,

    Excuse me for the wrong info.

    Open file: ftp://templates>>your_template>>tpl>>controllers>>listin g_details.tpl

    find code:
    Code:
    Only registered members can view the code.
    and replace to:
    Code:
    Only registered members can view the code.
    Last edited by Viktor; April 13, 2018 at 02:52 AM.
    Viktor,
    Flynax technical department,
    Best wishes.

+ Reply to Thread