Compare commits

..
1 Commits
Author SHA1 Message Date
artnuc.ct9 1b84212da5 create tmp 2020-11-26 22:35:21 +04:00
2 changed files with 6 additions and 10 deletions
+3 -1
View File
@@ -7,7 +7,7 @@ ENV?="dev"
install:
#copy config file from template
cp config.xml.dist config.xml
#cp config.xml.dist config.xml
@if [ $(ENV) = "dev" ]; then \
make install_dev; \
fi
@@ -63,6 +63,8 @@ frontend:
else \
haxe cagetteJs.hxml; \
fi
mkdir -p tmp
chown www-data:www-data tmp
#update POT file from source
i18n:
+3 -9
View File
@@ -164,13 +164,7 @@ class ShopCart
var groups = new Map<Int,{name:String,products:Array<ProductInfo>}>();
var pinned = new Map<Int,{name:String,products:Array<ProductInfo>}>();
trace(this.categories);
var firstCategGroup = null;
if (this.categories.length > 0){
firstCategGroup = this.categories[0].categs;
}
var firstCategGroup = this.categories[0].categs;
//trace(firstCategGroup);
//trace(pinnedCategories);
@@ -187,7 +181,7 @@ class ShopCart
for ( categ in p.categories){
if (firstCategGroup != null && Lambda.find(firstCategGroup, function(c) return c.id == categ) != null){
if (Lambda.find(firstCategGroup, function(c) return c.id == categ) != null){
//is in this category group
var g = groups.get(categ);
@@ -448,4 +442,4 @@ class ShopCart
}
}
}