osCmax v2.5 User Manual
Results 1 to 4 of 4

must accept Terms and conditons problems

This is a discussion on must accept Terms and conditons problems within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hi all I tried today install a "must accept" terms and conditions contribution but i cant get it run. I ...

      
  1. #1
    New Member
    Join Date
    Apr 2010
    Posts
    15
    Rep Power
    0


    Default must accept Terms and conditons problems

    Hi all
    I tried today install a "must accept" terms and conditions contribution but i cant get it run.
    I tired this
    osCommerce: Terms And Conditions Agreement

    And have problems to find the following in the checkout_confirmation.php and chekout_confirmation.tpl.php:
    Code:
    Make the following modifications to /catalog/checkout_confirmation.php
    
    
    Around line 35, after this line:
     <link rel="stylesheet" type="text/css" href="stylesheet.css">
    add:
    <!-- Agree to Terms and Conditions - added by MC -->
    <SCRIPT LANGUAGE="JavaScript">
    function checkCheckBox(f){
    if (f.agree.checked == false )
    {
    alert('<?php echo CONDITION_AGREEMENT_WARNING; ?>');
    return false;
    }else
    return true;
    }
    </script>
    <!-- End Agree to Terms and Conditions -->
    The rest of the modifications work and the checkbox is showing. Just the Problem that it dont have to been checked is there.
    Anyone a idea?

    Cheers
    Jens

  2. #2
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Lightbulb Re: must accept Terms and conditons problems

    Not that it should matter in this case, but you should really state the version of 'Max that you're using.

    Have a look at this snippet from create_account.tpl.php - it should help you:
    Code:
                    <td class="main"><?php echo tep_draw_radio_field('gender', 'm') .
     '&nbsp;&nbsp;' . MALE . '&nbsp;&nbsp;' . tep_draw_radio_field('gender', 'f') .
     '&nbsp;&nbsp;' . FEMALE . '&nbsp;' . (tep_not_null(ENTRY_GENDER_TEXT) ?
     '<span class="inputRequirement">' . ENTRY_GENDER_TEXT . </span>': ''); ?>
    </td>
    Note the use of an already defined function - replace radio field with checkbox field.
    Full syntax:
    function tep_draw_checkbox_field($name, $value = '', $checked = false, $parameters = '')
    Plus the use of an existing span class.
    Last edited by ridexbuilder; 03-08-2011 at 02:48 PM. Reason: more detail
    Hosting plans with installation, configuration, contributions, support and maintenance.

  3. #3
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: must accept Terms and conditons problems

    Also worthy of note that MATC is in v2.5

    Regards,
    pgmarshall
    _______________________________

  4. #4
    New Member
    Join Date
    Apr 2010
    Posts
    15
    Rep Power
    0


    Default Re: must accept Terms and conditons problems

    thanks all for the reply.
    Sorry for the long delay in replying. We are just moved and this took long time.
    It seems that it work now but i have obtained another problem will make a new thread.
    I found that i just get a blank checkout_process.php dont no why

Similar Threads

  1. customer Must Accept Terms and Conditions (MATC)
    By michael_s in forum New osCommerce Contributions
    Replies: 1
    Last Post: 04-21-2010, 03:24 PM
  2. customer Must Accept Terms and Conditions (MATC)
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 09-16-2008, 12:52 AM
  3. customer Must Accept Terms and Conditions (MATC)
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-28-2008, 07:30 AM
  4. customer Must Accept Terms and Conditions (MATC)
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-20-2008, 07:01 PM
  5. customer Must Accept Terms and Conditions (MATC)
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-19-2008, 02:12 PM

Bookmarks

Posting Permissions

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