Jump to content

[SOLVED] Help writing an "IF" statement (to hide Product short description on product-list.tpl if no data is entered)


Recommended Posts

I needed to add "IF no short description, then do not show the following code".

I needed to hide the label "Colours" that I added below if there is no data.


***UPDATE***

The solution is to use some IF tags, as follows:


{if $product.description_short}


Colours: {$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}
{/if}

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...