4 Sessions Into One?

I have 4 sessions for shipping on my checkout page.
1. WAEC_FlatRateUnder8Ground
2. WAEC_FlatRateOver8Ground
3. WAEC_FlatRate2ndDayAir
4. WAEC_FlatRate2ndDayAirover100
They correctly display the shipping cost. I just hide all
that are empty,
one will always have a value. That's where the problem comes
in because I
don't know which will have a value.
I need to pull that shipping cost that is stored in one of
those 4 sessions
and I need to put it into something like another session or a
table in a
database. Because I don't know which Shipping Method will be
used, I can't
just assign one of the four to a shipping variable.
Any ideas how I could do this?

I just realized that it doesn't need quotes around the dim
name.
"lee" <[email protected]> wrote in message
news:e2autc$12e$[email protected]..
>I just don't think there is anything in this dim
WAEC_SHIPPING. Does it
>need to have quotes around it?
>
> <%
> Dim WAEC_SHIPPING
>
> 'Check First
> If Not isEmpty(WAEC_FlatRateUnder8Ground) Then
> WAEC_SHIPPING = WAEC_FlatRateUnder8Ground
> End If
>
> 'Check Second
> If Not isEmpty(WAEC_FlatRateOver8Ground) Then
> WAEC_SHIPPING = WAEC_FlatRateOver8Ground
> End If
>
>
> 'Check Third
> If Not isEmpty(WAEC_FlatRate2ndDayAir) Then
> WAEC_SHIPPING = WAEC_FlatRate2ndDayAir
> End If
>
> 'Check Fouth
> If Not isEmpty(WAEC_FlatRate2ndDayAirover100) Then
> WAEC_SHIPPING = WAEC_FlatRate2ndDayAirover100
> End If
> %>
>
> "Tready29483" <[email protected]> wrote
in message
> news:e2ao4a$ln8$[email protected]..
>>I would make it another Session variable. You can
manually edit that
>> dreamweaver code by the way:
>>
>> <%
>> if (cStr(Session("WAEC_FlatRateUnder8Ground"))
<> "") then
>> Session("ssTotalShipping") = "" & cStr(
>> Application("FlatRateUnder8Ground") ) &
>> ""
>> end if
>> %>
>>
>> make one of those for each Session that you have:
>>
>> FlatRateUnder8Ground
>> FlatRateOver8Ground
>> FlatRate2ndDayAir
>> FlatRate2ndDayAirover100
>>
>>
>>
>
>

