Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34
  1. #1
    Join Date
    Apr 2007
    Posts
    117
    Plugin Contributions
    1

    Default Adding additonal confirmation box 2 chkout

    I need to add two additional boxes to step 2 of the checkout process - Payment Information.

    There is already a box for cofirming the terms and conditions. I need to add a box for confirming that the customer has read the returns policy and a box that they understand how their credit card will be billed.

    I have found the .php page to change the wording. However, I am unable to get the new boxes to show.

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

    Default Re: Adding additonal confirmation box 2 chkout

    Why not include all of this in your terms and conditions and not make it yet another step for your customers to have to complete?
    Zen-Venom Get Bitten

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

    Default Re: Adding additonal confirmation box 2 chkout

    This is being asked for from my processor. They want to make sure that the customer has been given every opportunity to read the policies and that they indicate that they have in order to minimize charge backs.
    Last edited by A-1 Electronics; 19 Jul 2007 at 10:42 PM.

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

    Default Re: Adding additonal confirmation box 2 chkout

    What does your code look like and what validation routine have you used?
    Zen-Venom Get Bitten

  5. #5
    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.

  6. #6
    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?
    Zen-Venom Get Bitten

  7. #7
    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.

  8. #8
    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
    Zen-Venom Get Bitten

  9. #9
    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.

  10. #10
    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.

 

 
Page 1 of 4 123 ... 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