Jump to content

expand the info of the article


fonimon

Recommended Posts

 

I am trying to expand the info of the article so that I get the description in the articles of the category, I have added in product.tpl several lines saying that I want to leave "description" but I get the html tags

 

I want to expand it with a table but it does not appear

 

 

Link to comment
Share on other sites

 {block name='product_description'}
        {if $page.page_name == 'index'}
        <itemprop="description">{$product.description|strip_tags:'UTF-8'|truncate:250:'...'}
        
        {else}
        <itemprop="description">{$product.description|strip_tags:'UTF-8'|truncate:250:'...'}
        
        {/if}
        {/block}

 

 

I have a problem, I want to put in the thumbnail of the product description, in the category a table, but when I put the html of the table in the description tab, in the frontoffice I get the html tags.

When editing the file _partials / miniature / product.tpl in the block {block name = 'product_description'}

I put <itemprop = "description"> {$ product.description | strip_tags: 'UTF-8' | truncate: 250: '...'} so that I do not get the HTML tags, but the text comes out without formatting or style and it is not seen with a table format.

How can I do it?

Thank you

 

Link to comment
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
×
×
  • Create New...