Easy Question, online store Qty purchase

I need a bit of help, and I'm not quite proficient in CF
really.
I have built a registration system in CF, which has three
steps (pages). On the last step, you can choose to return to Step 1
and register another person, OR you can choose to Pay Now.
I wanted to use session variable or cookies (I'm not really
certain of the difference) to have the system count silently the
number of times a visitor has gone through, and then when they do
hit "Pay Now", to multiply the variable count X the cost per
ticket.
This is what I have been doing:
on
Step 1, I define the variable session.Quantity with:
<cfif (NOT isDefined("session.Quantity ")) >
<cfset session.Quantity = "0" />
</cfif>
On
Step 2, we gather final registration info, and right after
the Insert statement, I increase the value of the session.Quantity
with:
<cfset session.Quantity =#session.Quantity #+1>
On
Step 3, I give them the option to Pay Now (which takes the
session.Quantity and successfully produces the cost) using:
<cfoutput> <cfset TotalCost = #session.quantity# *
75></cfoutput> (and then send them to payment and kill
session variable)
OR, I give them the chance to return to step 1 and go
through again.
NOW, this has been working just fine during my testing,
UNLESS you close down the browser mid stream (and happen to have
another one open in the background), which means that you didn't
pay and the session variable didn't get deleted.
THEN, when you return to the Step 1 again (20min) later,
because you want to do the registration over again, after your
first registration pass, you are already on session.Quantity = 4
(example).
OK, so I am a bit green, and I don't know much about the
application.cfm process (mine is below) or CFLOCK usage, but I
think this is part of my issue. I've read so much, and am now so
confused. Can someone give some clear advice and example that I
could work through, pertinent to this problem.
My cfapplication.cfm file:
<cfapplication name="Application1"
sessionmanagement="Yes"
sessiontimeout="#CreateTimeSpan(0,0,30,0)#"
applicationtimeout="#CreateTimeSpan(0,0,30,0)#"
>
<cfif StructKeyExists(session, "cfid") AND (NOT
StructKeyExists(cookie, "cfid") OR NOT StructKeyExists(cookie,
"cftoken"))>
<cfcookie name="cfid" value="#session.cfid#" />
<cfcookie name="cftoken" value="#session.cftoken#" />
</cfif>
Thanks to the SMART people out there,
Stephen
Tallahassee, FL

maybe you should start by reading the answers to your
previous post...
Azadi Saryev
Sabai-dee.com
Vientiane, Laos
http://www.sabai-dee.com

