[ic] Help! Empty shopping basket or interaction error (long post)

marc.brevoort interchange-users@icdevgroup.org
Thu Aug 29 07:46:04 2002


Hello group,

I've got a customized flypage which is supposed to act as order form that 
allows me to order multiple items in a grid. 

It has several submit buttons: cancel to go back to the search page, refresh 
to update the totals, and two order buttons: One that's supposed to add items 
to the shopping basket and checkout, another to add items to the shopping 
basket and go back to the search page (and continue shopping). 

I'm filling multiple mv_order_item and mv_order_quantity fields in a 
generated javascript (this eventually also allows me to do some extra 
validation). 

However so far, either the shopping basket shows up empty or I'm getting an 
interaction error. I'm guessing this has to do with wrong mv_ variables but 
the original flypage did not seem to need any. I've attached (a reduced 
version of) the generated page below, can anyone tell me what is wrong and 
what values to give the various mv_ fields?

Thanks in advance,

Marc Brevoort

<!-- BEGIN LEFTONLY_TOP -->


<html>
<head>
  
  <title>store Store -- STRIPPER</title>
<script type="text/javascript">


function Flypage_Cancel(form) {
        location.href=form.referring_searchpage.value;
}

function Flypage_ReadForm(flypage,thelink,thebutton) {

   flypage.mv_order_item[0].value="01.01.8061.01.8-I00-XS-STL";
   flypage.mv_order_quantity[0]=flypage.f01018061018I00_XS_STL.value;
   flypage.mv_order_item[1].value="01.01.8061.01.8-I00-XS-BDC";
   flypage.mv_order_quantity[1]=flypage.f01018061018I00_XS_BDC.value;
   flypage.mv_order_item[2].value="01.01.8061.01.8-I00-XS-GRD";
   flypage.mv_order_quantity[2]=flypage.f01018061018I00_XS_GRD.value;
   flypage.mv_order_item[3].value="01.01.8061.01.8-I00-S-STL";
   flypage.mv_order_quantity[3]=flypage.f01018061018I00_S_STL.value;
   flypage.mv_order_item[4].value="01.01.8061.01.8-I00-S-BDC";
   flypage.mv_order_quantity[4]=flypage.f01018061018I00_S_BDC.value;
   flypage.mv_order_item[5].value="01.01.8061.01.8-I00-S-GRD";
   flypage.mv_order_quantity[5]=flypage.f01018061018I00_S_GRD.value;
   flypage.mv_order_item[6].value="01.01.8061.01.8-I00-M-STL";
   flypage.mv_order_quantity[6]=flypage.f01018061018I00_M_STL.value;
   flypage.mv_order_item[7].value="01.01.8061.01.8-I00-M-BDC";
   flypage.mv_order_quantity[7]=flypage.f01018061018I00_M_BDC.value;
   flypage.mv_order_item[8].value="01.01.8061.01.8-I00-M-GRD";
   flypage.mv_order_quantity[8]=flypage.f01018061018I00_M_GRD.value;
   flypage.mv_order_item[9].value="01.01.8061.01.8-I00-L-STL";
   flypage.mv_order_quantity[9]=flypage.f01018061018I00_L_STL.value;
   flypage.mv_order_item[10].value="01.01.8061.01.8-I00-L-BDC";
   flypage.mv_order_quantity[10]=flypage.f01018061018I00_L_BDC.value;
   flypage.mv_order_item[11].value="01.01.8061.01.8-I00-L-GRD";
   flypage.mv_order_quantity[11]=flypage.f01018061018I00_L_GRD.value;
   flypage.mv_order_item[12].value="01.01.8061.01.8-I00-XL-STL";
   flypage.mv_order_quantity[12]=flypage.f01018061018I00_XL_STL.value;
   flypage.mv_order_item[13].value="01.01.8061.01.8-I00-XL-BDC";
   flypage.mv_order_quantity[13]=flypage.f01018061018I00_XL_BDC.value;
   flypage.mv_order_item[14].value="01.01.8061.01.8-I00-XL-GRD";
   flypage.mv_order_quantity[14]=flypage.f01018061018I00_XL_GRD.value;
alert(thelink);
flypage.mv_nextpage.value=thelink;
}

</script>

</head>

<body marginheight="0" marginwidth="0" bgcolor="#FFFFFF">

<!--- top left and right logo --->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
  <td align="left" valign="middle" class="maincontent">
    &nbsp;<img src="/store/images/foundation//logo.gif">
  </td>         
  
  <td align="right" valign="middle" class="maincontent">
    <img width="174" height="60" 
