How to use Repeater export function for multiple items

I have a site that is for my personal learning.

I have been using this block of code to set a currency symbol and commas in the repeater. This is so I can clean the irregular pricing formatting from scraped data and enter the prices as a number into the db and it has worked like a charm for months:

$w . onReady ( function () {
});

export function featureListings_itemReady ( $item , itemData , index ) {
let currentPrice = itemData . price ;
let newPrice = "฿ " + formatNumber_AsDollar ( currentPrice );
$item ( “#priceText” ). text = newPrice ;
}

function formatNumber_AsDollar (x) {
return x . toString (). replace ( /\B(?=(\d{3})+(?!\d))/ g , “,” );
}

A couple of days ago I got some help in these very forums with showing and hiding a label in the repeater based on if there is an empty cell or not in the db, here is that code and on it’s own it also works really well. I’ve removed the bulk of it as it’s the head that matters:

// shows and hides the station label and stations
export function featureListings_itemReady ( $item , itemData , index ) {
$w ( “#featureListings” ). onItemReady ( ( $w , itemData , index ) => {
if ( itemData . station1 || itemData . station2 || itemData . station3 ) {
$w ( “#txtBtsMrt” ). show ();
}
else {
$w ( “#txtBtsMrt” ). hide ();
}
}
});
}

For those of you who know this stuff, cause I obviously don’t, these two can not live together. I’m getting this error: Identifier ‘featureListings_itemReady’ has already been declared.

So how do I use this: export function featureListings_itemReady ( $item , itemData , index )
for both items? I read a piece that maybe creating a class is the answer but I don’t know anything about that. There are so many examples and none of them were Wix / Velo centric.

I did try doing the following but then the data shown in the repeater for the price is all kinds of wacky i.e. price should be 0 but it display 10,000 sometimes, which could not be more wrong. The following is what is being used in the published site at the moment:
// shows and hides the station label and stations
export function featureListings_itemReady ( $item , itemData , index ) {
$w ( “#featureListings” ). onItemReady ( ( $w , itemData , index ) => {
if ( itemData . station1 || itemData . station2 || itemData . station3 ) {
$w ( “#txtBtsMrt” ). show ();
}
else {
$w ( “#txtBtsMrt” ). hide ();
}

// formats prices to add currency symbol 
let  currentPrice  =  itemData . price ;  
let  newPrice  =  "฿ "  +  formatNumber_AsDollar ( currentPrice );  
$item ( "#priceText" ). text  =  newPrice ; 

 function  formatNumber_AsDollar  (x) {  
	return  x . toString (). replace ( /\B(?=(\d{3})+(?!\d))/ **g** ,  "," );  
} 

});
}

You can see it for yourself here:
https://bluntchbuilders.wixsite.com/seaapts/apartments

You can see that the label for BTS MRT shows when there is data, but the prices all read 28 when in reality every items on this first page is 0. I have double and triple cheeked the db for both sandbox and live to make sure I hadn’t made a mistake with my data, cause sometimes I do, but that’s not the case.

So if someone can show me an example of how to do what I’m trying to do or point me to the right article that would be fantastic. If you just point me to the API I’m gonna be as lost as I am now if there is not a clear example.

Again, I use this site for personal learning (repeaters, basic search, working on advanced search that’s not going well, endless scrolling, using large amounts of scraped data and trying to learn the basic JS needed to get more than just the basics outta Wix).

BTW: I HAVE lodash INSTALLED for the advanced search features I’m trying to learn on unpublished/ hidden page, just didn’t want to leave anything out.

Thank you in advance!