Similar Messages

  • When i try to purchase the apple developer program it says "please proceed to your countries apple online store to purchase" but there is a circle saying US but how do i proceed to the malaysian store?

    when i try to purchase the apple developer program it says "please proceed to your countries apple online store to purchase" but there is a circle saying US but how do i proceed to the malaysian store

    JUst experienced the exact  same problem after changing password.Getting same message. Hope someone has an answer for this.

  • Ordered phone online, can I purchase in store before canceling order?

    Hi Everyone,
    I purchased a Verizon phone online (add-a-line to a family plan) from a 3rd party retailer and asked to port my number from a different carrier. I haven't received any communication from them about the order yet and it's been a few days and I'm getting uneasy reviews about them and their service.
    My question is, can I go into a store and purchase a phone and port my number over and then cancel the online order when I can contact them or when I receive the online phone? Or do I need to first cancel the order before I can purchase in store and port my number?
    thanks.

    If you go into your online order, there is an option to return it.  Instructions are provided.

  • Purchasing from the US Online Store

    Can i buy something from the US Online Store for a friend living in the US using my (foreign) cypriot visa card and have the item shipped to his US adrress?

    Unfortunately no, that cannot be done.
    You can only make purchases in the store for the country where you live and to do so you must have a bank card in that same country with a verufyable billing address for the card in that same country.
    There are no provisions currently for doing these purchases across international boundaries.
    UPDATE -
    In rereading your question I may have misunderstood you. I gave an answer for the iTunes/Mac App Stores, but now believe that you were actually asking about the Apple store at store.apple.com. I don't have experience with that, but I believe that it is basically the same. I don't believe that the US store will accept your Cypriot bank card (with your Cypriot billing address) as a form of payment.
    Give it a try, the most that can happen is that the system rejects your bank card.

  • Purchasing from Nokia online store

    Hi.
    I am considering purchasing the Nokia 7390 from the online store, but had a couple of queries.
    Firstly, will the phone be unlocked to any network? Sorry if this seems a stupid question, but I just wanted to make sure.
    And secondly, I am currently on the o2 network. If I purchase a phone from the nokia online store, will I be able to still access my o2 internet service? Or will I need to put some o2 software or something on the phone first?
    Thanks for your help.
    Kind regards,
    Rahul.

    Yes to both questions. You will be able to use the phone with any network. But you will need to get various settings from whichever operator you are using. In O2's case, there is a "get settings" option on the SIM card, or you may even be prompted automatically.
    Chris
    6230i (the last bug-free Nokia?)
    Vodafone UK contract since 1992

  • How do I use the apple gift cards in passbook for a purchase in the apple online store.

    How do I use the apple gift cards in passbook for a purchase in the apple online store.

    Hi Ron2002,
    Click this link and redeem your Apple Store Gift Card:
    http://store.apple.com/us/browse/home/giftcards/redeem
    Be sure to sign to your Apple ID.
    Cheers!

  • IPod Classic 160GB film library sync problem -  trying to sync films that have converted from purchased DVD to mp4 format locally, not purchases from the online store - all other libraries sync perfect - why?

    Hello Apple and the iTunes Windows PC users community.
    I am trying to sync films that I have converted from purchased DVD to mp4 format locally, not purchases from the online store. The mp4s all appear and play successfully in my iTunes application but will not sync across to the iPod film library folder.
    For your information: I am using iTunes 11.1.3.8 on a Windows 7 64bit machine with 500GB hard disk and 8GB of Ram in the UK.
    I have restored the iPod classic 160GB three times now to see if it was a hardware problem with no joy. Each time all the music restores properly as do the podcasts and all the items in TV programmes all appear to sync and work fine.
    I have also tried to copy films into the TV Programmes to get around it with no joy. They always go to the films section to start with. It is just the Films library that does not sync - all others work perfectly. As a last resort I have uninstalled and re-installed iTunes with no joy either.
    I am technically savvy and have gone through the itunes and ipod settings but nothing appears to make a difference - This is the first time I have had to post here as I can usually solve the majority of the ipod anomilies but this one has me flummoxed.
    Has the film encoding type changed in the newest itunes update? - Has this happened to anybody else and is it a hardware, software, or operating system problem.

    Having uninstalled the current version 11.1.3.8 and loaded and older version of iTunes 10.7.0.21 I can now categorically confirm that the newest update seems to be causing the problem as the films and TV Programmes are syncing perfectly on this older version.
    If you are going to do this please dont forget to remove the  ' iTunes Library.itl' file as this stops the older versions from running as I've just found out

  • Hello guys. I'm on the fence of buying a new Haswell MacBook Pro Retina. I'm a student so i plan to get it with the student's discount. I want to ask you guys whether is it possible to use debit card to purchase anything from apple online store?

    Hello guys. I'm on the fence of buying a new Haswell MacBook Pro Retina. I'm a student so i plan to get it with the student's discount. I want to ask you guys whether is it possible to use debit card to purchase anything from apple online store? Im using CIMBclicks debit card. Thank you.

    Call the online store and ask them!  We are just users like yourself.  Besides, you will get a much faster answer directly from the horses mouth and it will be correct!

  • I have purchased a new iPhone on the online store, but how come Apple can send me an repacking old device (with scar on both the border and the cable port)!!!!  And after I phone to their hotline for the issue, they asking to give me hk$400 cash coupons??

    I have purchased a new iPhone on the online store, but how come Apple can send me a repacking old device (with scar on both the border and the cable port)!!!!
    And after I phone to their hotline for the issue, they asking to give me hk$400 cash coupons???? This action make me very angry. I have pay for my goods, but they are giving me some repacking rubbish, and trying to treat me as a beggar????
    I have make the request to give me back a new device in good conditions, I will wait and look for what they will delivery.

    Do you feel better now that you have vented?
    This is a user to user forum... if you want/need assistance, contact Apple directly.

  • Are the prices shown on Apple online stores the price actually paid or are these prices subject to extra local taxes..VAT or purchase tax etc

    Are the prices shown on Apple online stores the price actually paid or are these prices subject to extra local taxes..VAT or purchase tax etc

    Paul_31 wrote:
    I think it varies. In the UK and France, for example, where I have purchased from the online store the prices included relevant taxes. I believe that in the USofA and perhaps some other countries that the price shown is net of tax because the tax rate varies from state to state.
    You can always go through the process of preparing an order at the Mac Online Store for your country and it should show the price together with any taxes. You don't, of course, actually have to place the order .
    I'm sure someone will correct me if I'm wrong about the USA online store.
    Correct Paul - in the USA, each State sets its own sales tax, so the tax is only calculated during checkout once you've entered shipping/billing information.  Even within some states, some cities have their own sales tax rate (eg. New York State is 4% but New York City is 8.875%).

  • Guam --(United States Terretories) Not able to purchase digital copy from online store?

    Guam<--(United States Terretories) Not able to purchase digital copy from online store? Why?  especially developers program. is their anyway to get service directly from Main Land rather than going to other countries' or 3rd party resellers' to get products?

    This is a user to user forum, sorry we would have no idea. I'd suggest you contact Apple directly. The number for customer relations in the US  is 800-767-2775, I have no idea that number will work in Guam or not.

  • Hello, I live in Russia and would like to purchase I-phone through the online store E-bay from a private individual. As in this case, the guarantee?

    Hello, I live in Russia and would like to purchase I-phone through the online store E-bay from a private individual. As in this case, the guarantee?

    Again, the iPhone warranty is NOT international. And, if I may offer unsolicited advice, buying from ebay is always risky. Most sellers are less then honest when it comes to iPhones. They might state that the iPhone is unlocked when it is not; it might not be really unlocked or might be hacked/jailbroken.
    My advice to you is to buy in the country you intend to use the phone and buy it from a legitimate source such as Apple or an authorized reseller.

  • Disappointment on my last purchase on the Online Store

    Dear Apple team,
    First, I would prefer sending email to express my disappointment rather than posting here but I couldn't find a link to do that, And I know that's a number to call for support but I didn't do so. The reason will be explained in the following story.
    Here's the story, I have make my orders on an iPhone 6 Plus 64GB at HKD7188 on 13Jan. At the time of purchase, my credit card acount has been held the exact amount of limit which is normal and nothing wrong based on my previous experience buying online. I received a shippment notification email afterwards and being told that my product should be delivered on 26 Jan.
    On that day I did not receive my shippment, instead, I received a call from Apple saying that they experience problem charging my credit card account  and the shippment was held at the DHL office in Hong Kong. I contacted my bank to see if there's any problem.
    It turned out my credit limit hadn't been released by Apple and they charged me again on the day of shippment.
    So, I confirmed with Apple team calling their support line 800 908 988 using Cantonese line. However, I have waited for 15mins and tried twice (total 30mins) and I can't get to the customer service team.
    I decided to use English line instead and I can immediately speak to one with strange accent. I admit that my English is not that good, but thanks god, we were able to communicate. However, the problem wasn't solved as I received the same call from Apple saying that they can't charge me.
    I contacted back and forth a few times and all I received was - "Sir, Do you have another card? Or can you contact your bank to expand the limit? If not, your product may come after 1 month (waiting for de-frozen the held limit and there may be charge from DHL for holding the product for so long)"
    So I express my confusion to them, Should I have double the available limit in order to purchase one single iPhone? This is non-sense to me.
    How the story ends?
    I made compromise because I don't want to wait for a month to get that. I still can't believe I need HKD14376 available limit to get that HKD7188 iPhone. And RIGHT NOW, my credit hasn't been released and this posed a great threat on my financial planning (I was planning to get a new Mac in the coming month but I seriously don't know if that happens again) !!!!
    The Apple team still didin't fix this. I do require them to complement this including an official apology but they just called and said "SIR, your shippment will be deliver today" AND that's it!?
    It should be
    - deliver three days ago
    - my credit card account limit won't be held
    - I wouldn't have written this
    This is really a bad experience with the Online store which I never have experienced with the previous purchase.
    Here's my conclusion
    1. Don't hold the limit and charge without releasing it. Thar's non-sense!
    2. Can I email to Apple Support? Calling them with Cantonese just can't get the man/madam but English with strange accent I can't hear clearly
    3, I am really satisfied with all the Apple prodcuts I owned but the suppport team can do way better than that
    This is a Long Story but I hope Apple could treat it seriously. Thanks
    Regards,
    Michael

    Thanks Templeton Peck For the reply.
    Do you have any idea that I could let apple know all this. I seldom contact apple or require support. Thanks.

  • I had purchased iphone 6 from the online store and i had peid the full amount by using my cc , i had noticed now that the order get cancelled as its out of quantity , could you please assist me to refund my money back to my cc !!  my order number W24

    i had purchased iphone 6 from the online store and i had peid the full amount by using my cc , i had noticed now that the order get cancelled as its out of quantity , could you please assist me to refund my money back to my cc !!

    I am going through the same process! It is a nightmare doing anything with adobe. They make it as difficult as possible to get a refund and keep asking me if i want anothe program instead of a refund. They are making me jump through all kinds of hoops to get the refund and refuse to call me. They have ZERO customer service and the only reason they stay in business is because they have no real competitors. It's a shame, but I suggest you reprot them to the Better Business Bureau. I did.

  • Satellite C640-i4010 - warranty for purchase from online store

    Hi there,
    I had to purchase a laptop Satellite C640-i4010 from flipkart.com.
    Site states that 1 year carry-in warranty will be provided.
    Then i talked to toshiba customer care but the executive told me that toshiba has not authorised any online reseller.
    Flipkart .com personels every time say that they have agrement with toshiba but that is confidential and i have believe their verbal assurance.
    I am confused now. No one is able to solve my dillema.
    Please help

    Hi
    This is user to user forum so I doubt that someone here can provide any other details to you about this online store
    But fact is that you can purchase a additional warranty directly from Toshiba and i would recommend doing that.
    All information can be found on different Toshiba warranty pages (this depends on your home area).
    If you are from USA then I recommend checking the Toshiba US warranty page:
    http://www.csd.toshiba.com/cgi-bin/tais/support/jsp/home.jsp
    If you are from Europe I recommend checking Toshiba European warranty page:
    http://eu.computers.toshiba-europe.com -> Peripherals & Services
    If you are from Asia check Toshiba Asian page:
    http://pc.toshiba-asia.com
    Here is also a Toshiba india page:
    https://www.toshiba-india.com/
    Greets

Maybe you are looking for