Announcement

Collapse
No announcement yet.

how to make vars available

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    how to make vars available



    Hello merchant-coders,

    I'm writing an OUI module. It collects data from a select list during
    the Shipping/Payment selection screen.

    I need that var to be listed in a header of the Invoice screen. I
    simply would like access to that var using tokens? How do get from one
    screen to another?

    This is what I'd like to do in the Invoice header:

    %OUI%
    %var|g.my_listvar%
    %ordernum%


    Only %ordernum% works. %var|g.my_listvar% is empty? because the value
    hasn't made it to the Invoice screen? Is it possible using hidden
    inputs?


    --
    Best regards,
    Scott
    mailto:[email protected]




    #2
    how to make vars available



    And, I also need this info in the emails.

    The hidden inputs I've tried: in OPAY footer, INVC header.

    <INPUT TYPE="hidden" NAME="g.my_listvart" VALUE="%var|g.my_listvar%">

    and

    <INPUT TYPE="hidden" NAME="g.my_listvar" VALUE="{%var|g.my_listvar%}">

    TIA,

    Scott
    IDS


    Wednesday, April 20, 2005, 1:33:46 AM, you wrote:

    SS> Hello merchant-coders,

    SS> I'm writing an OUI module. It collects data from a select list during
    SS> the Shipping/Payment selection screen.

    SS> I need that var to be listed in a header of the Invoice screen. I
    SS> simply would like access to that var using tokens? How do get from one
    SS> screen to another?

    SS> This is what I'd like to do in the Invoice header:

    SS> %OUI%
    SS> %var|g.my_listvar%
    %ordernum%


    SS> Only %ordernum% works. %var|g.my_listvar% is empty? because the value
    SS> hasn't made it to the Invoice screen? Is it possible using hidden
    SS> inputs?





    --
    Best regards,
    Scott
    mailto:[email protected]



    Comment


      #3
      how to make vars available



      Scott,

      Don't put the "g." In the variable name....use this:

      <INPUT TYPE="hidden" NAME="my_listvar" VALUE="%VAR(g.my_listvar|EE)%">

      Darren Ehlers
      OpenUI Developer Consortium
      <A HREF ="http://www.openui.org/ ">http://www.openui.org/ </A>

      Double the speed of your OpenTokens, only $40!!
      <A HREF ="http://www.openui.org/purchase/?pc=OPENUI-TURBO&pn=OpenUI%20Turbo ">http://www.openui.org/purchase/?pc=O...OpenUI%20Turbo </A>

      > -----Original Message-----
      > From: [email protected]
      > [mailto:[email protected]] On Behalf Of Scott Shepard
      > Sent: Wednesday, April 20, 2005 4:02 AM
      > To: [email protected]
      > Subject: Re: [mrc] how to make vars available
      >
      >
      > And, I also need this info in the emails.
      >
      > The hidden inputs I've tried: in OPAY footer, INVC header.
      >
      > <INPUT TYPE="hidden" NAME="g.my_listvart" VALUE="%var|g.my_listvar%">
      >
      > and
      >
      > <INPUT TYPE="hidden" NAME="g.my_listvar" VALUE="{%var|g.my_listvar%}">
      >
      > TIA,
      >
      > Scott
      > IDS
      >
      >
      > Wednesday, April 20, 2005, 1:33:46 AM, you wrote:
      >
      > SS> Hello merchant-coders,
      >
      > SS> I'm writing an OUI module. It collects data from a select
      > list during
      > SS> the Shipping/Payment selection screen.
      >
      > SS> I need that var to be listed in a header of the Invoice screen. I
      > SS> simply would like access to that var using tokens? How do
      > get from one
      > SS> screen to another?
      >
      > SS> This is what I'd like to do in the Invoice header:
      >
      > SS> %OUI%
      > SS> %var|g.my_listvar%
      %ordernum%

      >
      > SS> Only %ordernum% works. %var|g.my_listvar% is empty?
      > because the value
      > SS> hasn't made it to the Invoice screen? Is it possible using hidden
      > SS> inputs?
      >
      >
      >
      >
      >
      > --
      > Best regards,
      > Scott
      > mailto:[email protected]
      >
      >
      >

      Comment


        #4
        how to make vars available



        Use

        <input type=hidden name=my_listvar value=actual_value>

        And make sure its in the 'main" form post of Opay screen...

        -Bruce Golub
        PHOSPHOR Media
        ......................................
        Featuring: StoreMan - A smarter way to manage Miva Merchant(tm) Store
        Content.
        Download a hassle-free demo today
        <A HREF ="http://www.phosphormedia.com/go.mv?ID=listsm">http://www.phosphormedia.com/go.mv?ID=listsm</A>
        ......................................


        > -----Original Message-----
        > From: [email protected]
        > [mailto:[email protected]] On Behalf Of Scott Shepard
        > Sent: Wednesday, April 20, 2005 1:34 AM
        > To: [email protected]
        > Subject: [mrc] how to make vars available
        >
        > Hello merchant-coders,
        >
        > I'm writing an OUI module. It collects data from a select
        > list during the Shipping/Payment selection screen.
        >
        > I need that var to be listed in a header of the Invoice
        > screen. I simply would like access to that var using tokens?
        > How do get from one screen to another?
        >
        > This is what I'd like to do in the Invoice header:
        >
        > %OUI%
        > %var|g.my_listvar%
        %ordernum%

        >
        > Only %ordernum% works. %var|g.my_listvar% is empty? because
        > the value hasn't made it to the Invoice screen? Is it
        > possible using hidden inputs?
        >
        >
        > --
        > Best regards,
        > Scott
        > mailto:[email protected]
        >
        >
        >

        Comment


          #5
          Re[2]: how to make vars available



          Thanks Bruce. I want to make sure I understand.

          Would this cover what I need to do?

          <MvCOMMENT>Order_Payment Screen</MvCOMMENT>
          <MvIF EXPR = "{ l.smod_id EQ 14 }">
          <input type=hidden name=my_listvar value=actual_value>
          <MvIF EXPR = "{ l.ext_id EQ someext }">


          For my own edification:
          Is there another way to Tokenize? I guess that's probably a general
          question.

          Thanks,

          Scott
          IDS



          Wednesday, April 20, 2005, 8:42:11 AM, you wrote:

          BGPc> Use

          BGPc> <input type=hidden name=my_listvar value=actual_value>

          BGPc> And make sure its in the 'main" form post of Opay screen...

          BGPc> -Bruce Golub
          BGPc> PHOSPHOR Media
          BGPc> ......................................
          BGPc> Featuring: StoreMan - A smarter way to manage Miva Merchant(tm) Store
          BGPc> Content.
          BGPc> Download a hassle-free demo today
          BGPc> <A HREF ="http://www.phosphormedia.com/go.mv?ID=listsm">http://www.phosphormedia.com/go.mv?ID=listsm</A>
          BGPc> ......................................


          >> -----Original Message-----
          >> From: [email protected]
          >> [mailto:[email protected]] On Behalf Of Scott Shepard
          >> Sent: Wednesday, April 20, 2005 1:34 AM
          >> To: [email protected]
          >> Subject: [mrc] how to make vars available
          >>
          >> Hello merchant-coders,
          >>
          >> I'm writing an OUI module. It collects data from a select
          >> list during the Shipping/Payment selection screen.
          >>
          >> I need that var to be listed in a header of the Invoice
          >> screen. I simply would like access to that var using tokens?
          >> How do get from one screen to another?
          >>
          >> This is what I'd like to do in the Invoice header:
          >>
          >> %OUI%
          >> %var|g.my_listvar%
          %ordernum%

          >>
          >> Only %ordernum% works. %var|g.my_listvar% is empty? because
          >> the value hasn't made it to the Invoice screen? Is it
          >> possible using hidden inputs?
          >>
          >>
          >> --
          >> Best regards,
          >> Scott
          >> mailto:[email protected]
          >>
          >>
          >>

          Comment

          Working...
          X