mohsart Posted November 28, 2012 Share Posted November 28, 2012 I'd like to either modify the suppliers block (should be less work?) or create a new module: For my 1.5.2 shop, I'm not reselling items, so no products are associated with any suppliers - I buy rope, wood, canvas etc and make things... What I'd like to have is a list of logos between the featured products and the footer. Clicking a logo should open up the corresponding supplier page with address etc. There are a couple of problems The default suppliers block is not working properly How do I insert the logo (what variable do I use, $supplier.image seems to be incorrect) How do I create a new hook in the center part of the page? Thanks, /Mats Link to comment Share on other sites More sharing options...
Paulito Posted November 28, 2012 Share Posted November 28, 2012 Good Morning, Have a look at this, you may have to modify it a bit but it does work Link Here Hope this helps Paul Link to comment Share on other sites More sharing options...
innocuous Posted November 28, 2012 Share Posted November 28, 2012 There is a module for showing manufacturers. Check here: http://www.prestashop.com/forums/index.php?/topic/203366-module-man-carousel-ps14-ps15 You could use it for your purpose. IF you want to mod the code to make it work with suppliers, make sure you get approval from the module submitter as he is particular about that! Link to comment Share on other sites More sharing options...
mohsart Posted November 28, 2012 Author Share Posted November 28, 2012 Sorry, but isn't that's all about categories? I see no mentioning of e.g. suppliers' logos./ Mats Link to comment Share on other sites More sharing options...
mohsart Posted November 28, 2012 Author Share Posted November 28, 2012 There is a module for showing manufacturers. Check here: http://www.prestasho...ousel-ps14-ps15 You could use it for your purpose. IF you want to mod the code to make it work with suppliers, make sure you get approval from the module submitter as he is particular about that! Thanks, I'll check it out /Mats Link to comment Share on other sites More sharing options...
Paulito Posted November 28, 2012 Share Posted November 28, 2012 Yes I know but if you had the suppliers as a category Link to comment Share on other sites More sharing options...
mohsart Posted November 28, 2012 Author Share Posted November 28, 2012 The manufaturers module just removed the footer, I'll keep an eye on it though. Hmm, suppliers in a category, sounds like it'd involve more modifications than need be, I'll keep it in mind if all else fails /Mats Link to comment Share on other sites More sharing options...
mohsart Posted November 28, 2012 Author Share Posted November 28, 2012 Found out code for logo at least {$img_sup_dir}{$supplier.id_supplier|escape:'htmlall':'UTF-8'}-large_default.jpg /Mats Link to comment Share on other sites More sharing options...
innocuous Posted November 28, 2012 Share Posted November 28, 2012 code for supplier id is: {$link->getsupplierLink($supplier.id_supplier, $supplier.link_rewrite)} Link to comment Share on other sites More sharing options...
innocuous Posted November 28, 2012 Share Posted November 28, 2012 Any idea how we can show all suppliers in one page? Link to comment Share on other sites More sharing options...
mohsart Posted November 28, 2012 Author Share Posted November 28, 2012 code for supplier id is: {$link->getsupplierLink($supplier.id_supplier, $supplier.link_rewrite)} Not sure what you mean, that's the code in the module, but it directs to the list of items supplied by the supplier, not a page with address etc which is what I want. /Mats Link to comment Share on other sites More sharing options...
mohsart Posted November 28, 2012 Author Share Posted November 28, 2012 (edited) Got the logos in place instead of the names, but I cannot seem to find the correct css to fix the spacing, see http://mohsart.se/handkraft/index.php (I may be reconsidering the placement and keep the block on the left, if I can fix all issues with it) Edit: Fixed the spacing by using .jpg instead of -large_default.jpg /Mats Edited November 28, 2012 by mohsart (see edit history) Link to comment Share on other sites More sharing options...
mohsart Posted November 28, 2012 Author Share Posted November 28, 2012 (edited) Where can I find where $nbSuppliers and $suppliers_list are defined/made available (or should be) for themes/supplier-list.tpl They are 0 and undefines respectively for me. Does the suppliers module work for anyone? Edit: And $supplier->description in themes/supplier.tpl (undefined for me) Edit 2: Wrong, $supplier->description works /Mats Edited November 28, 2012 by mohsart (see edit history) Link to comment Share on other sites More sharing options...
innocuous Posted November 28, 2012 Share Posted November 28, 2012 Not sure what you mean, that's the code in the module, but it directs to the list of items supplied by the supplier, not a page with address etc which is what I want. /Mats Yes, this gets list of items for a supplier. I'll see if I can get code for supplier information 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