Jump to content

[SOLVED] New Products Block


Recommended Posts

Thanks fashionpup!

 

Remove the following lines of code from the blocknewproducts module

 

<dl class="products">
 {foreach from=$new_products item=newproduct name=myLoop}
  <dt class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}"><a href="{$newproduct.link}" title="{$newproduct.name|escape:html:'UTF-8'}">{$newproduct.name|strip_tags|escape:html:'UTF-8'}</a></dt>
  {if $newproduct.description_short}<dd class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}"><a href="{$newproduct.link}">{$newproduct.description_short|strip_tags:'UTF-8'|truncate:75:'...'}</a><br /><a href="{$newproduct.link}" class="lnk_more">{l s='En savoir plus'}</a></dd>{/if}
 {/foreach}
 </dl>

 

This will remove the product descriptions.

 

Hope that helps!

 

Marty Shue

Link to comment
Share on other sites

Thanks Marty...unfortunately, that didn't work. Any other suggestions?

 

Thanks fashionpup!

 

Remove the following lines of code from the blocknewproducts module

 

<dl class="products">
 {foreach from=$new_products item=newproduct name=myLoop}
  <dt class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}"><a href="{$newproduct.link}" title="{$newproduct.name|escape:html:'UTF-8'}">{$newproduct.name|strip_tags|escape:html:'UTF-8'}</a></dt>
  {if $newproduct.description_short}<dd class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}"><a href="{$newproduct.link}">{$newproduct.description_short|strip_tags:'UTF-8'|truncate:75:'...'}</a><br /><a href="{$newproduct.link}" class="lnk_more">{l s='En savoir plus'}</a></dd>{/if}
 {/foreach}
 </dl>

 

This will remove the product descriptions.

 

Hope that helps!

 

Marty Shue

Link to comment
Share on other sites

No, no other suggestions because this is the code that needs to be removed :rolleyes:

 

Did you force compile and turn off cache so that the changes can be seen? If so, then you either a) removed the wrong code or b ) did not remove the code from the correct module. Some themes have their own 'modules' folder so you will need to determine exactly which module is the active one then remove the code.

 

I promise what I posted above will work if it is removed from the correct module.

 

Marty Shue

Link to comment
Share on other sites

Ok will try that. I'll do a force compile again. Thanks

 

No, no other suggestions because this is the code that needs to be removed :rolleyes:

 

Did you force compile and turn off cache so that the changes can be seen? If so, then you either a) removed the wrong code or b ) did not remove the code from the correct module. Some themes have their own 'modules' folder so you will need to determine exactly which module is the active one then remove the code.

 

I promise what I posted above will work if it is removed from the correct module.

 

Marty Shue

Link to comment
Share on other sites

×
×
  • Create New...