carpygmy Posted May 7, 2016 Share Posted May 7, 2016 Hi all, I want to use the manufacturer functionality on Prestashop for different retailers, but I can't figure out where the label is coming from. I've looked in the lang files, but it's not there. See the Layered Nav Filter here (bottom left): http://giantpygmy.net/shop/index.php?id_category=40&controller=category Manufacturer Army Surplus (1) Extremities (3) Helly Hansen (8) Ronhill (1) Snugpak (1) Sub Zero (1) TWF (1) Instead I want it to show, as an example: Retailer Shop A (10) Shop B (30) Shop C (80) The functionality will stay the same, but I can't find out where Prestashop is drawing the label "Manufacturer" from. Any and all help much appreciated as always. Thanks, CP. Link to comment Share on other sites More sharing options...
carpygmy Posted May 10, 2016 Author Share Posted May 10, 2016 Anyone? To be clear - I'm just wanting to rename the label that Prestashop uses for "Manufacturer" that is pulled by components like the Layered Navigation Filter. Hopefully one of the experts here knows where that can be edited. Thanks again, CP. Link to comment Share on other sites More sharing options...
vekia Posted May 10, 2016 Share Posted May 10, 2016 you can do it with translations localization > translations it will be a little hard to translate all "manufacturer" words, but you can do it exactly there, and this is how to do that. 1 Link to comment Share on other sites More sharing options...
carpygmy Posted May 10, 2016 Author Share Posted May 10, 2016 (edited) Sorry I'm not being clear: I just want to change the term / field highlighted below in the Layered Navigation Filter - but where is it pulling the highlighted label from? <div class="layered_subtitle_heading"> <span class="layered_subtitle">Manufacturer</span> <!--<span class="layered_close"> <a href="#" data-rel="ul_layered_manufacturer_0"></a> </span>--> </div> Thanks, I'm sure it's really easy - but I can't find it and I've looked through the lang files and I've looked at the blockmanufacturer.tpl and shop\modules\blockmanufacturer\translations\ *.* files. CP. Edited May 11, 2016 by carpygmy (see edit history) Link to comment Share on other sites More sharing options...
carpygmy Posted May 12, 2016 Author Share Posted May 12, 2016 @ vekia Does the above illustration make sense? I hope it shows what I'm trying to do. From your post I couldn't see where to change this label. Thanks for your input. CP. Link to comment Share on other sites More sharing options...
NemoPS Posted May 13, 2016 Share Posted May 13, 2016 It should be translatable in the installed modules translations.In any case, you can change it in blocklayered.php, around like 2573 $filter_blocks[] = array( 'type_lite' => 'manufacturer', 'type' => 'manufacturer', 'id_key' => 0, 'name' => $this->l('Manufacturer'), 'values' => $manufaturers_array, 'filter_show_limit' => $filter['filter_show_limit'], 'filter_type' => $filter['filter_type'] ); Link to comment Share on other sites More sharing options...
carpygmy Posted May 13, 2016 Author Share Posted May 13, 2016 (edited) Excellent !!! Thank you. Ah !! Just seen what you pointed to -- that it's in the translations for blocklayered -- I was assuming it must be in the manufacturer block files. You're right you don't need to edit blocklayered.php you can simply edit: /modules/blocklayered/translations/en.php So just in case someone else need to do the same kind of thing. It looks like the 2 locations that will require editing:/modules/blocklayered/translations/en.php (to change the layered navigation label)/modules/blockmanufacturer/translations/en.php (to change the manufacturer text on the actual manufacturer pages -- haven't done this yet): $_MODULE['<{blockmanufacturer}prestashop>blockmanufacturer_2377be3c2ad9b435ba277a73f0f1ca76'] = 'Manufacturers'; $_MODULE['<{blockmanufacturer}prestashop>blockmanufacturer_c70ad5f80e4c6f299013e08cabc980df'] = 'More about %s'; $_MODULE['<{blockmanufacturer}prestashop>blockmanufacturer_bf24faeb13210b5a703f3ccef792b000'] = 'All manufacturers'; $_MODULE['<{blockmanufacturer}prestashop>blockmanufacturer_1c407c118b89fa6feaae6b0af5fc0970'] = 'No manufacturer'; Many thanks for your help! Really appreciate it. CP. Edited May 13, 2016 by carpygmy (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted May 14, 2016 Share Posted May 14, 2016 Just for the sake of reference, you can do that from the back office as well 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