Jump to content

supplier and manufacturer info


kyls

Recommended Posts

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

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

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

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

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

  • 6 months later...
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

  • 1 year later...

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

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

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...