NemoPS Posted February 7, 2017 Share Posted February 7, 2017 Hey everyone! Much like I did with 1.5, here is a tut for 1.7 on how to turn the standard manufacturers list into something better and grouped by letterhttp://nemops.com/prestashop-17-alphabetical-manufacturers/#.WJm1UfnaeUkFabio 1 Link to comment Share on other sites More sharing options...
onlydeshpande Posted February 20, 2019 Share Posted February 20, 2019 Hello Fabio, can we list suppliers in the same way on one page? PS 1.6 Link to comment Share on other sites More sharing options...
NemoPS Posted February 20, 2019 Author Share Posted February 20, 2019 As far as I know, yes, but I don't know if they change something in the system from when I wrote the tutorial Link to comment Share on other sites More sharing options...
zenerry Posted March 3, 2020 Share Posted March 3, 2020 Hello @NemoPS there should be an small mistake into your brand list code of your tutorial. It must be a tiny mistake with because the first div of numeral characters doesn't render properly. Are you aware of this? Could you take a look at that? Thanks Link to comment Share on other sites More sharing options...
zenerry Posted March 6, 2020 Share Posted March 6, 2020 SOLVED. This code is what worked for me thanks to @diphone based on @NemoPS code <div class="all-brands"> <div class="row"> <ul class="letter-select clearifx"> <li><a href="#letter_0">#</a></li> <li><a href="#letter_A">A</a></li> <li><a href="#letter_B">B</a></li> <li><a href="#letter_C">C</a></li> <li><a href="#letter_D">D</a></li> <li><a href="#letter_E">E</a></li> <li><a href="#letter_F">F</a></li> <li><a href="#letter_G">G</a></li> <li><a href="#letter_H">H</a></li> <li><a href="#letter_I">I</a></li> <li><a href="#letter_J">J</a></li> <li><a href="#letter_K">K</a></li> <li><a href="#letter_L">L</a></li> <li><a href="#letter_M">M</a></li> <li><a href="#letter_N">N</a></li> <li><a href="#letter_O">O</a></li> <li><a href="#letter_P">P</a></li> <li><a href="#letter_Q">Q</a></li> <li><a href="#letter_R">R</a></li> <li><a href="#letter_S">S</a></li> <li><a href="#letter_T">T</a></li> <li><a href="#letter_U">U</a></li> <li><a href="#letter_V">V</a></li> <li><a href="#letter_W">W</a></li> <li><a href="#letter_X">X</a></li> <li><a href="#letter_Y">Y</a></li> <li><a href="#letter_Z">Z</a></li> </ul> </div> <div class="brands-by-letter"> {$current_letter = '#'} {$first_loop = true} {foreach from=$brands item=brand} {$first_letter = $brand.name|substr:0:1} {if $current_letter != $first_letter} {if !$first_letter|in_array:['0','1','2','3','4','5','6','7','8','9']} {$current_letter = $first_letter|upper} </div> </div> {/if} {if !$first_letter|in_array:['0','1','2','3','4','5','6','7','8','9'] || $first_loop} <div class="box-letter clearfix" id="letter_{if $current_letter == '#'}0{else}{$current_letter|upper}{/if}"> <div class="box-title">{$current_letter|upper}</div> <div class="letter-content"> {$first_loop = false} {/if} {/if} <p> <a href="{$link->getManufacturerLink($brand.id_manufacturer)}">{$brand.name}</a> </p> {/foreach} </div> </div> </div> </div> Link to comment Share on other sites More sharing options...
lipo999 Posted August 17, 2020 Share Posted August 17, 2020 Is it possible implement to cms category list? Thank you (PS1.6) Link to comment Share on other sites More sharing options...
zenerry Posted August 18, 2020 Share Posted August 18, 2020 Could you give more details? I can't understand what you want to do. Link to comment Share on other sites More sharing options...
Roych Posted November 26, 2020 Share Posted November 26, 2020 Hello, Im trying to create this sorting but somehow not working with characters lik ČŠĆŽĐ any idea how to make this work with these. any help is appreiciated Thank you R Link to comment Share on other sites More sharing options...
Roych Posted November 28, 2020 Share Posted November 28, 2020 On 11/27/2020 at 12:55 AM, Roych said: Hello, Im trying to create this sorting but somehow not working with characters lik ČŠĆŽĐ any idea how to make this work with these. any help is appreiciated Thank you R bump R Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now