Kontakt

 
 
 
 
 
 
 
 
 
 
 
 

TML Warnings

21 warning(s) detected
LayoutLine Nr.Tag TypeTag IDDBContextMessage
premium/includes:retailerprofile:main (html)1Script(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "customer_types" from undefined
At line 0, column 0
Expression:

this.conIl = V.require("controller:image-load");
this.dbKey = this.meta("db", "dbkey");

this.searchOpts = {
guid: option("guid"),
};

this.weekdaysShort = ['Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.', 'So.'];
this.weekdaysLong = ['Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag', 'Sonntag'];

this.colSize = option('display') == 'inline' ? 12 : 9;


serCon = WGA.createObject("controller:series");
retailerController = WGA.design("lib-duravit-common").createObject("retailer_search:retailController"); //create object from plugin
dealer_info = new ActiveRecord.Model({db: 'pdb'});

searchResult = retailerController.search3(this, this.searchOpts);

if(searchResult.resultlist) {
retailer = searchResult.resultlist[0];
dealer_info.findFirst("dealer_guid = ?", this.searchOpts.guid);

elements = (retailer.customer_types.indexOf("Elements") > -1) ? true : false;

// get retailer series data
var seriesNames = WGA.createList();

series = retailer.series.split(',');
seriesDataList = WGA.createList();
for (var i=0; i < series.length; i++) {
if (retailerController.series.indexOf(series[i]) != -1) {
if (!seriesNames.contains(series[i])) { // Filter duplicates out
var seriesData = serCon.getSeriesDataForName(series[i]);
seriesNames.add(series[i]);
if (seriesData)
seriesDataList.add(seriesData);
}
} else {
for(var iSeries in retailerController.seriesMapping){
if(retailerController.seriesMapping[iSeries].indexOf(series[i]) != -1) {
if (!seriesNames.contains(iSeries)) { // Filter duplicates out
var seriesData = serCon.getSeriesDataForName(iSeries);
seriesNames.add(iSeries);
if (seriesData)
seriesDataList.add(seriesData);
}
}
}
}
}

// format retailer opening hours
var openingHoursTmp = [];
for(var day=1; day <= 7; day++) {
if (dealer_info.get('hours_' + day + '_1') && dealer_info.get('hours_' + day + '_1') != '-') {
openingHoursTmp[day] = dealer_info.get('hours_' + day + '_1');
}
if(dealer_info.get('hours_' + day + '_2') && dealer_info.get('hours_' + day + '_2') != '-') {
openingHoursTmp[day] = openingHoursTmp[day].concat('|' + dealer_info.get('hours_' + day + '_2'));
}
}
this.openingHours = [];
var dayFrom = null;
var dayTo = null;
var dayIdx = lastDayIdx = 0;
for (var day in openingHoursTmp) {
if(dayFrom !== null && openingHoursTmp[dayFrom] != openingHoursTmp[day]) {
dayFrom = dayTo = null;
}

if(dayFrom !== null && openingHoursTmp[dayFrom] == openingHoursTmp[day]) {
dayTo = this.openingHours[lastDayIdx].dayTo = day;
}
else if(dayFrom == null) {
lastDayIdx = dayIdx;
dayFrom = dayTo = day;
this.openingHours[lastDayIdx] = {
dayFrom: dayFrom,
dayTo: dayTo,
hours: openingHoursTmp[dayFrom].split('|')
};
dayIdx++;
}
}
}
else {
// TODO: Show not found message
}
premium/includes:retailerprofile:main (html)113Script(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "name" from undefined
At line 0, column 0
Expression:
retailer.name
premium/includes:retailerprofile:main (html)115Script(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "address" from undefined
At line 0, column 0
Expression:
retailer.address
premium/includes:retailerprofile:main (html)116Script(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "zip" from undefined
At line 0, column 0
Expression:
retailer.zip
premium/includes:retailerprofile:main (html)116Script(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "city" from undefined
At line 0, column 0
Expression:
retailer.city
premium/includes:retailerprofile:main (html)282Script(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "name" from undefined
At line 0, column 0
Expression:
retailer.name
premium/includes:retailerprofile:main (html)282Script(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "address" from undefined
At line 0, column 0
Expression:
retailer.address
premium/includes:retailerprofile:main (html)282Script(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "zip" from undefined
At line 0, column 0
Expression:
retailer.zip
premium/includes:retailerprofile:main (html)282Script(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "city" from undefined
At line 0, column 0
Expression:
retailer.city
premium/includes:retailerprofile:main (html)282Script(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "fon" from undefined
At line 0, column 0
Expression:
retailer.fon
premium/includes:retailerprofile:main (html)309Script(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "address" from undefined
At line 0, column 0
Expression:
retailer.address
premium/includes:retailerprofile:main (html)309Script(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "zip" from undefined
At line 0, column 0
Expression:
retailer.zip
premium/includes:retailerprofile:main (html)309Script(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "country" from undefined
At line 0, column 0
Expression:
retailer.country
premium/includes:retailerprofile:main (html)359Case(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "fon" from undefined
At line 0, column 0
Expression:
retailer.fon && !elements
premium/includes:retailerprofile:main (html)369Case(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "fax" from undefined
At line 0, column 0
Expression:
retailer.fax && !elements
premium/includes:retailerprofile:main (html)379Case(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "hp" from undefined
At line 0, column 0
Expression:
retailer.hp && !elements
premium/includes:retailerprofile:main (html)386Case(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "mail" from undefined
At line 0, column 0
Expression:
retailer.mail && !elements
premium/includes:retailerprofile:main (html)414Case(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "length" from null
At line 0, column 0
Expression:
openingHours.length
premium/includes:retailerprofile:main (html)552Script(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "name" from undefined
At line 0, column 0
Expression:
return WGA.encode("javascript", retailer.name.replace(/<(?:.|\n)*?>/gm, ' '));
premium/includes:retailerprofile:main (html)558Script(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "lat" from undefined
At line 0, column 0
Expression:
retailer.lat
premium/includes:retailerprofile:main (html)558Script(none)premium8a8a818d4588ede60145993182e1446b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "lng" from undefined
At line 0, column 0
Expression:
retailer.lng
Render time page: 891 ms - retailerprofile :: 8a8a818d4588ede60145993182e1446b

Node: wga4 / DM: false / PDB: 2016-09-26-2217


    Cache info:
    =============
    cache-mainnavi: www.duravit.de_de-de :: true
cache-footer: www.duravit.de_de-de :: true
    cache-standard:  ::