My Pro.Duravit

Login



Sign up

Sign up now to take full advantage of all features available at pro.duravit

Register

Planning folder

Please wait...

TML Warnings

14 warning(s) detected
LayoutLine Nr.Tag TypeTag IDDBContextMessage
pro/inner:product:product-list-articles-inner (html)1Script(none)pro402880943a1b6e1b013a1bd1174e0033.us-en.2TypeError executing tmlscript: TypeError: Cannot find function getLanguageBehaviourContextObject in object .
At line 0, column 0
Expression:

if (!this._libProduct) this._libProduct = WGA.design("lib-duravit-common").createObject("product:controller:product"); // "Product" global replacement

if (!this._libProductX) this._libProductX = WGA.design("lib-duravit-common").createObject("product:controller:productx");

if(_objectProducts || _searchProducts){
this._alternateBreadcrumb = true;

var allSeries = _libProduct.getSeries();
seriesNames = [];
for(var i = 0; i < allSeries.length; i++){
seriesNames[allSeries[i].id] = allSeries[i].name;
}
}

this._filterItems = [];
this._filterItemsCategories = [];
this._filterItemsSeries = [];
this._extraParams = "";
this._extraNav3Params = "";
//log.info("_productGroupId: " + _productGroupId);
// log.info("_productGroup: " + _productGroup);
//log.info("_singleSeries: " + _singleSeries);

_product = createObject("controller:product");
switch (_productGroup) {
case "series":
this._series = _libProduct.getSeries();
this._categories = _libProduct.getCategories(_productGroupId);
if (usePremium) {
this._matrix = ProductX.getSeriesCategories();
this._categories = [];
if (_matrix[_productGroupId]) {
for (let i = 0; i < _matrix[_productGroupId].toArray().length; i++) {
let currentCategory = _matrix[_productGroupId].toArray()[i];

cat = ProductX.getCategories(currentCategory);
if (cat[0]) {
this._categories.push(cat[0]);
}
}
}
}
this._filterItems = V.mapArrayToCols(this._categories, 5, "horizontal");
this._filterItemsCategories = _categories;
this._navProductGroup = _productGroup;
if (!_singleSeries) {
this._selectedFilterItemName = label("allseries");
} else {
this._selectedFilterItemName = _product.getName(_singleSeries);
this._series.splice(0, 0, { name: label("allseries"), id: "" });
}
break;
case "categories":
this._series = _libProduct.getSeries(_productGroupId);
// log.info("wtf! " + _productGroupId);
this._categories = ProductX.getCategories();
this._filterItems = V.mapArrayToCols(_series, 5, "horizontal");
this._filterItemsSeries = _series;
this._navProductGroup = _productGroup;
if (!_singleCategory) {
this._selectedFilterItemName = label("allcategories");
} else {
if (usePremium) {
this._selectedFilterItemName = ProductX.getCategories(_singleCategory)[0].label;
this._categories.splice(0, 0, { name: "", id: "", label: label("allcategories") });
} else {
this._selectedFilterItemName = _product.getName(_singleCategory);
this._categories.splice(0, 0, { name: label("allcategories"), id: "" });
}
}
break;
case "shapes":
var sl = _libProduct.getShapes();
for (var i = 0; i < sl.length; i++) {
if (sl[i].id == _filterId) this._series = sl[i].series;
}
this._categories = _libProduct.getCategories(_productGroupId);
this._filterItems = V.mapArrayToCols(_categories, 5, "horizontal");
this._filterItemsCategories = _categories;
this._navProductGroup = "series";
if (!_singleSeries) {
//this._selectedFilterItemName = "Alle Serien";
} else {
this._selectedFilterItemName = _product.getName(_singleSeries);
//this._series.splice(0, 0, { name: "Alle Serien", id: "" });

}
break;
case "sizes":
_extraParams = "&nsize=" + _productGroupId;
_extraNav3Params = "&filter=" + _filterId;
//log.info("sizes filter: " + _filterId);
//log.info("--- getSize() start");
//log.info("--- getSize() end");
//log.info("sizes.l: " + _series.length);
this._categories = _libProduct.getSizes(_filterId);
this._filterItems = V.mapArrayToCols(_categories, 5, "horizontal");
this._filterItemsCategories = _categories;
this._navProductGroup = "series";
if (!_singleSeries) {
//this._selectedFilterItemName = "Alle Serien";
this._selectedFilterItemName = _product.getName(_productGroupId);
} else {
this._selectedFilterItemName = _product.getName(_productGroupId);
//this._series.splice(0, 0, { name: "Alle Serien", id: "" });
}
break;
}
pro/inner:product:product-list-articles-inner (html)129Script(none)pro402880943a1b6e1b013a1bd1174e0033.us-en.2TypeError executing tmlscript: TypeError: Cannot find function getLanguageBehaviourReleasedContent in object .
At line 0, column 0
Expression:

