Thread: Regulations

Results 1 to 6 of 6

Hybrid View

  1. #1

    Default Re: Regulations

    edit the file includes/modules/pages/checkout_confirmation/header_php.php

    Find around line 51:

    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');
      }


    add this just below that:
    PHP Code:
    if (DISPLAY_DELIVERY_ON_CHECKOUT == 'true') {
      if (!isset(
    $_POST['delivery']) || ($_POST['delivery'] != '1')) {
        
    $messageStack->add_session('checkout_payment'ERROR_DELIVERY_NOT_ACCEPTED'error');
      }

    of course you would need to define ERROR_DELIVERY_NOT_ACCEPTED for the text you want to be displayed
    http://www.customscripts.co.za - Custom development for open-source applications

    http://www.pcservice.co.za - Website Development, Domain Registration, Hosting

  2. #2
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    red flag Re: Regulations

    Hi Pierre, this works great thanks and does exactly what I was trying to achieve. So thanks for the pointers.

    Just one thing, where do I put this in the languages files?

    define('ERROR_DELIVERY_NOT_ACCEPTED', 'Please let us know your delivery instructions e.g. Leave nextdoor. If there are none please tick this box to proceed.');


    Many Thanks

    nick

  3. #3

    Default Re: Regulations

    You can put it anywhere in your includes/languages/english.php file
    http://www.customscripts.co.za - Custom development for open-source applications

    http://www.pcservice.co.za - Website Development, Domain Registration, Hosting

 

 

Similar Threads

  1. Help With Regulations
    By Globie in forum General Questions
    Replies: 9
    Last Post: 15 Sep 2010, 04:07 PM
  2. Adding New Regulations
    By SeaBriz in forum General Questions
    Replies: 2
    Last Post: 2 Dec 2008, 12:12 AM
  3. Add new regulations
    By ilove24 in forum General Questions
    Replies: 0
    Last Post: 28 Aug 2008, 07:39 AM
  4. Regulations Per Product?
    By gabstero in forum General Questions
    Replies: 0
    Last Post: 13 Aug 2008, 03:39 PM

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