Results 1 to 10 of 84

Threaded View

  1. #21
    Join Date
    Feb 2007
    Posts
    513
    Plugin Contributions
    2

    Default Re: Adding Field to Checkout

    Quote Originally Posted by cpannek and others View Post
    Need to add fields onto the checkout payment page
    ......
    it wont populate in my database.
    Kuroi gave answer on page 1. To clarify:

    EDIT
    includes/modules/pages/checkout_confirmation/header_php.php

    FIND
    $_SESSION['comments'] = $_POST['comments'];

    ADD
    under it
    PHP Code:
    if (isset($_SESSION['frequent_code'])) {$frequent_code $_SESSION['frequent_code'];}

    if (
    zen_not_null($_POST['frequent_code'])) {$_SESSION['frequent_code'] = zen_db_prepare_input($_POST['frequent_code']);}
    $frequent_code $_SESSION['frequent_code']; 




    ALSO I added the same code to includes/modules/pages/checkout_payment/header_php.php (but probably just need to add it to checkout_confirmation/header_php.php)

    EDIT
    includes/modules/pages/checkout_payment/header_php.php

    ADD
    PHP Code:
    if (isset($_SESSION['frequent_code'])) {$frequent_code $_SESSION['frequent_code'];}

    if (
    zen_not_null($_POST['frequent_code'])) {$_SESSION['frequent_code'] = zen_db_prepare_input($_POST['frequent_code']);}
    $frequent_code $_SESSION['frequent_code']; 

    UNDER $_SESSION['comments'] = $_POST['comments'];
    Last edited by vandiermen; 22 Jan 2016 at 06:13 AM.

 

 

Similar Threads

  1. v151 Adding custom field during checkout
    By hues in forum General Questions
    Replies: 1
    Last Post: 9 Nov 2012, 10:39 PM
  2. Adding Field to Checkout
    By earlygrayte in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 17 Feb 2012, 03:00 PM
  3. Adding select field to checkout
    By ETbyrne in forum Managing Customers and Orders
    Replies: 1
    Last Post: 22 Aug 2008, 02:34 AM
  4. adding a field to checkout and db
    By StevenB in forum General Questions
    Replies: 0
    Last Post: 20 May 2007, 12:57 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