--============_-1114678139==_ma============
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
I'm developing a custom shipping module for our store. The module
has options that can be set on a per product basis. But when I hit
the Update button on the product screen, my database is not getting
updated. In trying to track this down I have run the following two
code snippets -
Number 1:
<MvFUNCTION NAME = "Module_Product_Update" PARAMETERS = "product_id"
STANDARDOUTPUTLEVEL = "">
<MvASSIGN NAME = "l.ok" VALUE = "{ PBFS_Open_Store( 5 ) }">
<MvDO FILE = "{ g.Module_Library_Utilities }" NAME = "l.ok" VALUE
= "{ Error( 'MATZ-refnum', l.ok ) }">
<MvIF EXPR = "{ l.ok }">
Number 2:
<MvFUNCTION NAME = "Module_Product_Update" PARAMETERS = "product_id"
STANDARDOUTPUTLEVEL = "">
<MvASSIGN NAME = "l.ok" VALUE = "{ PBFS_Open_Store( 5 ) }">
<MvIF EXPR = "{ l.ok }">
<MvDO FILE = "{ g.Module_Library_Utilities }" NAME = "l.ok"
VALUE = "{ Error( 'MATZ-refnum', l.ok ) }">
Notice that the only difference is the location of the MvDO, before
the MvIF for number 1 and inside the MvIF for number 2. When run
under number one and I click the Update button, as expected, I get a
Miva fatal error with the following info:
Error Code: MATZ-refnum
Description: 1
which shows that l.ok is equal to 1. But if I run with the code as
in number 2, there is no error when I click the Update button. This
means it never gets inside the MvIF.
But if l.ok is 1, why doesn't it go inside the MvIF? I'd be tearing
out my hair on this one if I had any to spare.
Any ideas on what's going on or how better to troubleshoot this would
be greatly appreciated.
Thanks,
--
--------------------------------------------------------------
Mark T. Johnson
MATZ Software & Consulting
Phone: 858-571-3125
FAX: 858-452-2871
--============_-1114678139==_ma============--
Comment