Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2008
    Posts
    99
    Plugin Contributions
    0

    Default Problem with forms. What's missing?

    Hi All
    I'm trying to add a couple of extra form fields to the checkout shipping page that should be carried over to the checkout payment page but it's not working. To find the source of the problem I've gone back to basics and inserted

    Code:
    Enter your name: <input type="text" name="name" />
    to tpl_checkout_shipping_default.php just after the zen_draw_form.

    Then I've added

    Code:
    Welcome <?php echo $_POST["name"]; ?>.<br />
    to tpl_checkout_payment_default.php. This should be straightforward. What am i missing?
    Thanks, Steve

  2. #2
    Join Date
    Sep 2008
    Posts
    99
    Plugin Contributions
    0

    Default Re: Problem with forms. What's missing?

    Got it. Followed the advice from the forum entry here

    http://www.zen-cart.com/forum
    /showthread.php?t=115909&highlight=_post


    I found the checkout_shipping header file here

    catalog/includes/modules/pages/checkout_shipping/header_php.php

    and inserted the following which copies the post array to the session before it's cleared.

    if (isset($_POST['name'])) {
    $_SESSION['name'] = $_POST['name']; }

    $_SESSION['name'] is then available to checkout_payment. Drop me a line if anyone needs this clarifying. I'm aware that I should be using an override but not sure how to for headers. Anyone?

    Steve

 

 

Similar Threads

  1. Layout problem with forms
    By Natural Tone in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 9 Feb 2009, 05:00 AM
  2. Problem with Paypal and missing orders
    By camay123 in forum Built-in Shipping and Payment Modules
    Replies: 13
    Last Post: 30 Jan 2008, 06:51 AM
  3. install problem - missing resource
    By optimist in forum Installing on a Linux/Unix Server
    Replies: 11
    Last Post: 15 Aug 2007, 10:15 AM
  4. Replies: 2
    Last Post: 18 Dec 2006, 09:08 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
  •