kyls Posted November 9, 2009 Share Posted November 9, 2009 Hi there,I was wanting each supplier/manufacturer to have their description and logo at the top of their page manucfacturer.tpl and suplier.tpl I dont know the code... could someone help me please.Thanks in advance Link to comment Share on other sites More sharing options...
css1404 Posted November 10, 2009 Share Posted November 10, 2009 I think you don't need any codes.This you can do siplly in BO . Link to comment Share on other sites More sharing options...
kyls Posted November 11, 2009 Author Share Posted November 11, 2009 where abouts in BO? Link to comment Share on other sites More sharing options...
rocky Posted November 12, 2009 Share Posted November 12, 2009 Do you mean that you want the manufacturer logo and description to appear below "List of products by manufacturer"? To do that, you could add the following code in manufacturer.tpl before line 7: <img src="{$manufacturer->id|escape:'htmlall':'UTF-8'}-medium.jpg" alt="" /> {$manufacturer->description} Link to comment Share on other sites More sharing options...
kyls Posted November 12, 2009 Author Share Posted November 12, 2009 legend! thank u Link to comment Share on other sites More sharing options...
css1404 Posted November 12, 2009 Share Posted November 12, 2009 Rocy i am reading your advices on all fourms.I am having some trouble and i need your help.I want to change the View of New Product page similar to Viewd products.Like in Viewed Products this is nice setting of Picture and Product name and New Product there is Decription and pictures on Up.Can you please paste here the codes that i need to change.I don't know any thing about PHP but working hard to make my website look good.Rocy expecting some Quick reply please. Link to comment Share on other sites More sharing options...
rocky Posted November 12, 2009 Share Posted November 12, 2009 To make the new products module look like the viewed products module, replace modules/blocknewproducts/blocknewproducts.tpl with: <!-- MODULE Block new products --> <a href="{$base_dir}new-products.php" title="{l s='New products' mod='blocknewproducts'}">{l s='New products' mod='blocknewproducts'} {if $new_products|@count > 0} {foreach from=$new_products item=new_product name=myLoop} <a href="{$new_product.link}" title="{l s='More about' mod='blocknewproducts'} {$new_product.name|escape:htmlall:'UTF-8'}"><img src="{$link->getImageLink($new_product.link_rewrite, $new_product.id_image, 'medium')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$new_product.legend|escape:htmlall:'UTF-8'}" /> <a href="{$new_product.link}" title="{l s='More about' mod='blocknewproducts'} {$new_product->name|escape:htmlall:'UTF-8'}">{$new_product.name|escape:htmlall:'UTF-8'|truncate:25} {m s=$new_product.description_short|strip_tags:'UTF-8'|truncate:44 n=12}<a href="{$new_product.link}" title="{l s='More about' mod='blocknewproducts'} {$new_product->name|escape:htmlall:'UTF-8'}"><img src="{$img_dir}bullet.gif" alt=">>" /> {/foreach} <a href="{$base_dir}new-products.php" title="{l s='All new products' mod='blocknewproducts'}" class="button_large">{l s='All new products' mod='blocknewproducts'} {else} {l s='No new product at this time' mod='blocknewproducts'} {/if} <!-- /MODULE Block new products --> and add the following to css/global.css in your theme's directory: /* Block New Products */ div#new-products_block_right div.block_content ul.products li { height:85px; } div#new-products_block_right div.block_content ul.products li img { margin-right:7px; } Link to comment Share on other sites More sharing options...
css1404 Posted November 12, 2009 Share Posted November 12, 2009 Rocky Thank you very much.I spend 2 days to do it before an nothing was working and i give up.But now this is very good.I only followed your instructions and this is working very well.If you don't mind can you please help me to sort this New Products list.I mean i want to Chose the New products according to setting in Catageries.I wanna say that now all most New product is showing there but i want to change it according to my own thinking.I am using this Medule for Showing my products in right column.Is it possible to change it.Sorry if i didn't explain well.Any how once again thanks for that you already helped alot.Do you know there is a problem with Sub catagerioes also.If i add any Subcatagery so i can;t see the picture in main catagery.Do you know what is the reason for that? Link to comment Share on other sites More sharing options...
css1404 Posted November 12, 2009 Share Posted November 12, 2009 Hi Roky,There is a trouble now.Change that you told me i made but now when i click on Picture this is going to write page and on Writing link this all products goes to http://www.xxxx.com/products1/product.php?id_product=1I mean they go to id=1 Always.Can you please advice what i should do to change this problem. Link to comment Share on other sites More sharing options...
rocky Posted November 13, 2009 Share Posted November 13, 2009 You are right. I fixed a couple of bugs in the code above. I must have been tired when I wrote it. :roll: Link to comment Share on other sites More sharing options...
smoke09 Posted June 4, 2010 Share Posted June 4, 2010 Do you mean that you want the manufacturer logo and description to appear below "List of products by manufacturer"? To do that, you could add the following code in manufacturer.tpl before line 7: <img src="{$manufacturer->id|escape:'htmlall':'UTF-8'}-medium.jpg" alt="" /> {$manufacturer->description} The right code is this: <img src="{$img_manu_dir}{$manufacturer->id|escape:'htmlall':'UTF-8'}-medium.jpg" alt="" /> {$manufacturer->description} One {$img_manu_dir} was missed Link to comment Share on other sites More sharing options...
rocky Posted June 4, 2010 Share Posted June 4, 2010 Thanks for the correction. Link to comment Share on other sites More sharing options...
WiiU Posted July 29, 2011 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...
WiiU Posted August 2, 2011 Share Posted August 2, 2011 Do you mean that you want the manufacturer logo and description to appear below "List of products by manufacturer"? To do that, you could add the following code in manufacturer.tpl before line 7:<br/><br/> <br/><p class="align_center"><img src="{$manufacturer->id|escape:'htmlall':'UTF-8'}-medium.jpg" alt="" /></p><br/><p>{$manufacturer->description}</p><br/> HOW do you centre the image? Anyone? Link to comment Share on other sites More sharing options...
webfoumer Posted August 16, 2011 Share Posted August 16, 2011 Where there is a complete code Link to comment Share on other sites More sharing options...
patriciaa Posted August 18, 2011 Share Posted August 18, 2011 Nice info guys. We'll try to throw this a reference on our australian bed linen blog later this month. Australian Sheets 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