Jump to content

Manufacturer / Category Descriptions


clampdown
 Share

Recommended Posts

Hello  :)

 

Does anybody know the URL to display the FULL description when on manufacturer / category pages?

For example:

Could I link from an external page to a manufacturer page which shows the full description instead of clicking onto the "more" button to display it all? 

Thanks  :) 





 

 

 

 

 

Share this post


Link to post
Share on other sites

That doesn't exist, but you could just remove the more... if you don't want it.

 

for example in themes/<your theme folder>/category.tpl   (Before editing, make backup!!)

 

 

you have this code:

 

{if $category->description}
  <div class="cat_desc rte">
    {if Tools::strlen($category->description) > 350}
      <div id="category_description_short">{$description_short}</div>
      <div id="category_description_full" class="unvisible">{$category->description}</div>
      <a href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more">{l s='More'}</a>
    {else}
      <div>{$category->description}</div>
    {/if}
  </div>
{/if}
 
 
Comment out the red code (use {* before and *} after the block you want to comment out, like:
 
 
{if $category->description}
  <div class="cat_desc rte">
{*
   {if Tools::strlen($category->description) > 350}
      <div id="category_description_short">{$description_short}</div>
      <div id="category_description_full" class="unvisible">{$category->description}</div>
      <a href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more">{l s='More'}</a>
    {else}
*}
     <div>{$category->description}</div>
{*    {/if} *}
  </div>
{/if}
 

 

 

This should give you just the full description.

 

hope this will work for you. If you really need to make it optional, let me know and I will try to think of a way to do it...

 

pascal

Share this post


Link to post
Share on other sites

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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More