src="/store/images/foundation/logo2.gif">&nbsp;
  </td>
  
</tr>
</table>

<!--- menu bar along the top --->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="categorybar">
  <td class="categorybar" height="1" width="100%"><img 
src="/store/images/foundation/clear.gif" height="1"></td>
</tr><tr>
  <td width="100%" class="menubar">
    <a href="http://lx450.beloura.local/cgi-bin/store/index.html"><img 
name="Home" border="0" src="/store/images/foundation/home.gif"></a>
      <img src="/store/images/foundation/sep.gif">
    
      <a 
href="http://lx450.beloura.local/cgi-bin/store/login.html?id=8yyZi3Uw&mv_pc=654">
      <img alt="Log In" border="0" 
src="/store/images/foundation/login.gif"></a>
    
      <img src="/store/images/foundation/sep.gif">
    <a 
href="http://lx450.beloura.local/cgi-bin/store/ord/basket.html?id=8yyZi3Uw&mv_pc=655"><img 
alt="Your Cart" border="0" src="/store/images/foundation/cart.gif"></a>
      <img src="/store/images/foundation/sep.gif">
    <a 
href="http://lx450.beloura.local/cgi-bin/store/ord/checkout.html?id=8yyZi3Uw&mv_pc=656"><img 
alt="Check Out" border="0" src="/store/images/foundation/checkout.gif"></a>
      <img src="/store/images/foundation/sep.gif">
    <a 
href="http://lx450.beloura.local/cgi-bin/store/customerservice.html"><img 
alt="Customer Service" border="0" 
src="/store/images/foundation/service.gif"></a>
      <img src="/store/images/foundation/sep.gif">
    <a href="http://lx450.beloura.local/cgi-bin/store/aboutus.html"><img 
alt="About Us" border="0" src="/store/images/foundation/about.gif"></a>
  </td>
</tr>
<tr class="categorybar">
  <td class="categorybar" height="1" width="100%"><img 
src="/store/images/foundation/clear.gif" height="1"></td>
</tr>
</table>

<!--- left category column, main content column, and right special column --->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> 
  <td width="20%" valign="top" align="left" class="categorybar"> 
    <!--Left Sidebar-->
    <table width="100%" border="0" cellspacing="0" cellpadding="0">


      

<tr><td align="left" class="categorybar">
  <br>
  <table width="90%" align="center">
<!-- snip snip -->
    </table>                              
  </td>
  <td width="80%" valign="top" align="center" class="maincontent"> 
    




<!-- BEGIN CONTENT -->
<table width="10%" height="3" cellspacing=0 border=0 cellpadding=0><tr><td 
width="100%" height="3"></td></tr></table>
  <table width="90%" border="0" cellspacing="0" cellpadding="2">
  <tr valign="middle"> 
    <td align=center nowrap bgcolor="#DDDDDD"><font 
face="Arial,Helvetica,Verdana,sans-serif" 
size="3"><b>01.01.8061.01.8-I00</b></font></td>
    <td align=center bgcolor="#DDDDDD"><font 
face="Arial,Helvetica,Verdana,sans-serif" size="3">
      <big>CASACO ABER. C\GOLA C\CAP : <b>STRIPPER</b></big></font>
    </td>
  </tr>
  </table>







<FORM METHOD="POST" name="flypage" 
action="http://lx450.beloura.local/cgi-bin/store/process.html">

  <input type=hidden name=mv_session_id value="8yyZi3Uw">
  <input type="hidden" name="mv_todo" value="refresh">
<input type="hidden" name="referring_searchpage" 
value="http://lx450.beloura.local/cgi-bin/store/scan/st=db/co=yes/sf=sku/se=01.01/va=banner_image=/va=banner_text=.html">



<table border="0" width="90%" cellpadding=0 cellspacing=0>
  <tr>
    <td valign="top"> 
      <table border="0" width="90%" cellpadding=0 cellspacing=0>
        <tr>
          <td>
            <table width="100%" cellpadding=3 cellspacing=0 border=0>
              <tr>
                <td align="center" bgcolor="#DDDDDD">
                  <font face="Arial,Helvetica,Verdana,sans-serif" 
size="3"><b>Informa&ccedil;&atilde;o do Produto</b></font>
                </td>
             </tr>
            </table>

            <table>
              <tr>
                <td valign="top" align="left"> 
                  CASACO ABER. C\GOLA C\CAP
                  <br><br>
                  
                  <a 
