Submit Your Article Forum Rules

Results 1 to 3 of 3

Thread: "acceptance of terms" button before proceeding..

  1. #1
    Senior Member
    Join Date
    May 2004
    Posts
    199

    "acceptance of terms" button before proceeding..

    I have a client with an online store looking to implement an additional function.

    They desire to have something in place that requires the customer to check/click
    a box/button that signals that they, the customer, 'ACCEPTED' the terms of sale.
    (it needs to be accepted only before the addition of the first item to the cart)

    The shopping cart and checkout are handled by a third party on a
    separate server and are not customizable so the mod must be done at the store level.

    The items are POST'ed to this shopping cart via FORMs.
    Each item is assigned to a form with a unique name, so there may be
    15 or 20 "forms" on a page.

    I am thinking something along the lines of a javascript to inhibit the
    submission of the form until the acceptance value is 'true'.

    Once 'true'.. a cookie/session could be set so as to suppress the javascript for
    all subsequent additions to the cart (during that visit).

    Does that make sense?

    Any ideas or methodologies would be helpful.

  2. #2
    WebProWorld MVP DaveSawers's Avatar
    Join Date
    Dec 2006
    Location
    Lunenburg, Nova Scotia, Canada
    Posts
    760

    Re: "acceptance of terms" button before proceeding..

    You can certainly do that with JavaScript. Best way is to disable the form submit button until the user has accepted the terms. And you can certainly remember the setting in a cookie.

    But what about those users who have Javascript disabled and/or won't accept cookies? For those users, it's better to keep some data in database tables on your server and use them to determine which user has added items to their cart, whether they've accepted the terms, etc. This also allows you to track users who didn't complete the checkout for some reason.
    Dynamic Software Development
    www.activeminds.ca

  3. #3
    Senior Member
    Join Date
    Sep 2006
    Posts
    365

    Re: "acceptance of terms" button before proceeding..

    Everybody always asks "what about those people who are so paranoid or in the dark ages?"

    It is good to see a lot of websites now saying "You MUST accept cookies and have Javascript enabled to use this site".

    Just like saying "No shirt, no shoes, no service".

Similar Threads

  1. AJAX and the "Back" button in IE
    By minorgod in forum Web Programming Discussion Forum
    Replies: 7
    Last Post: 11-14-2009, 12:07 AM
  2. Try this "I'm Feeling lucky button!" so funny :)
    By jhlim in forum Google Discussion Forum
    Replies: 5
    Last Post: 11-09-2004, 04:28 PM
  3. Obscure "Links" Button
    By ldylion214 in forum Search Engine Optimization Forum
    Replies: 2
    Last Post: 07-02-2004, 07:49 PM
  4. how do you disable "view source" button?
    By apsadmin in forum Graphics & Design Discussion Forum
    Replies: 15
    Last Post: 06-05-2004, 07:35 PM
  5. "Close This Window" Button in Flash
    By clambam in forum Flash Discussion Forum
    Replies: 1
    Last Post: 11-18-2003, 02:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •