marty.net message board
    About cpshop >> Customization Help >> Message started by: carolinaswagger on 05/10/13 at 19:25:12

Title: IF Statement
Post by: carolinaswagger on 05/10/13 at 19:25:12
The SortOrder works, but when the IF STATEMENT is added, the titles appear reguardless if the product is available.
Basically,
In some sections I only have a handful of products, that appear under the appropriate titles, then a bunch of titles with no products (The titles take up the majority of the page....)

Is there a certain way the TXT has be saved, formatted to get the IF STATEMENT to work...


Code:
<if 755,649,650>
<div class="deptheader">Women's</div>
#This title still shows up, even when products are not listed

<if 262,261,257>
<div class="deptheader">Kids</div>
262
261
257

<if 73,69,258,259,360,>
<div class="deptheader">Baby</div>
#This title still shows up, even when products are not listed

<if 557,595,553,831,509,508,704>
<div class="deptheader">IPHONE/div>
557
595
553
831
509
508
704


###################################################
# These will be sorted to the bottom:
###################################################



marty.net message board (http://www.marty.net/cgi/marty/board/messageboard)

Powered by YaBB 1 Gold - Release (Yet Another Bulletin Board)
Copyright 2000-2001, X-Null. All Rights Reserved.