href="http://lx450.beloura.local/cgi-bin/store/stock-alert.html?mv_arg=01%2e01%2e8061%2e01%2e8%2dI00">The 
item is currently out of stock. Click here if you want to receive an In-Stock 
Notification.</a>
                  
                </td>
              </tr>
            </table>
            <br> <br>
            <table width="100%" border=0 cellspacing=0 cellpadding=0>
              <tr>
                <td bgcolor="#DDDDDD" valign="top" align="center">
                  <b>Pre&ccedil;o/unidade:</b>
                </td>
                <td bgcolor="#DDDDDD" valign="top" align="left">
                        EUR 55.56
                </td>
              </tr>
            </table>
         </td>
       </tr>
     </table>
  </td>

  <td align="right" valign="top" rowspan="2"> 
          
          <table width="90%" border=2 cellspacing=5 cellpadding=5><tr><td 
bgcolor="#FFFFCC" align="center">
                <font 
face="Arial,Helvetica,Verdana,sans-serif"><br><b>Imagem<br>n&atilde;o<br>dispon&iacute;vel</b></font><br><br></td></tr></table>
          
  </td>
 </tr>
  <tr>
     <td width=100% nowrap valign="bottom">
        In the table below, please enter the amount of products you want to 
order.<br>
        <font face="Arial,Helvetica,Verdana,sans-serif" size="3">
                <input type="submit" name="submitbutton" value="Recalculate 
page" 
onClick="Flypage_ReadForm(this.form,'/cgi-bin/store/01.01.8061.01.8-I00.html','recalc');">
                <input type="submit" name="submitbutton" value="Check Out" 
onClick="Flypage_ReadForm(this.form,'http://lx450.beloura.local/cgi-bin/store/process.html','checkout');">
                <input type="submit" name="submitbutton" value="Order & 
Continue" 
onClick="Flypage_ReadForm(this.form,'http://lx450.beloura.local/cgi-bin/store/process.html','ordercont');">
                <input type="button" value="Cancel" 
OnClick="Flypage_Cancel(this.form)">
        </font>
  </td></tr>
</table>

