WiiU Posted July 29, 2011 Share Posted July 29, 2011 On my Manufacturers link and page I can see a list of images and description of all my manufactuers. When I click on a manufacturer it takes me to the list of products page. However is it possible to add the main manufacturer image and short description on to this page above the list of products? All help would be appreciated... WiiU Link to comment Share on other sites More sharing options...
WiiU Posted July 29, 2011 Author Share Posted July 29, 2011 I've tried added the following to my manufacturer.tpl file after the fifth line to display the manufacturer logo and the description centered above the list of product images: <img src="{$img_manu_dir}{$manufacturer.image|escape:'htmlall':'UTF-8'}-medium.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {$manufacturer->short_description} and/or <img src="{$img_manu_dir}{$manufacturer->id|escape:'htmlall':'UTF-8'}-medium.jpg" alt="" /> {$manufacturer->short_description} I've even tried adding... <img src="{$img_manu_dir}{$manufacturer->id}-medium.jpg" /> {$manufacturer->short_description} And they are not appearing. Has anyone got any idea why? Link to comment Share on other sites More sharing options...
shokinro Posted July 29, 2011 Share Posted July 29, 2011 You can do this by modifying the theme file of manufacturer page. YourStoreRoot/themes/YourStoreTheme/manufacturers.tpl I think the manufacturer and manufacturere are sharing the same page theme. Link to comment Share on other sites More sharing options...
WiiU Posted July 29, 2011 Author Share Posted July 29, 2011 You can do this by modifying the theme file of manufacturer page. YourStoreRoot/themes/YourStoreTheme/manufacturers.tpl I think the manufacturer and manufacturere are sharing the same page theme. You've lost me??? I have been trying to edit my manufacturer.tpl in my theme folder and nothing is happening when I add: <img src="{$img_manu_dir}{$manufacturer->id}-medium.jpg" /> {$manufacturer->short_description} and this should provide the changes on my prestashop page. At a loss? Link to comment Share on other sites More sharing options...
shokinro Posted July 29, 2011 Share Posted July 29, 2011 Check tThat if your smarty cache is off and force compile is on to force the changes to be reflected.. Maybe you are are lookoing at the cached pages Back office Preferences Performances Link to comment Share on other sites More sharing options...
WiiU Posted July 29, 2011 Author Share Posted July 29, 2011 Check tThat if your smarty cache is off and force compile is on to force the changes to be reflected.. Maybe you are are lookoing at the cached pages Back office Preferences Performances Thannks Shokinro, I turned of Force Compile and Cache to no and deleted Toold/Smarty Cache files. Still no Manufacturer Logo or description. Any ideas? Link to comment Share on other sites More sharing options...
WiiU Posted July 29, 2011 Author Share Posted July 29, 2011 {* * 2007-2011 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2011 PrestaShop SA * @version Release: $Revision: 1.4 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {include file="$tpl_dir./breadcrumb.tpl"} {include file="$tpl_dir./errors.tpl"} {if !isset($errors) OR !sizeof($errors)} <h1>{l s='List of products by manufacturer:'} {$manufacturer->name| escape:'htmlall':'UTF-8'}</h1> <img src="{$img_manu_dir}{$manufacturer->id}-medium.jpg" /> {$manufacturer->short_description} {if $products} {include file="$tpl_dir./product-sort.tpl"} {include file="$tpl_dir./product-list.tpl" products=$products} {include file="$tpl_dir./pagination.tpl"} {else} <p class="warning">{l s='No products for this manufacturer.'}</p> {/if} {/if} This is what my manufacturer.tpl looks like... Link to comment Share on other sites More sharing options...
shokinro Posted July 29, 2011 Share Posted July 29, 2011 Can you check the page controller to see if manufacturer object is assigned to smarty? I don't remember exactly because I can not access source code at the moment. The process is different when it is a manufacturer and manufacturers in the page controller. Link to comment Share on other sites More sharing options...
shokinro Posted July 29, 2011 Share Posted July 29, 2011 @wiiU I just tested your code, it seems working fine. You can have a look at the following demo site, apple logo and description is there. http://expresscheckout.dyndns.org:8080/shop1410/manufacturer.php?id_manufacturer=1 Please make sure you have set the logo data and description for the manufacturer. if everything is set correctly, it should work. I still thinking could some cache issue. Please also clear your browser cache. Link to comment Share on other sites More sharing options...
WiiU Posted July 29, 2011 Author Share Posted July 29, 2011 Cleared the cache on browser and in tools/smarty/ compile – deleted all files, and tools/smarty/ cache – deleted all files. Still no joy.. very weird and driving me absolutely nuts.... arghhhh... All I want is the Manufacturer Image and Short Description above the products... Why is is so hard... Link to comment Share on other sites More sharing options...
shokinro Posted July 29, 2011 Share Posted July 29, 2011 I have no idea why it does not work at your end. actually I am using exactly the same code as your and I put it at the same location. <img src="{$img_manu_dir}{$manufacturer->id}-medium.jpg" /> {$manufacturer->short_description} How many themes have installed on your site, are you sure you are editing the right theme file. Link to comment Share on other sites More sharing options...
WiiU Posted July 29, 2011 Author Share Posted July 29, 2011 Just one theme (Clothestheme) and I am adding it to the manufacturer.tpl in my theme folder. No idea why it isn't working... Link to comment Share on other sites More sharing options...
shokinro Posted July 29, 2011 Share Posted July 29, 2011 Does both image and description not show up or just one of them? can you confirm the HTML code at browser to see if the code added is in effect. if you can find the img tag there. it means our code is working. so it could something else like file permission issue. Link to comment Share on other sites More sharing options...
WiiU Posted August 1, 2011 Author Share Posted August 1, 2011 Both the image and text description don't and won't appear... Link to comment Share on other sites More sharing options...
jhnstcks Posted August 1, 2011 Share Posted August 1, 2011 Delete the code and add "this is a test" then save and upload. Open one of the pages that should have the text, making sure to clear caches, if the text is not there your not editing the correct file. Can you supply a link to your site please so I can see what's happening. Link to comment Share on other sites More sharing options...
WiiU Posted August 1, 2011 Author Share Posted August 1, 2011 Just deleted the code: <img src="{$img_manu_dir}{$manufacturer->id}-medium.jpg" /> {$manufacturer->short_description} from manufacturers.tpl in my theme folder. Added the text. Deleted the Tools/Smarty/Compile and Tools/Smarty/Cache Arghhh... All my category pages have now disappeared? The home page is fine and manufactures are fine, and so are individual products.... whats happened? Matt Link to comment Share on other sites More sharing options...
WiiU Posted August 1, 2011 Author Share Posted August 1, 2011 Just deleted the code: <img src="{$img_manu_dir}{$manufacturer->id}-medium.jpg" /> {$manufacturer->short_description} from manufacturers.tpl in my theme folder. Added the text. Deleted the Tools/Smarty/Compile and Tools/Smarty/Cache Arghhh... All my category pages have now disappeared? The home page is fine and manufactures are fine, and so are individual products.... whats happened? Matt I can view all my manufacturers fine in the manufacturers link. When I click on an individual manufacturer i get a blank page? HELP! Link to comment Share on other sites More sharing options...
WiiU Posted August 1, 2011 Author Share Posted August 1, 2011 Fixed it :-) Phew! I just copied the manufacturer.tpl to my desktop from my theme, and the copied the manufacturer.tpl file from the main prestashop theme into the theme folder I am using and voila! Thank you everyone for all your support... Link to comment Share on other sites More sharing options...
WiiU Posted August 1, 2011 Author Share Posted August 1, 2011 Oops spoke to soon lol... can't work out how to centre the image anyone help? Link to comment Share on other sites More sharing options...
jhnstcks Posted August 2, 2011 Share Posted August 2, 2011 Would be a lot easier with a link to your site. 1 Link to comment Share on other sites More sharing options...
WiiU Posted August 2, 2011 Author Share Posted August 2, 2011 Thank buddy, however I never post links to my sites as in the past two have been hacked as a result. I transferred the manufacturers.tpl in my core theme folder to my theme folder based on something you said and lo and behold the Manufacturer Image and Short Description appeared on the manufacturer products pages which is awesome, so thank you. However I need to centre the image... any ideas... Matt Link to comment Share on other sites More sharing options...
Recommended Posts