Similar Messages

  • Multiple users logged into one server, each users printer has a different name, application needs ONE name to print to.

    Multiple users logged into one server, each users printer has a different name, application needs ONE name to print to. 
    I'm NOT in any way a Terminal Services expert and I need help trying to get an application program working in a multi-user environment.
    The issue is that the printer changes for every user that is logged in. The application needs to print NOT to the default printer, but to a "special" printer which is selected in the application... let's call it a label printer to simplify the explanation.
    You have your default regular printer, easy for the application to find that one, and then you have a special printer that labels get printed onto. The application needs to know what printer is the label printer. So we allow the user to select that in the
    application and the selection is stored in a config file in 
    C:\ProgramData\mfgr\prog\setting files
    I don't have access to the application so I can't change how this works.  
    In the "regular" world, selecting the label printer driver to use should be per machine, NOT per user. When a new user logs into a machine, the physical printer doesn't go "poof" and a new printer suddenly appear. Same printer for all
    users.
    Yet in terminal services, the physical machine is "merged" with the virtual machine on the server. And there can be many users logged in at the same time. So each users real machine (and real printer) is injected into the "fake" terminal
    services machine. The name of the printers is made unique for each user. So the printers DO go "poof" and change names depending on the user logged into terminal services.
    So user "A" logs in and sets up the application to print to "LabelPrinterForUserA" (or whatever the name of the printer happens to be), that setting is stored in the ProgramData subfolder, and all is well. Later, user "B" logs
    in, and when they print, the application tries to print to "LabelPrinterForUserA" which doesn't exist for user B or is only accessible by user A. If user B re-configures, that breaks it for user A. 
    SOLUTION 1: The way that /should/ work (in my mind) is that you define one "generic" printer in Terminal Services... call it "Virtual Label printer" and when the user wants to print to it, the print job gets re-directed back to whatever
    physical printer is actually connected to their local workstation. There is a map of virtual printer to actual printer depending on the current user. The application is told once to print to "Virtual Label Printer" for all users.
    SOLUTION 2: Or... there should be some way to make the ProgramData sub folders separate per user. E.g. when user "A" tries to access:
    C:\ProgramData\mfgr\prog\setting files
    they actually get 
    C:\UserData\UserA\AppData\mfgr\prog\setting files
    and user "B" gets
    C:\UserData\UserB\AppData\mfgr\prog\setting files
    So the question I have is: Does either of those solutions exist hidden somewhere in the setup of terminal server? Or is there another way around this issue that I don't know?

    I don't really have a "for sure" answer to this, but because people here can't seem to deal with a question that hasn't been answered I'll provide the best answer I did receive from ServerFault.com user Nathan:
    I can feel your pain with using old software on terminal servers ...the solution I've come up with definitely won't scale as it requires some manual configuration, but I've gotten this method to work with our label printers (which require to be
    printed to an LPT port...yep, that old).
    Share your USB-connected printers to the network on each machine. Then, have the user log in on aunique session for each of them
    (a TS account cannot be shared among computers for this to work) and install a network printer pointing to the USB one they shared. Try to use a DNS name to account for possible DHCP movements.
    After, it should work. Each user can do this since display names can be identical as long as the ports are different (which they are).
    This was clarified by the following series of comments:
    I think you are on to something here, and I originally advised the admin to do this. The problem he ran into is that it setup the printer names in the TS as "printer on usersworkstation"
    and he could not rename it except to change the "printer" to whatever. E.g. the "on userworkstation" remained. I believe there is another way of installing the printer which avoids this, but I can't find it. Ages ago, one used to do NET
    USE LPT2 \\computer\printer password /USER:domain\user /PERSISTENT:YES and then tell the driver to print to LPT2 –  James
    Newton Mar
    17 at 16:21   
    @JamesNewton That's actually the exact method we used. The way around the "network printer" part is to install it as local printer and map it to a TCP/IP port that way. –  Nathan
    C Mar
    17 at 16:28
    You mean in the case where the printers are TCP/IP connected and not local USB / LPT to the users workstation? That makes sense. Wonder if this will work for USB connected printers... –  James
    NewtonMar
    17 at 16:35   
    @JamesNewton You'd share the local printer on the client's PC then on the server connect via TCP/IP to it. You'd need static addresses or use DNS names if DHCP, though. –  Nathan
    C Mar
    17 at 16:51
    Ah. Yes. I see. Looks like the LPT thing should work even with a USB connected printer:superuser.com/questions/182655/… –  James
    Newton Mar
    17 at 17:09   

  • How to open multiple sessions for one user?

    Sorry for the silly question but I couldn't find it googling or searching through this forum, so I started wondering whether it's possible in SQL Developer to open multiple sessions for one user. I'm fairly new to SQL Developer and databases in general.
    When I open SQL Developer and connect to a schema, a worksheet opens named MYSCHEMA. If I disconnect then connect, another worksheet opens, named MYSCHEMA~1. I assumed these were different sessions, but if I enter into one worksheet:
    select col1 from my_table where row_id = 1
    -- shows result is 1
    update my_table set col1 = 0 where row_id = 1
    select col1 from my_table where row_id = 1
    -- shows result is 0and then enter into the second worksheet:
    select col1 from my_table where row_id = 1
    -- shows result is 0I would have expected the second worksheet to report 1 because the first worksheet did not issue a COMMIT. Thus, I'd guess both worksheets are the same session? Is that right? If so, how do I have two sessions open simultaneously (opened by same user)?
    I'm trying to implement the code at the bottom of this post, for which testing requires at least two sessions:
    Re: Help with Procedure
    Edited by: tem on Apr 18, 2012 6:44 AM

    Thanks Jim,
    Ctrl-Shift-N doesn't do anything for me. I'm on a mac -- by experimenting it looks like command-N does what you're looking for. This appears to be the same as left-clicking on the "New" icon in the top left corner of SQL Developer, or selecting from the pull-down menu, File > New.
    This opens "Create a New" window that appears to be a wizard. What would I select at this point? Options are: Database Connection, Table, View, Package, ...
    I don't see an option for "Worksheet".
    UPDATE:
    OK, I found that if I select "SQL File", a worksheet becomes available. Perhaps this is what you intended. However, when I issue the command
    select col1 from my_table where row_id = 1;it still returns 0 instead of 1. Hmm, maybe my initial assumption was wrong -- if this is a second (e.g. different) session, should I expect the changes made in the first session in SQL Developer (the UPDATE command) WITHOUT a commit, to be observed in this second session? I thought that changes made in one session were not viewable in a different session until these changes are committed in the first session? If so, how to show this in SQL Developer? I must be missing something basic here.
    Or, is SQL Developer issuing some sort of "auto-commit" without my knowledge?
    Edited by: tem on Apr 18, 2012 8:00 AM

  • Combining output of 2 spools into one

    Hi guys,
    I have 2 program which are called by main program both are generating spools.
    I want to combine the outputs of both the spools into one file(eg pdf).
    Can anyone suggest how to do this if possible.
    Regards,
    Guru

    hi
    good
    If you create repeated spool requests in the same transaction, you can combine them into one spool request. For you to be able to do this, this option must be deactivated for the spool request to which you want to add the others.
    If you do not select this field, the spool system automatically adds additional spool requests that have the same attributes (user, title, output device, client from which the request was issued, number of copies, priority, cover sheet setting, archiving mode, and ABAP session number).
    For a spool request to be added to another, you must deactivate the New Spool Request option when creating the spool request.
    If you are combining requests, note the following rules:
    -         If the expiration dates of combined spool requests are not the same, the spool system uses the latest date for the entire spool request.
    -         To print out a "combined" spool request, set the Print immediately option on the last of the spool requests that is to be added. The spool system adds the last spool request and then sends the entire "combined" spool request to the output device.
    If the following situations exist, you cannot add any additional requests:
    -         A request is "completed" and cannot have additional jobs added to it when it has been sent to the host spooler for printing.
    -         No other spool requests can be added to a spool request you generated with the Print immediately option set or that you sent to the printer from the output controller.
    For more information, see Adding Spool Requests to Another Spool Request.
    ·        Delete After Printing if No Errors: If this field is selected, the spool request, output request, and output data are deleted automatically after the request has been successfully printed.
    The spool system retains spool requests that contain errors. You need to delete requests of this type manually. Otherwise, they are automatically deleted during a reorganization of the spool database after the expiration date.
    The delete option is set in a user's master record and can be changed:
    -       When a spool request is created
    -       In the request attributes () for the spool request
    thanks
    mrutyun^

  • Can I merge several different Verizon plans (different family members each have own plans) into one plan (i.e. can I take over all their lines), if all lines on all plans are on Edge?

    I was originally told by Verizon that if I joined, I can eventually take over the lines of various family members.  Now that I've joined, and my family members all upgraded their phones and are on Edge, Verizon is telling us that we can't merge into one plan (because Edge lines can't be transferred to another account).
    Is this true, and, if so, what is my recourse since I was lied to.

    Well, yes and no (as far as being lied to).  I asked on several occasions (I have the chat transcripts to prove it) if there would be any issue if the lines were all already on Edge, and was told each time that under no circumstances would there be any issue.  The latest being today (I know it's after the fact, but I wanted proof that this is what the chat people are saying).  I asked "I have currently have an account with 3 phones on Edge.  My brother and his wife, and my parents, also have plans all on Edge.  I would like to 'take over' their lines.  I want to make sure there is no issue with the Edge plan and that I can simply 'take over' their lines with no problems."  I was told "Yes. That would be correct."  Again, this is what I was told in the past as well (my original post didn't make clear the timing of the chats and upgrades to Edge..).  Every time I chatted I mentioned that the accounts were going to be on Edge or (later on) were already on Edge.  Even before my family members upgraded to Edge, not one single chat or phone representative (and my brother asked the same thing in a store) mentioned NOT to upgrade to Edge because it couldn't be transferred.  Everyone just said yep, no problem.  The ONLY reason I even joined Verizon (I was on Straight Talk) was because of the More Everything and Edge plans (we wanted a family plan with 6 people and over 10GB so we'd each save $25/line).  Otherwise I never would have joined Verizon and my family wouldn't have upgraded either.

  • I have photos I want to group together in one album, but can't do this because some may have the same number. How can I combine them all into one album?

    I have photos I want to group together in one album, but can't do this because some may have the same number. How can I combine them all into one album? I was trying to move several albums onto a USB drive and it stated all other files exist at this location.  They are pictures taken at different times and have the same number I guess.

    In iPhoto albums may contain photos with the same file name - iPhoto handles that just fine
    If you are exporting them to move somewhere else use the sequential file name feature of export to give each file a unique name
    LN

  • I have three different ipods with music on them and have had to replace our computer as it was in a fire. How can we combine the ipods into one ipod.

    We had to replace our computer due to a fire and lost many of the fiels which were on them. Many were music files for the ipods, we have thre. Also, do not have ID's and passwords to the iTunes store.
    How can we combine the information so that they are all in each one or at least compbine everything into one ipod?

    Just so you know the method suggested by Nelsonleee will cost your $29.95 USD, Yamipod is free.

  • A music album is listed multiple times in my library but each listing only has a few songs in it-not the full listing.  How can I combine them into one album and get rid of other duplicate listings?

    Several music albums listed in my IPhone 5 music library are listed multiple times, but each one only has a portion of the songs listed.  How can I combine them to make one album?

    First....Thank you so much for your prompt reply.  I am sorry for not getting back to you regarding your suggestion-I had computer issues that just got resolved.  Also, this is my first foray into online chat rooms so I have a lot to learn to precisely state my issue!  I did as you suggested and all the songs list the same album when I go into each song's "get info".  However, I am not sure how to edit as you suggested. When I downloaded this album originally, for some reason it broke up into several albums each with different songs from the original album.  I am trying to consolidate them back into one album in my library.  I would greatly appreciate further assistance if you can.  Also, I do not use "the cloud" to store any data and would like a good source of info on how to do this.  Thanks so much for your patience!
    SueZoo

  • Trying to drag pdf files i have and combine them into one pdf file in the account i just purchased with Adobe. when i drag a pdf file over Adobe doesn't accept it. says it can not convert this type of file. but it is an Adobe file. Do I need to change it?

    Trying to drag pdf files i have and combine them into one pdf file in the account i just purchased with Adobe. when i drag a pdf file over Adobe doesn't accept it. says it can not convert this type of file. but it is an Adobe file. Do I need to change it in some other form befor dragging it?

    Hello djensen1x,
    Could you please let me know what version of Acrobat are you using.
    Also, tell me your workflow of combining those PDF files?
    Please share the screenshot of the error message that you get.
    Hope to get your response.
    Regards,
    Anubha

  • I have several pics of my new grandson throughout the year.  How do I combine them into one event

    I have several pics of my new grandson throughout the year.  How do I combine them into one event

    You can drag and drop photos from one Event to another. Or you can flag them and use the Events: Add Flagged photos to Select Event.
    However, why not use an Album for the job?

  • I have two different itunes music files on my computer.  How do I combine them into one file?

    I have two different itunes music files on my computer.  How do I combine them into one file?

    I don't think so. The only other ID I have is a developer id, and I didn't get that until several months after I got the phone. In addition purchases I made from the App Store onthe phone would sync up with It unes on the Mac meaning it would be the same id.
    However I looked at the AppStore on my phone while it was connected to the Mac with iTunes open, and now the balance has changed to the same as the others.

  • I have iTune accounts under two separate Apple IDs.  Can I merge them into one account under one ID?

    I have iTune accounts under two separate Apple IDs.  Can I merge them into one account under one ID?  I have purchased music and video in both.

    No, it is not possible to merge accounts.  Choose one as the primary account and keep a local backup of all purchases so you don't get into the mess where you encounter a 90 day freeze on re-downloading past purchases from multiple accounts.

  • I have two apple Id accounts how do I merge them into one account

    I have two apple Id accounts how do I merge them into one account

    you can't merge Apple ID's
    From the FAQ: http://support.apple.com/kb/HT5622
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.

  • I have two iTunes account I would like to combine them into one

    How do I combine two email address accounts into one account on iTunes

    I have the same problem Mark, it's a pain you can't. I thought there must be a way but I guess not.

  • I have 3 itunes accounts.  How can I merge them into one?

    I have 3 itunes accounts.  How can I merge them into one?

    Sorry, but the only answer is that you can't.

Maybe you are looking for