Results 1 to 10 of 34

Hybrid View

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

    Default Re: Adding additonal confirmation box 2 chkout

    Here is the code from checkout_payment.php. I have altered the wording to include everything that the processor wanted in hopes that this will be sufficiant. If it is not, I will still need to add the additional check boxes.

    define('TEXT_CONDITIONS_DESCRIPTION', '<span class="termsdescription">Please acknowledge the Conditions of Use and Returns policies bound to this order by ticking the following box. You can view each of these policies by clicking <a href="' . zen_href_link(FILENAME_CONDITIONS, '', 'SSL') . '"><span class="pseudolink">Conditions of Use</span></a> and <a href="' . zen_href_link(FILENAME_RETURNS, '', 'SSL') . '"><span class="pseudolink">Returns</span></a>. You must also confirm that you understand that for your privacy, your credit card will be billed as A-1 Electronics.');
    define('TEXT_CONDITIONS_CONFIRM', '<span class="termsiagree">I have read and agreed to the Conditions of Use and to the Returns Policy bound to this order. I am also stating that I understand that my credit card will be billed as A-1 Electronics.</span>');

    I don't think I have made any other mods to this file. The code begins around line 32.

    As far as validation routines.....HUH? I tried copying the last 'define' section for each addtional box that I wanted to add and change the wording. As you probablly already know, this doen't work.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Adding additonal confirmation box 2 chkout

    Have you defined these variables or are these the default defines?

    Code:
    TEXT_CONDITIONS_DESCRIPTION'
    (FILENAME_CONDITIONS, '', 'SSL'   
    FILENAME_RETURNS, '', 'SSL'
    TEXT_CONDITIONS_CONFIRM'
    As far as validation routines.....HUH?
    How do you determine that the check box has been checked?

  3. #3
    Join Date
    Apr 2007
    Posts
    117
    Plugin Contributions
    1

    Default Re: Adding additonal confirmation box 2 chkout

    The only thing I did was change the original text. I tried duplicating what I thought was the check box code but that did not work. I have not added any additional code or made any other changes.

    So to answer your questions, no I have not defined anything and I do not know how to verify that the box has been checked.

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Adding additonal confirmation box 2 chkout

    Well ad I thought....using the current code looks at the default check box...

    You will need to define another and add function, names, and defines for what ever you call this added one and do a similar check for the box condition but as another check on your name for this one.

    Check the files linked for this in create account for a place to start

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

    Default Re: Adding additonal confirmation box 2 chkout

    Ok. That did not help. I take that back. It did help me get to thinking. I did a search in the developers tool kit and found two files that this section was link to. Checkout_payment.php and tpl_checkout_payment.php. I duplicated the code in tpl_checkout_payment.php and in checkout_payment.php and made some changes. It worked...sort of. But now it will let you complete the transaction without checking any of the boxes. Before, if you did not check the box you could not continue.

    Original code for /includes/templates/template_default/templates/tpl_checkout_payment_default.php

    <fieldset>
    <legend><?php echo TABLE_HEADING_CONDITIONS; ?></legend>
    <div><?php echo TEXT_CONDITIONS_DESCRIPTION;?></div>
    <?php echo zen_draw_checkbox_field('conditions', '1', false, 'id="conditions"');?>
    <label class="checkboxLabel" for="conditions"><?php echo TEXT_CONDITIONS_CONFIRM; ?></label>
    </fieldset>


    New code for /includes/templates/template_default/templates/tpl_checkout_payment_default.php

    <fieldset>
    <legend><?php echo TABLE_HEADING_CONDITIONS; ?></legend>
    <div><?php echo TEXT_CONDITIONS_DESCRIPTION;?></div>
    <?php echo zen_draw_checkbox_field('conditions', '1', false, 'id="conditions"');?>
    <label class="checkboxLabel" for="conditions"><?php echo TEXT_CONDITIONS_CONFIRM; ?></label>
    <?php echo zen_draw_checkbox_field('returns', '1', false, 'id="returns"');?>
    <label class="checkboxLabel" for="returns"><?php echo TEXT_RETURNS_CONFIRM; ?></label>
    <?php echo zen_draw_checkbox_field('ccbilling', '1', false, 'id="ccbilling"');?>
    <label class="checkboxLabel" for="conditions"><?php echo TEXT_CCBILLING_CONFIRM; ?></label>
    </fieldset>


    Original code for /includes/languages/english/custom/checkout_payment.php

    define('TABLE_HEADING_CONDITIONS', '<span class="termsconditions">Conditions of Use, Returns Policy, and Billing</span>');
    define('TEXT_CONDITIONS_DESCRIPTION', '<span class="termsdescription">Please acknowledge the Conditions of Use and Returns policies bound to this order by ticking the following box. You can view each of these policies by clicking <a href="' . zen_href_link(FILENAME_CONDITIONS, '', 'SSL') . '"><span class="pseudolink">Conditions of Use</span></a> and <a href="' . zen_href_link(FILENAME_RETURNS, '', 'SSL') . '"><span class="pseudolink">Returns</span></a>. You must also confirm that you understand that for your privacy, your credit card will be billed as A-1 Electronics.');
    define('TEXT_CONDITIONS_CONFIRM', '<span class="termsiagree">I have read and agreed to the Conditions of Use and to the Returns Policy bound to this order. I am also stating that I understand that my credit card will be billed as A-1 Electronics.</span>');


    New code for /includes/languages/english/custom/checkout_payment.php

    define('TABLE_HEADING_CONDITIONS', '<span class="termsconditions">Conditions of Use, Returns Policy, and Billing</span>');
    define('TEXT_CONDITIONS_DESCRIPTION', '<span class="termsdescription">Please acknowledge the Conditions of Use and Returns policies bound to this order by ticking the following box. You can view each of these policies by clicking <a href="' . zen_href_link(FILENAME_CONDITIONS, '', 'SSL') . '"><span class="pseudolink">Conditions of Use</span></a> and <a href="' . zen_href_link(FILENAME_RETURNS, '', 'SSL') . '"><span class="pseudolink">Returns</span></a>. You must also confirm that you understand that for your privacy, your credit card will be billed as A-1 Electronics.');
    define('TEXT_CONDITIONS_CONFIRM', '<span class="termsiagree">I have read and agreed to the Conditions of Use and to the Returns Policy bound to this order. I am also stating that I understand that my credit card will be billed as A-1 Electronics.</span>');
    define('TEXT_RETURNS_CONFIRM', '<span class="termsiagree">I have read and agreed to the Conditions of Use and to the Returns Policy bound to this order. I am also stating that I understand that my credit card will be billed as A-1 Electronics.</span>');
    define('TEXT_CCBILLING_CONFIRM', '<span class="termsiagree">I have read and agreed to the Conditions of Use and to the Returns Policy bound to this order. I am also stating that I understand that my credit card will be billed as A-1 Electronics.</span>');


    All three boxes showed up. Two things that I did not like. First and foremost, you can continue without checking any of these boxes now. And second, I would like to add a space between each condition. I know that the wording of the terms is the same for each one. I just wanted to see if it would work first before I did a lot of changes.

    And also, when I reverted back to the old .php copies it worked just like before. So I know I am missing something.
    Last edited by A-1 Electronics; 21 Jul 2007 at 09:35 PM.

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

    Default Re: Adding additonal confirmation box 2 chkout

    Now that I think about it, that may have been what you where telling me.

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

    Default Re: Adding additonal confirmation box 2 chkout

    Now I have found additonal files that are attached. They are english.php and header_php.php. If I make changes to these files as well will this accomplish what I am looking for? I can not locate any additional files at this time. But I will keep looking.

  8. #8
    Join Date
    Apr 2007
    Posts
    117
    Plugin Contributions
    1

    Default Re: Adding additonal confirmation box 2 chkout

    Went back and changed the wording for each of the conditions. No I do need to add a line between each one. And I made changes to english.php and header_php.php. It is still letting me go on without having those two boxes checked. Still searching though.

 

 

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