Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2005
    Posts
    65
    Plugin Contributions
    0

    help question Adding fields to shipto address

    Zen 1.3.9h

    I am adding new fields to the shipto address (telephone, best time to call and email). These are necessary because of some special customers that order for other customers. I will be happy to explain the necessity further if necessary.

    Almost everything is working - the fields are stored in the addressbook.

    But they are not being stored in the order.

    I have modified orders.php to include them in $this->delivery(around line 150) $sql_data_array (around line 590).

    I know that this is having a good effect because now the fields are blank instead of NULL in the database.

    I am missing something that I am having trouble finding that processes the value from the form and makes it available to orders.php!

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,197
    Plugin Contributions
    0

    Default Re: Adding fields to shipto address

    I don't know if this helps but read please... It is close..

  3. #3
    Join Date
    Mar 2005
    Posts
    65
    Plugin Contributions
    0

    Default Re: Adding fields to shipto address

    Quote Originally Posted by haredo View Post
    I don't know if this helps but read please... It is close..
    Thanks - it is close. Very close.

    And I have trying to do the tracing of other fields.

    I have not yet found the golden key :) I am hoping for somebody who has been there before.

    One thing that I believe is significant is that my new fields occur in the delivery array. OTOH that might not matter. As you know, zen code has many potential distractions :)

  4. #4
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,197
    Plugin Contributions
    0

  5. #5
    Join Date
    Mar 2005
    Posts
    65
    Plugin Contributions
    0

    Have a Drink Re: Adding fields to shipto address (Solved)

    I am all set - my problem was in making the linkages from form to field to sql. I had all the right places to alter but my naming was a little sloppy.

    Thanks all :)
    Last edited by brandon; 22 Apr 2011 at 01:34 AM. Reason: put solved in title

  6. #6
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,197
    Plugin Contributions
    0

    Default Re: Adding fields to shipto address

    Sweet!... Would be nice if you would post the fix for me and fellow zenners with this problem to find the right solution...

  7. #7
    Join Date
    Mar 2005
    Posts
    65
    Plugin Contributions
    0

    Have a Drink Re: Adding fields to shipto address

    I am not trying to keep it a secret.

    The problem is that it is spread over several files and depends on where you want to put the field - ship/to address, additional order header fields, separate table.

    I uploaded my includes/classes/order.php (called order.zip) - if you diff it to the stock one you will see all my changes. I do not warrant it useful for others and it might still be buggy :)

    As to actually putting the data on the form involved - as I said, it depends on where - in my case, modules/checkout_new_address and the relevant template. In the correct override directories for my template.
    Attached Files Attached Files

  8. #8
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,197
    Plugin Contributions
    0

  9. #9
    Join Date
    Mar 2005
    Posts
    65
    Plugin Contributions
    0

    Default Re: Adding fields to shipto address

    BTW I did comment my changes so just reading it would work but a graphical diff is miles better, especially for awesome marvel that is zencart source code.

 

 

Similar Threads

  1. ShipTo info missing in orders
    By carlvt88 in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 3 May 2011, 02:01 PM
  2. Replies: 8
    Last Post: 1 Apr 2009, 05:26 PM
  3. Address fields
    By net3431 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 13 Dec 2008, 09:04 PM
  4. Update Address Details Fields - Removal
    By RRC153 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 13 Apr 2008, 01:21 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