View Full Version : Show account type on listing page

Levin Soh
September 11, 2013, 09:48 PM
I have multiple account types (Dealer A, Dealer B etc..)
On listing page (eg : category page where all the products for that category gets listed), how to show the account type for each product ?
So far I am able to get the Account_ID using $listing.Account_ID but not able to get the Account Type.

Nguyen Dat tai
September 19, 2013, 05:29 PM
I'm considering about account type too.

September 20, 2013, 03:48 AM
Hello Levin,

If you want to get it on browse page you should go to ftp://includes>>classes>>rlListings.class.php

find method: getListings and line:

$sql .= "`T1`.*, `T3`.`Path` AS `Path`, `T3`.`Key` AS `Key`, `T3`.`Type` AS `Listing_type`, ";

and replace to:

$sql .= "`T1`.*, `T3`.`Path` AS `Path`, `T3`.`Key` AS `Key`, `T3`.`Type` AS `Listing_type`, `T7`.`Type` as `Account_type`, ";
and then in smarty you can get it $listing.Account_type

Let me know if it's ok.

Wei Hong
January 19, 2014, 04:10 AM
Hi Viktor,
Would you mind giving me more detail on how to implement this on account page? I managed to replace the code that you have posted above but i have no idea how to include it in account page? (the page that show user avatar email, first name, last name)

Petrache Nicolae
January 19, 2014, 03:41 PM
i am interested as well in this.

January 20, 2014, 04:46 AM
Hello all,

If you did 1-st point then you should open file: ftp://templates>>your_template>>tpl>>blocks>>listing.tpl
and insert code where do you want to show it.


Wei Hong
January 20, 2014, 06:42 AM
Thanks, Viktor. I will try it out
How about if I want to also add the account type in personal address for example in here

Abraham Adeyemi
May 5, 2015, 06:35 PM
Does anyone know how to make the personal address show on results page instead of account type?

Abraham Adeyemi
May 14, 2015, 09:35 PM
Does anyone know how to make the account type show on listing details page?

May 15, 2015, 03:32 AM
Hello Abraham,

You can try to use: {$seller_info.Type_name} in listing_details.tpl file

Abraham Adeyemi
May 15, 2015, 03:40 AM
Works perfect thanks :D