List Info

Thread: OUI Category Problem




OUI Category Problem
user name
2006-03-22 15:41:57
I have this page I am working on to display the
subcategories of a given 
category along with the alternate images and the short
description.  
It's almost there as you can see at:

http://www.eu
roluximports.com/Merchant2/merchant.mvc?Screen=CTGY2a&Ca
tegory_Code=7010-Furniture 


However, as you can also see, the images are carrying over
to the next 
category if there are none assigned to that category.  I
thought 
%ACTION(OUICAT)% would address this, but no joy.  Below is
the code I 
have in my CBS OUI Supermod template.  Any quick ideas on
how to fix this?

Thanks,

Norman

-- 
---

Norman W. Bunn
norman.bunncraftedsolutions.com
803.405.1008
----------------------------------------------
www.CraftedSolutions.com
Crafted Solutions, Inc.
Web Design & Development
Web Site Hosting & Custom Solutions
"Get the results the Internet promises;
 get the 'Net Result' from Crafted Solutions!"
----------------------------------------------

%%ASSIGN USE_OPENTOKENS 1
%module|CBS|savecat%
%module|CBS|categoryPath%
<style>
   .catsubcat {
   }
   .catsubtitle {
       font-size: 20px;
       font-style: bold;
       text-align: center;
   }
   .cataltimage td {
       text-align: center;
   }
   .cataltimage img {
       border-left: solid #f6f6b0 2px;             
border-top: solid 
#f6f6b0 2px;              border-right: solid #9a9a5e 3px;  
           
border-bottom: solid #9a9a5e 2px;          }
   .catshortdesc {
   }
   .cattitle {
   }
</style>
<table border="0"
BORDERCOLOR="#000000" CELLPADDING=5
CELLSPACING=0 
width=100% class="catsubcat">
%module|CBS|subcatList%
%%IF(g.CBS_TOKEN_VALUE) <TR><TD width=696
colspan=3><table 
align="center"><tr><td
align="right"><img 
src="graphics/00000001/LionIconRightWhiteBackground.jp
g" 
align="right"></td><td><span
class="catsubtitle"><b>Please Choose a 
Subcategory</b></span><hr></td><t
d align="left"><img 
src="graphics/00000001/LionIconLeftWhiteBackground.jpg
" 
align="left"></td></tr></table
></TD></TR>
<tr><td>
%%ASSIGN g.CATS g.CBS_TOKEN_VALUE
%%ASSIGN g.CATCOUNT 0
%%FOREACH g.CATS
%module|CBS|gocatid[g.CBSCUR]%
<table align="left" width=232
style="padding: 5px; margin: 5px; border: 
solid 1px gray;">
   <tr>
       %ACTION(OUICAT)%
       %IF(OUI_Categories2.d.image3)%
       <td align="center"
valign="bottom">%caltimage2L|catcode%</td&
gt;
       %IFEND%
       %IF(OUI_Categories2.d.image2)%
       <td align="center"
valign="bottom">%caltimage1L|catcode%</td&
gt;
       %IFEND%
       %IF(OUI_Categories2.d.image4)%
       <td align="center"
valign="bottom">%caltimage3L|catcode%</td&
gt;
       %IFEND%
   </tr>
   <tr>
       <td colspan=3
align="center"><span
style="font-style:bold; 
font-size:larger;">%catnameL|catcode%</span>&
lt;br><div 
style="background-color:lightgrey;padding: 2px; 
text-align:left;">%VAR(OUI_Categories2.d.shortdesc)
%</div></td>
   </tr>
</table>
%%ASSIGN g.CATCOUNT g.CATCOUNT+1
%%BEGINIF(g.CATCOUNT GT 2)
</td>
</tr>
<tr>
<td>
%%ASSIGN g.CATCOUNT 0
%%ENDIF
%%ENDFOREACH
</td>
</tr>
</TABLE>
%module|CBS|returncat%
<br>
%%ASSIGN USE_OPENTOKENS 0

------------------ MIVA CORPORATION FOOTER
-------------------
FEATURE REQUESTS: mailto:wishlistmiva.com
TO FIND HELP: mailto:merchant-coders-helplistmgr.miva.com
TO UNSUBSCRIBE - Send mail to:
    mailto:merchant-coders-unsubscribelistmgr.miva.com
  if you need to unsubscribe a different address, send a
message to:
    mailto:ezmlmlistmgr.miva.com
  with a subject or message body of
    unsubscribe merchant-coders yournameyourdomain.com
---------------- END MIVA CORPORATION FOOTER
-----------------

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )