View Single Post
  #1  
Old 01-11-2016, 10:55 AM
  Scott Godin's Avatar 
Scott Godin Scott Godin is offline
 

Advanced Member
  
Join Date: Aug 2014
Location: /diagonally parked in a parallel universe/
Posts: 68
 

Default re: default/en/category_description.tpl

our store has approximately 350 categories where the description field has been filled out with the exact same text as the category title, thus we get

CATEGORY TITLE
category title

duplicate text on many pages.

I would like to modify this file so that it detects when they are the same and if so, display nothing .. i.e. do not even include the markup for the
HTML Code:
<div class="category_description">

I've been following the tutorial here, but since I don't get a result back from

Code:
SELECT * FROM xc_view_lists WHERE tpl like '%category_description.tpl";


I am a little confused as to how to proceed, as well as still a bit sketchy on how to write the smarty code.. I can probably figure out the smarty code on my own, but as for the rest, what is the correct way to override this file -- it contains no @ListChild .. and the documentation only describes the single instance where it does.
__________________
--
Scott Godin
Reply With Quote