[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] database lookup from form variable
Michael Goldfarb <mikeg@contactdesigns.com> writes:
> IC 4.8.5
>
> I must be a complete moron (or more likely have a syntax error), but I am
> trying to do a simple if/else statement to test to see if a certain item is
> in a catalog when a user enters its SKU number into a form field.
>
>
> Here is the code I have tried:
>
> [if data products::sku::"[value sku_test]"]
> It is available
> [else]
> It is not available
> [/else]
> [/if]
>
> I can print [value sku_test] correctly on the following page both above and
> below the "if" statement so I know it is correct, but no matter what syntax
> I try I cannot get this to work.
You need to use parameters with op= and term=, it is
explained in the documentation.
Ciao
Racke
--
Free resources for Interchange programming NOW !!!
Don't hesitate to contact me if you need my professional help.
Your core developer and consultant for the most sophisticated,
flexible and extensible Open Source eCommerce software.