Search the Community
Showing results for tags 'alphabetical order'.
-
How come the categories are not in albabetical order when adding a product in the back office? The product preference is set as order by name, all is ok in front office, but this is the only area where the order has been ignored. I attach screen shots of the part that is not in alphabetical order for you to see. Any suggestions would be highly appreciated. (running prestashop 1.5.6) Thanks Maintenant en Français pour mes compatriotes! Comme vous pouvez le voir sur les fichiers joints, j'ai un problème pour mettre les catégories en ordre alphabetique sous prestashop 1.5.6 Sous préférence - produit, trier par nom est sélectionné. Sur le front office, tout marche bien, mais au moment de mettre un nouveau produit, et de l'associé à la catégorie désirée, les categories ne sont pas en ordre alphabetique.... comment ça se fait? Vos idées seraient très appréciées car ça fait un moment que je bataille. Merci d'avance!!
- 1 reply
-
- alphabetical order
- prestashiop 1.5
- (and 3 more)
-
Hello, Prestashop 1.5.6. here :-) I have a very long list of feature "Values" for products and it is quite hard to work with them as they are ordered by ID in the "AdminFeatures" backoffice page. It would be far more convenient if they would be ordered alphabetically. I was searching around in the forum but no success so I open a new topic. I am not sure this may need an override at the "AdminFeaturesController.php". As I do not have too much programing skills for this, some help would be really really appreciatted. Thanks in advance.
- 2 replies
-
- feature values
- alphabetical order
-
(and 1 more)
Tagged with:
-
Здравствуйте!Пишу для русскоязычного потока.Нужно сделать модуль для отображения товаров в алфавитном порядке.Предпочтительно бесплатную версию или взять кусок кода от платной версии(для подсказки). Я нашел одну,но платную.В PrestaShop новичок. Пример отображения товаров в алфавитном порядке:http://www.papirus.com.ua/ Пример платного модуля: http://addons.prestashop.com/en/search-filters-prestashop-modules/3608-alphabetical-product-search.html Здесь я нашел как сделать вывод товаров через категории в алф.порядке http://www.prestashop.com/forums/topic/273293-solved-how-to-show-items-in-alphabetical-order/ Помогите!Очень нужно Вот что я смог взять от демо-сайта с платным модулем. Cсылка на демо-сайт:http://addons.prestashop.com/demo/FO2279.html Как его интегрировать в PrestaShop - модуль? Алфавитный блок.HTML-код. div id="" class="block alphabet_search"> <h4>Alphabet Search</h4> <div class="srchbox"> <table border="0" cellpadding="2" cellspacing="2" width="100%" class="alfasrch"> <tbody><tr> <td><input type="button" value="A" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="B" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="C" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="D" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="E" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="F" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="G" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="H" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="I" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> </tr> <tr> <td><input type="button" value="J" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="K" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="L" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="M" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="N" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="O" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="P" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="Q" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="R" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> </tr> <tr> <td><input type="button" value="S" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="T" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="U" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="V" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="W" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="X" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="Y" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="Z" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="#" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> </tr> </tbody></table> </div> <div id="products" class="block_content">No Products</div> <div id="imgDiv"><img src="modules/alphabetsearch/images/ajax-loader.gif" alt="Loading"></div> </div> AJAX-запрос для вывода товаров. function getProdList(id,langid) { var xmlHttp=initXMLHTTPRequest(); //console.log(xmlHttp); var str = "value="+id+"&langid="+langid; var span=""; var url = "modules/alphabetsearch/php/searchDetails.php?"; document.getElementById('imgDiv').style.display = 'block'; xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4 ) { document.getElementById('imgDiv').style.display = 'none'; span=span+"<ul style='padding-bottom:20px;'><li><b>"+id+"</b></li>"; var xmldata=xmlHttp.responseXML; var xmlObj = xmldata.getElementsByTagName("ProductDetails")[0]; var menusize=xmlObj.childNodes[0].childNodes[0].childNodes[0].nodeValue; var xmlObjlength = xmlObj.childNodes.length; for(var i=1;i<xmlObjlength;i++) { var ProductName=xmlObj.childNodes[i].childNodes[0].childNodes[0].nodeValue; var productId=xmlObj.childNodes[i].childNodes[1].childNodes[0].nodeValue; span=span+"<li style='line-height:20px;display:block;height:20px;list-style:none;border-bottom:1px solid #666666;'><a href='product.php?id_product="+productId+"'><div>"+ProductName+"</div></a></li>" } if(xmlObjlength==1) { document.getElementById("products").innerHTML=""; document.getElementById("products").innerHTML="Sorry No Products Under this Alphabet"; } else { document.getElementById("products").innerHTML=""; span=span+"</ul>"; document.getElementById("products").innerHTML=span; } } }; xmlHttp.open("POST",url,true); xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlHttp.setRequestHeader("Content-length", str.length); xmlHttp.setRequestHeader("Connection", "close"); xmlHttp.send(str); }
- 12 replies
-
- prestashop
- alphabetical order
-
(and 1 more)
Tagged with:
-
Hello, I am writing for the English - speaking stream. I need make the module to display the items in alphabetical order.Its maybe free version or take the code from the paid version. I found one, but not free.I newbie in PrestaShop. An example of the display products in alphabetical order: http://www.papirus.com.ua/ Example pay-module: http://addons.prestashop.com/en/search-filters-prestashop-modules/3608-alphabetical-product-search.html Here I found a self conclusion http://www.prestashop.com/forums/topic/273293-solved-how-to-show-items-in-alphabetical-order/ Help! Very necessary That's what I was able to take on the demo site with a paid module. Links to the demo site: http://addons.prestashop.com/demo/FO2279.html How to integrate it into PrestaShop - Module? HTML-block of alphabetic order <div id="" class="block alphabet_search"> <h4>Alphabet Search</h4> <div class="srchbox"> <table border="0" cellpadding="2" cellspacing="2" width="100%" class="alfasrch"> <tbody><tr> <td><input type="button" value="A" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="B" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="C" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="D" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="E" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="F" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="G" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="H" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="I" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> </tr> <tr> <td><input type="button" value="J" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="K" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="L" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="M" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="N" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="O" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="P" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="Q" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="R" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> </tr> <tr> <td><input type="button" value="S" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="T" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="U" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="V" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="W" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="X" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="Y" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="Z" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> <td><input type="button" value="#" class="alpha_btn" id="1" onclick="getProdList(this.value,this.id)"></td> </tr> </tbody></table> </div> <div id="products" class="block_content">No Products</div> <div id="imgDiv"><img src="modules/alphabetsearch/images/ajax-loader.gif" alt="Loading"></div> </div> AJAX-response.Output list of products function getProdList(id,langid) { var xmlHttp=initXMLHTTPRequest(); //console.log(xmlHttp); var str = "value="+id+"&langid="+langid; var span=""; var url = "modules/alphabetsearch/php/searchDetails.php?"; document.getElementById('imgDiv').style.display = 'block'; xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4 ) { document.getElementById('imgDiv').style.display = 'none'; span=span+"<ul style='padding-bottom:20px;'><li><b>"+id+"</b></li>"; var xmldata=xmlHttp.responseXML; var xmlObj = xmldata.getElementsByTagName("ProductDetails")[0]; var menusize=xmlObj.childNodes[0].childNodes[0].childNodes[0].nodeValue; var xmlObjlength = xmlObj.childNodes.length; for(var i=1;i<xmlObjlength;i++) { var ProductName=xmlObj.childNodes[i].childNodes[0].childNodes[0].nodeValue; var productId=xmlObj.childNodes[i].childNodes[1].childNodes[0].nodeValue; span=span+"<li style='line-height:20px;display:block;height:20px;list-style:none;border-bottom:1px solid #666666;'><a href='product.php?id_product="+productId+"'><div>"+ProductName+"</div></a></li>" } if(xmlObjlength==1) { document.getElementById("products").innerHTML=""; document.getElementById("products").innerHTML="Sorry No Products Under this Alphabet"; } else { document.getElementById("products").innerHTML=""; span=span+"</ul>"; document.getElementById("products").innerHTML=span; } } }; xmlHttp.open("POST",url,true); xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlHttp.setRequestHeader("Content-length", str.length); xmlHttp.setRequestHeader("Connection", "close"); xmlHttp.send(str); } Help me!
-
- alphabetical order
- products
-
(and 1 more)
Tagged with: