[ic] problem with item modifier

Jerry Brady interchange-users@interchange.redhat.com
Fri May 10 10:22:01 2002


Folks,

This is probably a simple question and yet I couldn't find an answer in
the archives or in the documentation.  I've been banging my head trying
to figure out why I can't get a simple "Y" or "N" item modifier to work
in my catalog.

In ord/checkout.html, the following code is used to display a checkbox
that sets a modifier called "hotdip":

    <INPUT TYPE="checkbox" NAME="[modifier-name hotdip]" value="Y">

I can't print the value of the modifier ("Y" or NULL) in
etc/receipt.html without a problem, but what I want is to print "Y" if
the modifer is present (they checked the box) or "N" if the modifier
isn't present.  This is important because it also needs to go into an
export file I am creating for my customer's inventory and ordering
system.

I've tried things like:
   [if value [item-modifier hotdip]] Y [else] N [/else][/if]
   [if-modifier hotdip] Y [else] N [/else][/if]

But I can't get anything to work properly.  Can anyone help me with this
silly problem?

Thanks in advance,
Jerry