<table border=1 cellspacing=0 cellpadding=0 width="90%">
<tr>
<TD width="20%" nowrap><b>Cor / Tamanho =&gt;</b></td>
<TD align="center" class="tamanho" bgcolor="#BBEEFF" width="6%" nowrap>XS</td>
<TD align="center" class="tamanho" bgcolor="#BBEEFF" width="6%" nowrap>S</td>
<TD align="center" class="tamanho" bgcolor="#BBEEFF" width="6%" nowrap>M</td>
<TD align="center" class="tamanho" bgcolor="#BBEEFF" width="6%" nowrap>L</td>
<TD align="center" class="tamanho" bgcolor="#BBEEFF" width="6%" nowrap>XL</td>
<td width="20%" nowrap class="subtotal" bgcolor="#CCCCCC"><b>Total :</b></td>
<tr><td class="cor" bgcolor="#BBEEFF" valign="top">STL&nbsp;<span 
class="cor_detail">(STEEL)</span></td><td align="right" width="10%" nowrap>
<input type=text size=4 name="f01018061018I00_XS_STL" value="1"><input 
type=hidden name="mv_order_item" value="01.01.8061.01.8-I00-XS-STL"><input 
type=hidden name="mv_order_quantity" value=""></td><td align="right" 
width="10%" nowrap>
<input type=text size=4 name="f01018061018I00_S_STL" value="2"><input 
type=hidden name="mv_order_item" value="01.01.8061.01.8-I00-S-STL"><input 
type=hidden name="mv_order_quantity" value=""></td><td align="right" 
width="10%" nowrap>
<input type=text size=4 name="f01018061018I00_M_STL" value=""><input 
type=hidden name="mv_order_item" value="01.01.8061.01.8-I00-M-STL"><input 
type=hidden name="mv_order_quantity" value=""></td><td align="right" 
width="10%" nowrap>
<input type=text size=4 name="f01018061018I00_L_STL" value=""><input 
type=hidden name="mv_order_item" value="01.01.8061.01.8-I00-L-STL"><input 
type=hidden name="mv_order_quantity" value=""></td><td align="right" 
width="10%" nowrap>
<input type=text size=4 name="f01018061018I00_XL_STL" value=""><input 
type=hidden name="mv_order_item" value="01.01.8061.01.8-I00-XL-STL"><input 
type=hidden name="mv_order_quantity" value=""></td><td align="right" 
class="subtotal" bgcolor="#EEEEEE">3</td></tr>
<tr><td class="cor" bgcolor="#BBEEFF" valign="top">BDC&nbsp;<span 
class="cor_detail">(BLEU DE CHINE)</span></td><td align="right" width="10%" 
nowrap>
<input type=text size=4 name="f01018061018I00_XS_BDC" value=""><input 
type=hidden name="mv_order_item" value="01.01.8061.01.8-I00-XS-BDC"><input 
type=hidden name="mv_order_quantity" value=""></td><td align="right" 
width="10%" nowrap>
<input type=text size=4 name="f01018061018I00_S_BDC" value=""><input 
type=hidden name="mv_order_item" value="01.01.8061.01.8-I00-S-BDC"><input 
type=hidden name="mv_order_quantity" value=""></td><td align="right" 
width="10%" nowrap>
<input type=text size=4 name="f01018061018I00_M_BDC" value=""><input 
type=hidden name="mv_order_item" value="01.01.8061.01.8-I00-M-BDC"><input 
type=hidden name="mv_order_quantity" value=""></td><td align="right" 
width="10%" nowrap>
<input type=text size=4 name="f01018061018I00_L_BDC" value=""><input 
type=hidden name="mv_order_item" value="01.01.8061.01.8-I00-L-BDC"><input 
type=hidden name="mv_order_quantity" value=""></td><td align="right" 
width="10%" nowrap>
<input type=text size=4 name="f01018061018I00_XL_BDC" value=""><input 
type=hidden name="mv_order_item" value="01.01.8061.01.8-I00-XL-BDC"><input 
type=hidden name="mv_order_quantity" value=""></td><td align="right" 
class="subtotal" bgcolor="#EEEEEE">0</td></tr>
<tr><td class="cor" bgcolor="#BBEEFF" valign="top">GRD&nbsp;<span 
class="cor_detail">(G&S RED)</span></td><td align="right" width="10%" nowrap>
<input type=text size=4 name="f01018061018I00_XS_GRD" value=""><input 
type=hidden name="mv_order_item" value="01.01.8061.01.8-I00-XS-GRD"><input 
type=hidden name="mv_order_quantity" value=""></td><td align="right" 
width="10%" nowrap>
<input type=text size=4 name="f01018061018I00_S_GRD" value=""><input 
type=hidden name="mv_order_item" value="01.01.8061.01.8-I00-S-GRD"><input 
type=hidden name="mv_order_quantity" value=""></td><td align="right" 
width="10%" nowrap>
<input type=text size=4 name="f01018061018I00_M_GRD" value=""><input 
type=hidden name="mv_order_item" value="01.01.8061.01.8-I00-M-GRD"><input 
type=hidden name="mv_order_quantity" value=""></td><td align="right" 
width="10%" nowrap>
<input type=text size=4 name="f01018061018I00_L_GRD" value=""><input 
type=hidden name="mv_order_item" value="01.01.8061.01.8-I00-L-GRD"><input 
type=hidden name="mv_order_quantity" value=""></td><td align="right" 
width="10%" nowrap>
<input type=text size=4 name="f01018061018I00_XL_GRD" value=""><input 
type=hidden name="mv_order_item" value="01.01.8061.01.8-I00-XL-GRD"><input 
type=hidden name="mv_order_quantity" value=""></td><td align="right" 
class="subtotal" bgcolor="#EEEEEE">0</td></tr>
<tr><td width="20%" class="cor" bgcolor="#CCCCCC" align="right"><b>Total 
:</b></td><td bgcolor="#EEEEEE" align=right class="subtotal">0</td><td 
bgcolor="#EEEEEE" align=right class="subtotal">1</td><td bgcolor="#EEEEEE" 
align=right class="subtotal">2</td><td bgcolor="#EEEEEE" align=right 
class="subtotal">0</td><td bgcolor="#EEEEEE" align=right 
class="subtotal">0</td><td align="right"><b>3</b></td></tr></table><br>
<br>
 



</form>



<!-- END CONTENT -->

    


  <center>
    <p><a href="http://interchange.redhat.com/"><img 
src="/store/images/foundation/poweredby.gif" border="0"></a></p>
    
      <p><a 
href="http://lx450.beloura.local/cgi-bin/store/admin/index.html">Admin</a></p>
    
  </center>

  </td>
</tr>
</table>

</body>
</html>