+ Reply to Thread
Results 1 to 7 of 7

Thread: Display parent category along with the sub-category in the 'category' field

  1. #1
    Senior Member
    Join Date
    Dec 2012
    Posts
    102

    Display parent category along with the sub-category in the 'category' field

    Hello,
    I use auto classifieds version 4.1 and i need to display the parent category (maker) along with the sub-category(model) in the 'category' field in the listing details. See attached images to understand what i'm talking about. Anyone has any ideas how i can do it?

    In the attached screenshot, it's a BMW 3 series so in the category field i want to display BMW 3 Series and not just '3 Series' as it is now. But only there. i don't want to mess up anything else.

    Thanks in advance,
    Alex
    Attached Images Attached Images

  2. #2
    Hello Alex,

    You can use variable in template {$bread_crumbs}

    ftp:templates>>your_template>>tpl>>controllers>>li sting_details.tpl

    and check this array {$bread_crumbs|@print_r} - smarty syntax.
    if you want we can do it. But you should create ticket for that with your request and we will do it ASAP.
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #3
    Senior Member
    Join Date
    Dec 2012
    Posts
    102
    Hi Viktor,
    Thanks for your quick reply. I did this but i thought it would also take effect in the listings boxes (see attached screenshot). sorry for this. How can i change that as well?

    Also, what i did in listing_details.tpl is this:

    Code:
    Only registered members can view the code.
    can you confirm i did it right?

    If you can do it for me, check ticket ESF-310216 for ftp access.

    Thank you
    Attached Images Attached Images

  4. #4
    Hello Alex,

    yes you are right,

    I have did it for browse and search pages too.

    You can see it in ftp://includes>>classes>>rlListings.class.php at line ~ 843

    after that:

    Code:
    Only registered members can view the code.
    add this code:

    Code:
    Only registered members can view the code.
    Then open ftp://includes>>classes>>rlSearch.class.php at line ~ 481

    after that:

    Code:
    Only registered members can view the code.
    add new code:

    Code:
    Only registered members can view the code.
    Then go to: ftp://templates>>your_template>>tpl>>blocks>>listing.tpl

    find code at line ~44

    Code:
    Only registered members can view the code.
    and add:

    Code:
    Only registered members can view the code.
    then at line ~ 101 find:

    Code:
    Only registered members can view the code.
    before add:
    Code:
    Only registered members can view the code.
    I have added it on your site. You can check it only. But I wrote instruction for other people if anybody want same customization
    Viktor,
    Flynax technical department,
    Best wishes.

  5. #5
    Senior Member
    Join Date
    Dec 2012
    Posts
    102
    Hi Viktor,
    It works as asked and thank you very much but you missed two pages:
    1. http://auto.demoflynax.com/recently-added.html <--didn't change on the recently added listings page
    2. http://auto.demoflynax.com/autos/ford/mustang/ <--and also on the individual listing type it didn't change

    I can't figure out what files to change for these pages. Can you help?

    Thanks for your time and help Viktor

  6. #6
    Hello Alex,

    Yes you are right I forgot about it.

    Please go to ftp://includes>>classes>>rlListings.class.php

    find method: getListings and code:

    PHP Code:
    Only registered members can view the code
    and after it add new:

    PHP Code:
    Only registered members can view the code
    then find method: getListingsByAccount

    find code:

    PHP Code:
    Only registered members can view the code
    after it add new:

    PHP Code:
    Only registered members can view the code
    then find method: getRecentlyAdded
    find code:

    PHP Code:
    Only registered members can view the code
    after it add new:

    PHP Code:
    Only registered members can view the code
    save and check again.


    P.S. For Alex I have added this code already. Please check it only.
    Viktor,
    Flynax technical department,
    Best wishes.

  7. #7
    Senior Member
    Join Date
    Dec 2012
    Posts
    102
    Hey,
    It works Thanks

+ Reply to Thread