[ic] Nest if error?

Ed LaFrance interchange-users@icdevgroup.org
Mon Aug 19 11:06:00 2002


At 02:55 PM 8/19/2002 +0900, you wrote:

>Thank you Mr.Dan Browning. I'm sorry for long line and using 2byte
>character.
>Could you please read again?
>
>I moved one of my sites from IC4.6.4 to IC4.8.6, perl5.6.0.
>
>I have a problem on IC4.8.6.  The problem is an error at my pricing display
>in results.html like below.
>3,597Yen<---4,497Yen [/else][/if-item-data]
>
>But, the same <<<code>>>  is working at the pricing display in flypage.html.
>3,597Yen<---4,497Yen
>
>Of course, both are working well in results.html and flypage.html on
>IC4.6.4.
>
><<<code>>>
>[if-item-data discountprice price]
>     [discount [item-code]][item-data discountprice price][/discount]
>     <font color="red" size="1"><b>[currency][item-data discountprice
>price][/currency]</b></font>
>     <font __FFACE__ size="1"><---<S>[price code="[item-code]"]</S></font>
>[else]
>     [if-item-data pricing price]
>       <font __FFACE__ size="1">[price code="[item-code]"]</font>
>     [else]
>       Quote
>     [/else]
>     [/if-item-data]
>[/else]
>[/if-item-data]

I don't have a 4.8.6 demo running anywhere right at the moment, but your 
code worked fine for me in the unmodified foundation demo results page 
under 4.8.3. I think it is possible that some odd characters have 
accidentally become embedded in the file, perhaps because of the text 
editor you are using, and the result is that parsing of the page is 
affected.  I have occasionally seen this happen. The other thing that comes 
to mind is that some other adjacent or enclosing code is actually where the 
error occurs - maybe too many levels of nesting or an unclosed [if].

- Ed L.



===============================================================
Increase profits from your Interchange store...
http://www.newmediaems.com/cgi-bin/nm/software_fus.html
===============================================================
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================