Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Posts
    2
    Plugin Contributions
    0

    Default full state name passing to gspay payment module

    i'm having problems passing the full state name to my payment module, gspay.

    i think its passing the state abbreviation only and the gspay module has full state names in the dropdown menu, so its not automatically filling in the state on the payment page.

    where is the code that transfers the state abbreviation to the payment module. id like to change it to transfer the full state name.

    in the gspay payment module, heres the code that populates the state name and other payment variables, can i change anything here to grab the full state name? the other variables transfer Ok.

    Code:
    zen_draw_hidden_field('customerFullName',$order->customer[firstname]." ".$order->customer[lastname] ) .
                                   zen_draw_hidden_field('customerAddress', $order->customer['street_address']) .
                                   zen_draw_hidden_field('customerCity', $order->customer['city']) .
                                   zen_draw_hidden_field('customerStateCode', !empty($stateCode) ? $stateCode : 'XX') .
                                   zen_draw_hidden_field('customerZip', $order->customer['postcode']) .
                                   zen_draw_hidden_field('customerCountry', $order->customer['country']['title']) .
                                   zen_draw_hidden_field('customerEmail', $order->customer['email_address']) .
                                   zen_draw_hidden_field('customerPhone', $order->customer['telephone']) .
    
                                   zen_draw_hidden_field('customerShippingFullName',$order->delivery[firstname]." ".$order->customer[lastname] ) .
                                   zen_draw_hidden_field('customerShippingAddress', $order->delivery['street_address']) .
                                   zen_draw_hidden_field('customerShippingCity', $order->delivery['city']) .
                                   zen_draw_hidden_field('customerShippingStateCode', !empty($deliveryStateCode) ? $deliveryStateCode: 'XX') .
                                   zen_draw_hidden_field('customerShippingZip', $order->delivery['postcode']) .
                                   zen_draw_hidden_field('customerShippingCountry', $order->delivery['country']['title']) .
                                   zen_draw_hidden_field('customerShippingEmail', $order->delivery['email_address']) .
                                   zen_draw_hidden_field('customerShippingPhone', $order->customer['telephone']) .
          				
    			       "";

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: full state name passing to payment module

    Be careful ...

    You are using:
    $order->customer
    $order->delivery

    I think you really want to use:
    $order->billing
    $order->delivery

    Did you peek in the order.php class file:
    /includes/classes/orders.php

    to see the name of the fields used in the 3 sets of arrays for the Customer, Billing and Delivery information?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v151 Should TaxCloud be passing State Code or State name to TaxCloud for verification?
    By RCwebdev in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 9 Dec 2013, 10:16 PM
  2. WPP uses full state name
    By djdavedawson in forum PayPal Website Payments Pro support
    Replies: 0
    Last Post: 21 Jun 2012, 09:14 PM
  3. Save US State as a initials in database instead of full name
    By bellorusha in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 30 Mar 2010, 04:40 PM
  4. eProcessingNetwork Payment Module passing wrong address
    By jenbullfrog in forum Addon Payment Modules
    Replies: 0
    Last Post: 27 Oct 2009, 07:12 PM
  5. Can't see my orders when using gspay payment module
    By tomzhanghere in forum Addon Payment Modules
    Replies: 1
    Last Post: 19 Nov 2008, 03:45 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