Commit a6188c92 authored by Sven Franck's avatar Sven Franck

Gadgets/items: added size options (not dynamic yet)

parent 3fbc99a2
......@@ -17,6 +17,20 @@
"returns": "<span>All our items can be returned within 7 days in accordance with the European Directives and the French legislation on the protection of consumers to return an item, please follow the following procedure. <br/> <b > Step 1 </b>: send an email to weinparis@erp5.org <br/> <b> Step 2 </b>: wait for our response - we will provide a number of references and detailed instructions <br/> <br/> <b> Step 3 </b>: send item by mail WeInParis - c / o Nexedi - 15, rue Erlanger - 75016 Paris </ span> ",
"shipping": "<span><b>Store Delivery (Free)</b><br/><b>Bestellen Sie Ihre Kleidung online</b>.<br/>Wählen Sie den Speicher, den Sie abholen wollen Ihre Bestellung. WeInParis Sie senden eine E-Mail, wenn Ihre Bestellung zur Abholung bereit (in der Regel innerhalb einer Stunde, in einigen Fällen innerhalb von 24 Stunden). Courier selben Tag (5 €)<br/><b>Bestellen Sie Ihre Kleidung online vor 13 Stunden </b>.<br/> Lieferung Select 'mail.' Eine E-Mail wird Ihre Kleidung am selben Tag liefern innerhalb von Paris. UPS Frankreich (10 €) Bestellen Sie Ihr <br/> <b> Kleidung online </b>. <br/> Select Lieferung 'UPS Frankreich'. Ihre Kleidung wird am gleichen Tag versendet werden gewöhnlich. Sie werden innerhalb von 48 Stunden zu empfangen. UPS international (30 €) Bestellen Sie Ihr <br/> <b> Kleidung online </b>. <br/> Select Lieferung UPS International. Ihre Kleidung wird am gleichen Tag versendet werden gewöhnlich. Sie innerhalb von 48 Stunden (Westeuropa) oder 72 Stunden (Eastern Europe) zu empfangen. </ span> ",
"payment": "<span>Wir bieten Online-Bezahlung mit gängigen Kreditkarten: VISA, Mastercard, usw. </ span>"
},
"sizes": {
"34": "34",
"36": "36",
"38": "38",
"40": "40",
"T0": "T0",
"T1": "T1",
"T2": "T2",
"T3": "T3",
"S": "S",
"M": "M",
"L": "L",
"XL": "XL"
}
},
"common": {},
......
......@@ -17,6 +17,20 @@
"returns": "<span> All our items can be returned within 7 days in accordance with the European Directives and the French legislation on the protection of consumers to return an item, please follow the following procedure. <br/> <b > Step 1 </b>: send an email to weinparis@erp5.org <br/> <b> Step 2 </b>: wait for our response - we will provide a number of references and detailed instructions <br/> <br/> <b> Step 3 </b>: send item by mail WeInParis - c / o Nexedi - 15, rue Erlanger - 75016 Paris </ span> ",
"shipping": "<span> <b> Store Delivery (Free) </b> <br/> <b> Order your clothes online </b>. <br/> Select the store you want to pick up your order. WeInParis you send an e-mail when your order is ready to be collected (usually within an hour, in some cases, within 24 hours). Courier same day (€ 5) <br/> <b> order your clothes online before 13 hours </b>. <br/> delivery Select 'mail.' An email will deliver your clothes on the same day within Paris. UPS France (10 €) Order your <br/> <b> clothes online </b>. <br/> Select delivery 'UPS France.' your clothes will be shipped the same day usually. You will receive within 48 hours. UPS international (30 €) Order your <br/> <b> clothes online </b>. <br/> Select delivery UPS International. Your clothes will be shipped the same day usually. You will receive within 48 hours (Western Europe) or 72 hours (Eastern Europe). </ span> ",
"payment": "<span> We offer online payment with major credit cards: VISA, Mastercard, etc. </ span>."
},
"sizes": {
"34": "34",
"36": "36",
"38": "38",
"40": "40",
"T0": "T0",
"T1": "T1",
"T2": "T2",
"T3": "T3",
"S": "S",
"M": "M",
"L": "L",
"XL": "XL"
}
},
"common": {},
......
......@@ -17,6 +17,20 @@
"returns": "<span>Tous nos articles peuvent être renvoyés dans les 7 jours conformément aux Directives Européennes et à la législation Française sur la protection des consommateurs. Pour renvoyer un article, veuillez suivre la procédure suivante: <br/><b>Étape 1</b>: envoyez un email à weinparis@erp5.org <br/><b>Etape 2</b>: attendez notre réponse - nous vous fournirons un numéro de renvois et des instructions détaillées <br/><b>Étape 3</b>: envoyez l'article par courrier à WeInParis - c/o Nexedi - 15, rue Erlanger - 75016 Paris</span>",
"shipping": "<span><b>Boutique Livraison (gratuite)</b><br/><b>Commandez vos vêtements en ligne</b>.<br/>Sélectionnez dans la boutique qui vous voulez retirer votre commande. WeInParis vous enverra un e-mail dès que votre commande est prête à être collectées (généralement au bout d'une heure, dans certains cas, dans les 24 heures). Courrier même jour (5 €)<br/><b>Commandez vos vêtements en ligne avant 13 heures</b>.<br/> Sélectionner livraison 'Courrier'. Un courrier livrera vos vêtements le jour même à l'intérieur de Paris. UPS France (10 €)<br/><b>Commandez vos vêtements en ligne</b>.<br/> Sélectionner livraison 'UPS France'. Vos vêtements seront expédiées le jour même habituellement. Vous recevrez dans les 48 heures. UPS international (30 €)<br/><b>Commandez vos vêtements en ligne</b>.<br/> Sélectionner livraison 'UPS International'. Vos vêtements seront expédiées le jour même habituellement. Vous recevrez dans les 48 heures (Europe occidentale) ou 72 heures (Europe de l'Est).</span>",
"payment": "<span>Nous offrons un paiement en ligne avec les principales cartes de crédit: VISA, Mastercard, etc.</span>"
},
"sizes": {
"34": "34",
"36": "36",
"38": "38",
"40": "40",
"T0": "T0",
"T1": "T1",
"T2": "T2",
"T3": "T3",
"S": "S",
"M": "M",
"L": "L",
"XL": "XL"
}
},
"common": {},
......
......@@ -13,7 +13,7 @@ define([
priv.response;
priv.generateContent = function (response) {
var i, j, k, content, child, dimension, dimensions, variation,
sub_dimension, sub_dimension_i18n, str;
sub_dimension, sub_dimension_i18n, str, select, element, soldout;
// expose response (will be overwritten, when next item loads
priv.response = response;
......@@ -25,6 +25,8 @@ define([
"</span> (" + response.original_price + response.currency + ")";
}
soldout = "";
content = "<ul data-role='listview' data-inset='true' class='" +
"content_wrap'><li><h3><span class='content_brand'>" + response.brand +
"</span>&nbsp;<span class='content_title translate' data-i18n=''>" +
......@@ -44,20 +46,23 @@ define([
"<select class='main_dimension' name='dims_" +
dimension.name + "' id='" + dimension.name + "'>" +
"<option class='translate' data-i18n='" + dimension.i18n +
"' selected='selected' disabled>" + dimension.name +
"' disabled>" + dimension.name +
"</option>";
// for every variantion of this dimension
for (j = 0; j < dimension.vars.length; j += 1) {
variation = dimension.vars[j];
dimensions += "<option class='translate' data-i18n='" +
variation.i18n + "' value='" + variation.name + "'>" +
variation.name + "</option>";
// TODO: bad, should not set subdimensions like this...
if (j === 0) {
// TODO: bad, should not set subdimensions like this...
sub_dimension = variation.variations.name;
sub_dimension_i18n = variation.variations.i18n;
select = "selected='selected'";
} else {
select = "";
}
dimensions += "<option class='translate' data-i18n='" +
variation.i18n + "' "+ select + " value='" + variation.name +
"'>" + variation.name + "</option>";
}
dimensions += "</select>";
......@@ -74,9 +79,19 @@ define([
"item.select'>Select</label>" +
"<select name='dims_child' id='dims_child'>" +
"<option class='translate' data-i18n='" + sub_dimension_i18n +
"' selected='selected' disabled>" + sub_dimension + "</option></select>";
"' selected='selected' disabled>" + sub_dimension + "</option>";
// TODO: Merci...
for (k = 0; k < dimension.vars[0].variations.variants.length; k += 1) {
element = dimension.vars[0].variations.variants[k];
if (element.na) {
soldout = "disabled";
}
child += "<option class='translate' data-i18n='" + element.i18n +
"' " + soldout + " value ='" + element.name + "'>" + + "</option>";
}
}
str = content + dimensions + child +"</div>";
str = content + dimensions + child +"</select></div>";
return [str, response.description ];
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment