Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 34
  1. #21
    Join Date
    Apr 2007
    Posts
    117
    Plugin Contributions
    1

    Default Re: Adding additonal confirmation box 2 chkout

    That wouldn't work either. I have been working on this problem for several days now and most of today. My mind is fogging over.

  2. #22
    Join Date
    Apr 2007
    Posts
    117
    Plugin Contributions
    1

    Default Re: Adding additonal confirmation box 2 chkout

    Quote Originally Posted by kobra View Post
    Without my stepping through each step of this i used the developers tool kit and searched for "NOT_ACCEPTED"

    the following is from source of one of my sites:
    Code:
    <fieldset>
    <legend><span class="termsconditions">Terms and Conditions</span></legend>
    <div><span class="termsdescription">Please acknowledge the terms and conditions bound to this order by ticking the following box. The terms and conditions can be read <a href="http://www.mysite.com/index.php?main_page=conditions"><span class="pseudolink">here</span></a>.</div>
    <input type="checkbox" name="conditions" value="1" id="conditions" /><label class="checkboxLabel" for="conditions"><span class="termsiagree">I have read and agreed to the terms and conditions bound to this order.</span></label>
    </fieldset>
    and the code for validation is in /includes/modules/pages/checkout_confirmation/header_php.php and is as follows:
    Code:
    if (DISPLAY_CONDITIONS_ON_CHECKOUT == 'true') {
      if (!isset($_POST['conditions']) || ($_POST['conditions'] != '1')) {
        $messageStack->add_session('checkout_payment', ERROR_CONDITIONS_NOT_ACCEPTED, 'error');  }
    Now you need to replicate at least this for each of your new check boxes and of course change the if to the new box defines.
    The initial "if" refers to a condition set in the admin and this is another whole bag of code and if all other things are covered you might just omit these for your added boxes
    Code:
    if (DISPLAY_RETURNS_ON_CHECKOUT == 'true') { and
    if (DISPLAY_CCBILLING_ON_CHECKOUT == 'true') {
    I assumed that you have defined a class for each of the added boxes but your source does not indicate that you have and this should be in the tpl_ file for this and you can also add a clear both between statements there.
    This should get you closer
    Each of the class= are the same

    class="termsiagree'

    So I guess I didn't?
    Last edited by A-1 Electronics; 22 Jul 2007 at 05:16 AM.

  3. #23
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Adding additonal confirmation box 2 chkout

    Where do you set:
    DISPLAY_RETURNS_ON_CHECKOUT
    DISPLAY_CCBILLING_ON_CHECKOUT

    to be true?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #24
    Join Date
    Apr 2007
    Posts
    117
    Plugin Contributions
    1

    Default Re: Adding additonal confirmation box 2 chkout

    If I was to have to guess...I would think probably somewhere on the admin side. Simular to having to set admin-config-regulations-Confirm Terms and Conditions During Checkout Procedure. But I haven't figured out how to add the new regulations...yet.

  5. #25
    Join Date
    Apr 2007
    Posts
    117
    Plugin Contributions
    1

    Default Re: Adding additonal confirmation box 2 chkout

    I have asked a simular question before when I asked about trying to make sure the individual is at least 18.

    Old code for Age Reqirement in create_account.php

    if (ACCOUNT_DOB == 'true') {
    if (ENTRY_DOB_MIN_LENGTH > 0 or !empty($_POST['dob'])) {
    if (substr_count($dob,'/') > 2 || checkdate((int)substr(zen_date_raw($dob), 4, 2), (int)substr(zen_date_raw($dob), 6, 2), (int)substr(zen_date_raw($dob), 0, 4)) == false) {
    $error = true;
    $messageStack->add('create_account', ENTRY_DATE_OF_BIRTH_ERROR);
    }
    }
    }


    New code

    if (ACCOUNT_DOB == 'true') {
    if (ENTRY_DOB_MIN_LENGTH > 0 or !empty($_POST['dob'])) {
    if (substr_count($dob,'/') > 2 || checkdate((int)substr(zen_date_raw($dob), 4, 2), (int)substr(zen_date_raw($dob), 6, 2), (int)substr(zen_date_raw($dob), 0, 4)) == false) {
    $error = true;
    $messageStack->add('create_account',

    ENTRY_DATE_OF_BIRTH_ERROR);
    }
    $minimum_age = 18;
    $acceptable_dob = (date('Y') - $minimum_age) . date('md');
    if (zen_date_raw($dob) > $acceptable_dob) {
    $error = true;
    $messageStack->add('create_account', ENTRY_DATE_OF_BIRTH_UNDERAGE);
    }
    }
    }



    Is this simular to what I would need to do with
    if (DISPLAY_RETURNS_ON_CHECKOUT == 'true') {
    if (!isset($_POST['returns']) || ($_POST['returns'] != '1')) {
    $messageStack->add_session('checkout_payment', ERROR_RETURNS_NOT_ACCEPTED, 'error');
    }
    }


    and

    if (DISPLAY_CCBILLING_ON_CHECKOUT =='true') {
    if (!isset($_POST['ccbilling']) || ($_POST['ccbilling'] != '1')) {
    $messageStack->add_session('checkout_payment', ERROR_CCBILLING_NOT_ACCEPTED, 'error');
    }
    }
    Last edited by A-1 Electronics; 22 Jul 2007 at 04:00 PM.

  6. #26
    Join Date
    Apr 2007
    Posts
    117
    Plugin Contributions
    1

    Default Re: Adding additonal confirmation box 2 chkout

    I know I am confusing myself. I have found other threds that refer to jscript files and a few others. But nothing that seems to be helping. The checkboxes are in place and worded correctly. As I have stated before, this is a requirement from my merchant processor before they will approve my account. Even a little clue as to where I need to validate the checkbox would be great. I tried looking for where the box for _CONDITIONS_ is confirmed by doing a search in the developers tool kit. That didn't turn up anything. I'll try some more searches.

  7. #27
    Join Date
    Apr 2007
    Posts
    117
    Plugin Contributions
    1

    Default Re: Adding additonal confirmation box 2 chkout

    I am thinking it has to be in a jscript file somewhere.

  8. #28
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Adding additonal confirmation box 2 chkout

    Add this:
    define('DISPLAY_CONDITIONS_ON_CHECKOUT', 'true');

    Right above where you have:
    PHP Code:
    if (DISPLAY_CONDITIONS_ON_CHECKOUT == 'true') {
      if (!isset(
    $_POST['conditions']) || ($_POST['conditions'] != '1')) {
        
    $messageStack->add_session('checkout_payment'ERROR_CONDITIONS_NOT_ACCEPTED'error');
      }

    Does it start to work?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #29
    Join Date
    Apr 2007
    Posts
    117
    Plugin Contributions
    1

    Default Re: Adding additonal confirmation box 2 chkout

    Nope. That didn't work. I am still getting the same results. I can select the box for confirming the terms and conditions and not the other two boxes. And it will still allow me to continue. If I do not select the terms box I receive the error.

    P.S.
    Thank you for all your help. Please excuse my frustrations. I am truely tring to understand.

  10. #30
    Join Date
    Apr 2007
    Posts
    117
    Plugin Contributions
    1

    Default Re: Adding additonal confirmation box 2 chkout

    I have moded 3 files in order to get this far. The one thing I haven't been able to figure out or locate in any file is how zc checks that the customer has placed a checkmark in the box argeeing to the terms. In the admin - config - regs there is a way to turn this on and off. How indepth would it be add additional regulations to the admin panel?

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Additonal Images Basenames
    By monkeyjr47906 in forum General Questions
    Replies: 2
    Last Post: 3 Feb 2011, 01:10 AM
  2. Additonal Image Uploader?
    By joyjoy in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 22 Oct 2010, 08:34 PM
  3. Create additonal category side box
    By mthem2003 in forum Basic Configuration
    Replies: 1
    Last Post: 5 Jun 2008, 12:57 AM
  4. Adding another box exactly like Categories box? Thanks for help!
    By marshall in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 8 Jun 2007, 09:41 PM
  5. Adding a link to right hand box and adding pages....Please help
    By Ivum in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Mar 2007, 11:45 AM

Posting Permissions

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