Hey guys, I have repeater with a text field that is working fine on desktop and in the mobile preview but not on the live mobile site . Any ideas? It is the price text, and it is showing the placeholder text. Here is the link: https://wixprothemes.wixsite.com/hamptonbayproperties/properties
As you have posted this in the Wix Corvid Forum which deals with all code related issues only, the first question would be are you using any code on your page to do this?
If you are then please paste up your used code and any screenshots that might help us etc with your issue.
If you have simply used the Wix Editor itself and have not used any code on your site to make up this theme design, then you are better suited going through Wix Support as it is not a code related issue.
https://support.wix.com/en/about-wix/contacting-wix-customer-care
Thank you GOS for your reply. Yes I am using code on this page. I have listed it below. I bolded the code related to the price section. I have also attached images of the preview mobile and the live mobile.
import wixData from ‘wix-data’ ;
$w.onReady( function () {
propertyType();
bedNumber();
bathNumber();
priceMin();
priceMax();
**$w(** **"#repeater1"** **).onItemReady(($item, itemData, index) => {**
let itemDataValue = itemData.price.toLocaleString();
if (itemData.price) {
$item( “#price” ).text = “$” + itemDataValue
}
});
});
let fadeOptions = {
“duration” : 400 ,
};
export function menuAnchor_viewportEnter(event) {
$w( ‘#menuStrip1’ ).show( “fade” , fadeOptions);
$w( ‘#menuStrip2’ ).hide();
}
export function menuAnchor_viewportLeave(event) {
$w( ‘#menuStrip2’ ).show( “fade” , fadeOptions);
$w( ‘#menuStrip1’ ).hide();
}
let priceMi = 0 ;
let priceMa = 1000000000 ;
function propertyType() {
wixData.query( “propertyListing” )
.ascending( “propertyType” )
.contains( “propertyType” , $w( “#propertyType” ).value)
.limit( 1000 )
.find()
.then(results => {
const uniqueTitles = getUniqueTitles(results.items);
let cleanList = buildOptions(uniqueTitles);
cleanList.unshift({ “value” : ‘’ , “label” : ‘All Property Types’ });
$w( “#propertyType” ).options = cleanList;
});
function getUniqueTitles(items) {
const titlesOnly = items.map(item => item.propertyType);
return [… new Set(titlesOnly)];
}
}
function bedNumber() {
wixData.query( “propertyListing” )
.ascending( “bedrooms” )
.contains( “bedrooms” , $w( “#bedrooms” ).value)
.find()
.then(results => {
const uniqueTitles = getUniqueTitles(results.items);
let cleanList = buildOptions(uniqueTitles);
cleanList.unshift({ “value” : ‘’ , “label” : ‘All Bedrooms’ });
$w( “#bedrooms” ).options = cleanList;
});
function getUniqueTitles(items) {
const titlesOnly = items.map(item => item.bedrooms);
return [… new Set(titlesOnly)];
}
}
function bathNumber() {
wixData.query( “propertyListing” )
.ascending( “bathrooms” )
.contains( “bathrooms” , $w( “#bathrooms” ).value)
.find()
.then(results => {
const uniqueTitles = getUniqueTitles(results.items);
let cleanList = buildOptions(uniqueTitles);
cleanList.unshift({ “value” : ‘’ , “label” : ‘All Bathrooms’ });
$w( “#bathrooms” ).options = cleanList;
});
function getUniqueTitles(items) {
const titlesOnly = items.map(item => item.bathrooms);
return [… new Set(titlesOnly)];
}
}
function priceMin() {
wixData.query( “propertyListing” )
.ascending( “price” )
.gt( “price” , (priceMi).toLocaleString)
.find()
.then(results => {
const uniqueTitles = getUniqueTitles(results.items);
let cleanList = buildOptions(uniqueTitles);
cleanList.unshift({ “value” : ‘’ , “label” : ‘Any’ });
$w( “#priceMinimum” ).options = cleanList;
});
function getUniqueTitles(items) {
const titlesOnly = items.map(item => item.price);
return [… new Set(titlesOnly)];
}
}
function priceMax() {
wixData.query( “propertyListing” )
.ascending( “price” )
.lt( “price” , (priceMa).toLocaleString)
.find()
.then(results => {
const uniqueTitles = getUniqueTitles(results.items);
let cleanList = buildOptions(uniqueTitles);
cleanList.unshift({ “value” : ‘’ , “label” : ‘Any’ });
$w( “#priceMaximum” ).options = cleanList;
});
function getUniqueTitles(items) {
const titlesOnly = items.map(item => item.price);
return [… new Set(titlesOnly)];
}
}
function buildOptions(uniqueList) {
return uniqueList.map(curr => {
return { label: curr, value: curr };
});
}
export function priceMinimum_change(event) {
priceMi = parseFloat($w( “#priceMinimum” ).value);
}
export function priceMaximum_change(event) {
priceMa = parseFloat($w( “#priceMaximum” ).value);
if (priceMa === 0 )
priceMa = 1000000000 ;
}
export function searchButton_click(event, $w) {
$w( “#dataset1” ).setFilter(wixData.filter()
.contains( “propertyType” , $w( “#propertyType” ).value)
.contains( “bedrooms” , $w( “#bedrooms” ).value)
.contains( “bathrooms” , $w( “#bathrooms” ).value)
.between( “price” , priceMi, priceMa))
.then((results) => {
$w( "#repeater1" ).data = results.items;
})
}