Jump to content

show product short description in category page


Recommended Posts

I want to display the same product list as it does on the home page in all the category pages,

in the category pages the long description is shown in the product list

could anyone please help me with this, I can't find the tpl file to edit

here's the shop

http://www.sones.es/tienda (home)

http://www.sones.es/tienda/index.php?id_category=2&controller=category&id_lang=3 (category page)

 

Link to comment
Share on other sites

you use non default theme so it's hard to say what you have to change.

please  show your product-list.tpl file and then i will be able to say something more

thanks

 

here's the code

{if isset($products)}
	<!-- Products list -->
	<ul id="product_list" class="categorie_product clear">
	{foreach from=$products item=product name=products}
		<li class="ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if} {if $smarty.foreach.products.index % 2}alternate_item{else}item{/if} clearfix">

          <p id="product_list_stuffs">
           {if isset($product.new) && $product.new == 1}<span class="new_product"><strong>{l s='New'}</strong><br /></span>{/if}
		   {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}
            <span class="new_product"><strong>{l s='On sale!'}</strong></span>
		   {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}
            <span class="on_sale"><strong>{l s='Reduced price!'}</strong> <strike>{convertPrice price=$product.price_without_reduction}</strike><br /></span>
           {/if}
		   {if isset($product.online_only) && $product.online_only}<span class="online_only"><strong>{l s='Online only!'}</strong></span>{/if}
          </p>

		  <p>
          <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}">
           <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'large')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} />
          </a>
          </p>

		  <h3>
            <a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'}</a>
          </h3>
                


<p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}" >{$product.description_short|truncate:360:'...'}</a></p>

        
          
          <p class="pprice">
           {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}
            <span>
             {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}
            </span>
           {/if}
           <a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='view'}</a>
           {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}
            {if ($product.allow_oosp || $product.quantity > 0) && $product.customizable != 2}
             <a class="ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart.php')}?add&id_product={$product.id_product|intval}{if isset($static_token)}&token={$static_token}{/if}" title="{l s='Add to cart'}">Comprar</a>
            {else}
              <strike>Comprar<strike>
            {/if}
           {/if}
        </p>
        
		</li>
	{/foreach}
	</ul>
	<!-- /Products list -->
{/if}

Link to comment
Share on other sites

as you can see this theme file uses code:
 

<p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}" >{$product.description_short|truncate:360:'...'}</a></p>

so instead of description_short you want to display description ?

Link to comment
Share on other sites

×
×
  • Create New...