[ic] mv_action not doing what I expect...

Paul Stearns pauls@compuace.com
Fri, 1 Dec 2000 20:52:30 -0500


Where can I find the perl script wich executes when a mv_action=refresh is executed?

I really need this to be consistent across browsers.

When reading the perl script (a perl expert I'm not) /usr/lib/interchange/bin/interchange, I found an area which appears to have something to do with the "refresh" section. I also found lines
which started with "#::LogDebug..." I assumed these to be commented out commands which would write stuff to a log. Unfortunately I don't know where it would write this stuff to. I would like to
use these commands for debugging.

Is there any sort of "internals" documentation which tells what bits of code gets executed and when? I am fighting a steep learning curve with Interchange and Perl.

Paul

Paul Stearns wrote:

> Steve:
>
> You may think I'm on drugs but...
>
> If I run my site with Internet Explorer(IE) my results are good. If I run the site with Netscape it seems to ignore the em=yes
> and puts raw spaces on the url line which causes the script to go to hell in a hand basket (bring up the standard results page
> with bizarre search criteria) Below are some urls generated;
>
> IE
> Going into the results page cat_results.html
> ==================
> http://webdb.edatatranslators.com/cgi-bin/flcitrus/scan/se=Harvest%20Basket/sf=category/tf=price/em=yes/co=yes/sp=cat_results.html
>
> ==================
> IE
> After clicking buy button
> ==================
> http://webdb.edatatranslators.com/cgi-bin/flcitrus/scan/se=Harvest%20Basket/sf=category/tf=price/em=yes/co=yes/sp=cat_results.html?mv_session_id=sWxyeHsN&mv_nextpage=cat_results&mv_username=
>
> ==================
>
> Netscape
> Going into the results page cat_results.html
> ==================
> http://webdb.edatatranslators.com/cgi-bin/flcitrus/scan/se=Harvest%20Basket/sf=category/tf=price/em=yes/co=yes/sp=cat_results.html
>
> ==================
> Netscape
> After clicking buy button
> ==================
> http://webdb.edatatranslators.com/cgi-bin/flcitrus/scan/se=Harvest
> Basket/sf=category/tf=price/em=yes/co=yes/sp=cat_results.html?mv_session_id=dYANRdEx&mv_nextpage=cat_results&mv_username=
> ==================
>
> Notice that there is a space instead of a %20 on the last url. (my mail program may have done a word wrap on the space). This
> particular example doesn't behave too badly since "Harvest Basket" is the only product with "Harvest" in the name.
>
> I do not know if this is specifically a problem with Netscape, or I just haven't figured out how to break it with IE.
>
> Any and all help in this matter would be greatly appreciated.
>
> Paul
>
> Steve & Patti Getzinger wrote:
>
> > My initial guess in the Buy All value of the order button. If you want to do that you have to define it in the catalog.cfg
> > file (or am I a dinasaur :)  ) The value of the button tells it what to do (simplistically said) If you look in the
> > catalog.cfg file you should see some directives that match the original Order Now. Copy that info and change the Order Now
> > to your Buy All. Or if all your order buttons are Buy All just change the existing entry. Retsart the IC server. I did not
> > look real hard at your code so there might be other problems or that may not even be it.
> >
> > Hope that helps
> >
> > Steve
> >
> > Paul Stearns wrote:
> >
> > > I am runneing v4.6 with GDBM.
> > >
> > > I have copied the results.html page to cat_results.html.
> > >
> > > When I click on Buy, the page returned is the original results.html page
> > > with a really odd set of products.
> > >
> > > What am I doing wrong?
> > >
> > > Below please find the FORM tag from cat_results and the url generated.
> > >
> > > ====================
> > >
> > > [on-match]
> > > <FORM ACTION="[area nothing]" METHOD=POST>
> > > <INPUT TYPE=hidden  NAME="mv_action"        VALUE="refresh">
> > > <INPUT TYPE=hidden  NAME="mv_separate_items"  VALUE="0">
> > > <INPUT TYPE=hidden  NAME="mv_click"        VALUE="munge_quantity">
> > > [/on-match]
> > >
> > > [search-list]
> > >
> > > [item-change 1][condition][item-field category][/condition]
> > >                     <table width="313" border="0" cellspacing="0"
> > > cellpadding="0
> > > " bgcolor="#FF9900">
> > >                         <tr><td>&nbsp;</td></tr>
> > >                     </table>
> > >                     <table width="313" border="0" cellspacing="0"
> > > cellpadding="0
> > > " bgcolor="#FFFFFF">
> > >                         <tr><td>[if-item-field image]<IMG
> > > SRC="items/[item-field
> > >  image]" ALT="[item-field title]" BORDER=0>[/if-item-field]</td>
> > >                             <td valign="top">[item-field
> > > comment]</td></tr>
> > >                     </table>
> > >
> > >                     <table width="313" border="1" cellspacing="0"
> > > cellpadding="0
> > > " bordercolor="#669999">
> > >                       <tr bgcolor="#FFFFFF" valign="middle">
> > >                         <td>
> > >                             <table border="0" cellspacing="2"
> > > cellpadding="3" bo
> > > rdercolor="#FFFFFF" align="center" width="100%">
> > >                               <tr>
> > >                         <td width="80" align="center"
> > > bgcolor="#669999"><font __
> > > FFACE__ size="1" color="#FFFFFF">Product</font></td>
> > >                         <td width="30" align="center"
> > > bgcolor="#669999"><font __
> > > FFACE__ size="1" color="#FFFFFF">Sku</font></td>
> > >                         <td width="50" align="center"
> > > bgcolor="#669999"><font __
> > > FFACE__ size="1" color="#FFFFFF">Price</font></td>
> > >                         <td width="20" align="center"
> > > bgcolor="#669999"><font __
> > > FFACE__ size="1" color="#FFFFFF">Qty</font></td>
> > >                         <td width="30" align="center"
> > > bgcolor="#669999"><font __
> > > FFACE__ size="1" color="#FFFFFF">Buy</font></td>
> > >
> > >                       </tr>
> > >                                           </table>
> > >                                         </td></tr>
> > >                     </table>
> > >
> > > [/item-change 1]
> > >
> > >                     <table width="313" border="1" cellspacing="0"
> > > cellpadding="0
> > > " bordercolor="#669999">
> > >                       <tr bgcolor="#FFFFFF" valign="middle">
> > >                         <td align=center height="5">
> > >                           <div align="left">
> > >                             <table border="0" cellspacing="0"
> > > cellpadding="3" bo
> > > rdercolor="#FFFFFF" align="center" width="100%">
> > >
> > > <INPUT TYPE=hidden  NAME="mv_order_item"  VALUE="[item-code]">
> > >
> > >                               <tr>
> > >                                 <td valign="top" width="90"><a
> > > href="[area [item
> > > -code]]"><font __FFACE__ size="1"><b>[item-field
> > > title]</b></font></a></td>
> > >                                                                 <td
> > > valign="top"
> > >  width="30" align="right"><font __FFACE__
> > > size="1">[item-code]</font></td>
> > >                                                                 <td
> > > valign="top"
> > >  width="30" align="center">[item-calc]
> > > [/item-calc]</td>
> > >                                                                 <td
> > > valign="top"
> > >  width="30"><font __FFACE__ size="1">[item-price]</font></td>
> > >                                                                 <td
> > > valign=top w
> > > idth=30><input type=hidden name="mv_oi[item-increment]" value=""><input
> > > type=tex
> > > t name=mv_order_quantity size=2 value="1"></td>
> > >                                                                 <td
> > > valign=top w
> > > idth=30><FONT __FFACE__ size=2><input type=submit value=Buy
> > > onClick="this.form.m
> > > v_oi[item-increment].value='[item-code]'"></font></td>
> > >
> > >                               </tr>
> > >                             </table>
> > >                             <div align="center"><b><i></i></b></div>
> > >                           </div>
> > >                         </td>
> > >                       </tr>
> > >                     </table>
> > >
> > > [/search-list]
> > > [on-match]
> > > <div align=right><INPUT TYPE=submit VALUE="Buy All"></div>
> > > </FORM>
> > > [/on-match]
> > >
> > > =========================
> > >
> > > http://webdb.edatatranslators.com/cgi-bin/flcitrus/scan/se=8 Month
> > > Club/sf=category/tf=price/em=yes/co=yes/sp=cat_results.html?mv_session_id=FTBBhNXb&mv_nextpage=cat_results&mv_username=
> > >
> > > Paul
> > >
> > > _______________________________________________
> > > Interchange-users mailing list
> > > Interchange-users@www.minivend.com
> > > http://www.minivend.com/mailman/listinfo/interchange-users
> >
> > --
> > =========================================================
> >   WDI                          Steve & Patti Getzinger
> >   702 Lincolnway West          steveandpatti@wubs.org
> >   South Bend, IN  46616        http://www.wubs.org/
> >   219-287-4700 (Main Office)   317-535-0239 (Direct Line)
> > =========================================================
> >
> > _______________________________________________
> > Interchange-users mailing list
> > Interchange-users@www.minivend.com
> > http://www.minivend.com/mailman/listinfo/interchange-users
>
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@www.minivend.com
> http://www.minivend.com/mailman/listinfo/interchange-users