_numItemsPerRow = 4;
if(_objectProducts){

var products = _libProductX.getProductsForObject(_objectProducts);
this._colItems = V.mapArrayToCols(products, 4, "horizontal");
var plucked = V._.uniq( V._.pluck(products, 'category_id'));
this._categories = [];
for(var i = 0; i < plucked.length; i++){
let currentCategoryId = WGA.format(plucked[i], "00"),
currentCategory,
currentCategorylabel,
currentCategoryName;

currentCategorylabel = ProductX.translateCategory(currentCategoryId);
currentCategory = ProductX.getCategories(currentCategorylabel);
if (currentCategory[0]) {
currentCategoryName = currentCategory[0].label;
}
_categories.push({
"name": currentCategorylabel,
"id": currentCategoryId,
"label": currentCategoryName
});
}
this._filterItems = V.mapArrayToCols(_categories, 6, "horizontal");
this._filterItemsCategories = _categories;
} else if(_searchProducts){
_numItemsPerRow = 6;
var products;
if (request.getParameter("prosearch") == "false") {
products = _libProduct.search(_searchText, _searchSeries, _searchCategory, _searchColor);
} else {
products = _libProductX.search(_searchText, _searchSeries, _searchCategory, _searchColor);
}

this._colItems = V.mapArrayToCols(products, 6, "horizontal");
// log.error("this._colItems[0].logString: " + this._colItems[0][0].logString);
if (this._colItems.length > 0 && this._colItems[0].length > 0) {
logString += this._colItems[0][0].logString + "\r\n";
}
} else {

if (_productGroup == "sizes") {
var products = _libProductX.getSizes(_filterId, _productGroupId, meta("db", "dbkey"));
this._colItems = V.mapArrayToCols(products, 4, "horizontal");
//log.info("my items: "+JSON.stringify(this._colItems));
var plucked = V._.uniq( V._.pluck(products, 'series'));
this._filterItems = [];
for(var i = 0; i < plucked.length; i++){
_filterItems.push({"name":_product.getName(plucked[i]), "id":plucked[i]});
}
} else {
//console.log("_productGroup: " + _productGroup);
_singleCategory = _libProductX.translateCategoryNames(_singleCategory);
this._colItems = V.mapArrayToCols(_libProductX.getProducts(_singleSeries, _singleCategory, _productGroup), 4, "horizontal");
}
}

this._rowSize = 0;
this._rowTagOpen = false;

pro/inner:product:product-list-articles-inner (html)229Script(none)pro402880943a1b6e1b013a1bd1174e0033.us-en.2TypeError executing tmlscript: TypeError: Cannot find function getLanguageBehaviourContextObject in object .
At line 0, column 0
Expression:
_product.getName(_filterId)
pro/inner:product:product-list-articles-inner (html)236Script(none)pro402880943a1b6e1b013a1bd1174e0033.us-en.2TypeError executing tmlscript: TypeError: Cannot find function getLanguageBehaviourContextObject in object .
At line 0, column 0
Expression:
_product.getName(_productGroupId)
pro/inner:product:filter:filter (html)140ForEach(none)pro402880943a1b6e1b013a1bd1174e0033.us-en.2TypeError executing tmlscript: TypeError: Cannot read property "length" from null
At line 0, column 0
Expression:
this._categories.length
pro/inner:product:filter:filter (html)140ForEach(none)pro402880943a1b6e1b013a1bd1174e0033.us-en.2No content list tag specified
pro/inner:product:product-list-articles-inner (html)268Script(none)pro402880943a1b6e1b013a1bd1174e0033.us-en.2TypeError executing tmlscript: TypeError: Cannot call method "toString" of undefined
At line 0, column 0
Expression:

_item = this._colItems[idx-1][kdx-1];
if (_item.series.toString().length < 4) {
_item.series = WGA.format(parseInt(_item.series), "0000");
}

