Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Force Conditions Acceptance

This is a discussion on Force Conditions Acceptance within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I need to have customers who wish to use some kinds of shipping accept the conditions set by the carrier ...

      
  1. #1
    Member
    Join Date
    Feb 2009
    Location
    Sydney Australia
    Posts
    44
    Rep Power
    0


    Default Force Conditions Acceptance

    I need to have customers who wish to use some kinds of shipping accept the conditions set by the carrier Prior to completing an order Is this possible and if so How to go about doing it please.

    Their statement
    "Before using the DRC you must prominently post the statements contained below on your web site.

    INSERT YOUR TRADING NAME HERE accepts responsibility for any loss of, damage to, late delivery or non-delivery of goods ordered from our web site. To the maximum extent permitted by law, you agree to release our carriers from any liability relating to loss of, damage to, late delivery or non-delivery of any goods you order from this web site and to assign all rights to claim compensation or insurance against our carriers to us and expressly and irrevocably do so by clicking the following box.
    In rural and regional areas of Australia, delivery times for Express Parcel Services are in respect of delivery to the Post Office of the principal township in that area. Delivery to final destinations may take longer. If in doubt please check with your local Post Office.

    You must ensure that your web site is constructed so that every customer who requests an estimate of delivery times or charges expressly agrees to the above statements at the time of making such request."

    Thanks
    Progressing:
    osCMax 2.03 RC4

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    Default Re: Force Conditions Accepance

    Put it in the Shipping and Returns - even re-label it as: Shipping Terms

    Since OSCMAX - does not ESTIMATE shipping times - that part is irrelevant. And since most (depending on the module) can calculate shipping depending on your requirements - mostly ilrreivanet

    You can force people to agree to several things - just sub your above text...

    Must agree to Terms
    Must agree to terms
    agree to terms then confirm
    customer Must Accept Terms and Conditions (MATC)
    Just to list a few. Millage may vary....
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  3. #3
    Member
    Join Date
    Feb 2009
    Location
    Sydney Australia
    Posts
    44
    Rep Power
    0


    Default Re: Force Conditions Acceptance

    Thanks JFP
    I looked at some of those contributions but am Not sure what is relevant & what version of oscommerce a lot of them work with or wont in osCMax
    How can one tell?
    Progressing:
    osCMax 2.03 RC4

  4. #4
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    Default Re: Force Conditions Acceptance

    Most will work - but you have to manually edit osCMax files....In case they have already been modified. ALWAYS isolate the exact change code and note or comment them. Then look for the code before/after the updated code and find that code in the same osCMax file (line numbers mostly have changed - but most of the code is the same).
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  5. #5
    New Member
    Join Date
    Jan 2010
    Location
    Norway
    Posts
    15
    Rep Power
    0


    Default Re: Force Conditions Acceptance

    Hi all!
    I'm having a go for the contribution "Must agree to terms and conditions". I've had this simply mod running in my osC store and it works perfectly.

    However, no I am boulding up an new store - a osCMAX store, and I just can't get this to work...

    Checkbox is in place, but one can checkout and place and order even if the customer forgets to mark the Checkbox. So - I havent placed the javascript code in the rigt place...

    I've tried to place the code both in the /catalog/checkout_confirmation.php page and also in the templates chekout_confirmation.tpl.php-file.

    Is there anyone who knows exackly where the code should go? Please help me

    Link: http://addons.oscommerce.com/info/219
    Last edited by cleocat; 02-21-2010 at 07:55 AM. Reason: forgot to paste inn the link to the contribution I am trying to use...

  6. #6
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    2,944
    Rep Power
    34


    Post Re: Force Conditions Acceptance

    Well, seems easy (I might test at some point).
    Only need to modify:
    catalog/templates/yourtemplate/content/checkout_confirmation.tpl.php

    Put the Javascript at the very top and replace the rest of the code in the appropriate place (ignoring the line number references - just search for them).

    [As the instructions say, "Simple and easy". Just watch your spelling. ]
    Hosting plans with installation, configuration, contributions, support and maintenance.

  7. #7
    New Member
    Join Date
    Jan 2010
    Location
    Norway
    Posts
    15
    Rep Power
    0


    Default Re: Force Conditions Acceptance

    Hi ridexbuilder, and thank you for your answer

    I put the javascript code at the very top as you wrote (in catalog/templates/yourtemplate/content/checkout_confirmation.tpl.php), but the customer can still place an order without checking the box...

    Now what shall I do - any suggestions?

  8. #8
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    2,944
    Rep Power
    34


    Arrow Re: Force Conditions Acceptance

    I've just tested this and it works - osCMax 2.0.15
    Donations, Kudos, Rep Power, Thanks (or all of them ) accepted...

    Note: replace yourtemplate with the name of your own template - you should NOT be using/modifying the fallback template, for example, but possibly a copy of it.
    Translation: fallback => falle tilbake Et eller annet til hvilke ettall kanne feriested eller tilbake

    Complete installation.txt
    Code:
    /************************************************************** 
    User must agree to Terms and Conditions before finalising order 
     
    This modification makes your customer to agree to your terms and conditions before finalising the order. 
     
    Modified for osCommerce 2.2 as at December 2009 
    Original by: 
    // by Maik Caro Maik@CaroOnline.de 
    osCMax Specifics by EJ (Ridexbuilder) http://ejsolutions.co.uk
    ***************************************************************/ 
    
     
    INSTRUCTIONS: 
     
    ! Backup any files before modifying. 
     
    Make the following modifications to /catalog/templates/yourtemplate/content/checkout_confirmation.tpl.php 
     
     
    Top of file 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 --> 
     
     
    Around line 21, replace: 
      echo tep_draw_form('checkout_confirmation', $form_action_url, 'post'); 
    with this line: 
      echo '<form name="checkout_confirmation" method="post" action="' . $form_action_url . '" onsubmit="return checkCheckBox(this)">'; 
     
     
    Around line 233, before this line: 
      echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form>' . "n"; 
    add: 
      echo '<input type="checkbox" value="0" name="agree"> ' . CONDITION_AGREEMENT . '<br>'; 
    
     
    LANGUAGE FILES: (This is to change the english file, but the same changes can be made for all languages) 
    Make the following modifications to /catalog/includes/languages/english/checkout_confirmation.php: 
     
    Before ?> add: 
     define('CONDITION_AGREEMENT', 'I have read and agree to the <a href="conditions.php" target="_blank"><u>Terms and Conditions</u></a>'); 
     define('CONDITION_AGREEMENT_WARNING', 'Please agree to the Terms and Conditions in order to complete this order.'); 
     
    Simple and easy!
    Last edited by ridexbuilder; 02-21-2010 at 04:16 PM.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  9. #9
    New Member
    Join Date
    Jan 2010
    Location
    Norway
    Posts
    15
    Rep Power
    0


    Default Re: Force Conditions Acceptance

    Hi again,

    I have osCMax 2.0.15 and I have also my own template, so I'm not using the one in the fallback directory

    Very strange... CleoCat is thinking that mabye some of the other contributions she has installed is interfering.

    Well, thank you for your help!

  10. #10
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    2,944
    Rep Power
    34


    Default Re: Force Conditions Acceptance

    You could may the changes to fallback and switch your site to use fallback, just to see if it makes the difference.
    [I didn't tell you do do this, though! ]
    Attached Files Attached Files
    Hosting plans with installation, configuration, contributions, support and maintenance.

Page 1 of 2 12 LastLast

Similar Threads

  1. Terms Acceptance 1.0
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 07-30-2008, 05:00 PM
  2. Force Customer Country (Force CC)
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 02-18-2008, 03:20 AM
  3. Force Select Available Options
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 10-12-2007, 10:25 PM
  4. Force newsletter
    By Bassmaster in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 05-09-2007, 07:49 AM
  5. Credit Card Acceptance in cc_validation class
    By NickW in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 08-09-2004, 02:26 AM

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
  •