//printObject(_item, "_item");
_gc = (_productGroup == "series" || _productGroup == "shapes") ? _item.category : _item.series;
//log.info("_gc: " + _gc + " -- _productGroup: " + _productGroup);
_showGroupHeadlines = (_searchProducts) ? true : false;
pro/inner:product:product-list-articles-inner (html)304Script(none)pro402880943a1b6e1b013a1bd1174e0033.us-en.2TypeError executing tmlscript: TypeError: Cannot find function getLanguageBehaviourContextObject in object .
At line 0, column 0
Expression:

dataHead = "";
dataHead = _product.getName(WGA.format(_item.series, "0000"));
if (dataHead && dataHead.toString().indexOf("{no name for id:") > -1) {
dataHead = "";
}
if (!_item.furtherDescription) _item.furtherDescription = "";
pro/inner:product:product-list-articles-inner (html)268Script(none)pro402880943a1b6e1b013a1bd1174e0033.us-en.2TypeError executing tmlscript: TypeError: Cannot call method "toString" of undefined
At line 0, column 0
Expression:

_item = this._colItems[idx-1][kdx-1];
if (_item.series.toString().length < 4) {
_item.series = WGA.format(parseInt(_item.series), "0000");
}

//printObject(_item, "_item");
_gc = (_productGroup == "series" || _productGroup == "shapes") ? _item.category : _item.series;
//log.info("_gc: " + _gc + " -- _productGroup: " + _productGroup);
_showGroupHeadlines = (_searchProducts) ? true : false;
pro/inner:product:product-list-articles-inner (html)304Script(none)pro402880943a1b6e1b013a1bd1174e0033.us-en.2TypeError executing tmlscript: TypeError: Cannot find function getLanguageBehaviourContextObject in object .
At line 0, column 0
Expression:

dataHead = "";
dataHead = _product.getName(WGA.format(_item.series, "0000"));
if (dataHead && dataHead.toString().indexOf("{no name for id:") > -1) {
dataHead = "";
}
if (!_item.furtherDescription) _item.furtherDescription = "";
pro/inner:product:product-list-articles-inner (html)268Script(none)pro402880943a1b6e1b013a1bd1174e0033.us-en.2TypeError executing tmlscript: TypeError: Cannot call method "toString" of undefined
At line 0, column 0
Expression:

_item = this._colItems[idx-1][kdx-1];
if (_item.series.toString().length < 4) {
_item.series = WGA.format(parseInt(_item.series), "0000");
}

//printObject(_item, "_item");
_gc = (_productGroup == "series" || _productGroup == "shapes") ? _item.category : _item.series;
//log.info("_gc: " + _gc + " -- _productGroup: " + _productGroup);
_showGroupHeadlines = (_searchProducts) ? true : false;
pro/inner:product:product-list-articles-inner (html)304Script(none)pro402880943a1b6e1b013a1bd1174e0033.us-en.2TypeError executing tmlscript: TypeError: Cannot find function getLanguageBehaviourContextObject in object .
At line 0, column 0
Expression:

dataHead = "";
dataHead = _product.getName(WGA.format(_item.series, "0000"));
if (dataHead && dataHead.toString().indexOf("{no name for id:") > -1) {
dataHead = "";
}
if (!_item.furtherDescription) _item.furtherDescription = "";
pro/inner:product:product-list-articles-inner (html)268Script(none)pro402880943a1b6e1b013a1bd1174e0033.us-en.2TypeError executing tmlscript: TypeError: Cannot call method "toString" of undefined
At line 0, column 0
Expression:

_item = this._colItems[idx-1][kdx-1];
if (_item.series.toString().length < 4) {
_item.series = WGA.format(parseInt(_item.series), "0000");
}

//printObject(_item, "_item");
_gc = (_productGroup == "series" || _productGroup == "shapes") ? _item.category : _item.series;
//log.info("_gc: " + _gc + " -- _productGroup: " + _productGroup);
_showGroupHeadlines = (_searchProducts) ? true : false;
pro/inner:product:product-list-articles-inner (html)304Script(none)pro402880943a1b6e1b013a1bd1174e0033.us-en.2TypeError executing tmlscript: TypeError: Cannot find function getLanguageBehaviourContextObject in object .
At line 0, column 0
Expression:

dataHead = "";
dataHead = _product.getName(WGA.format(_item.series, "0000"));
if (dataHead && dataHead.toString().indexOf("{no name for id:") > -1) {
dataHead = "";
}
if (!_item.furtherDescription) _item.furtherDescription = "";