WordPress.org

Forums

WP eCommerce
Shipping state invalid when Shipping Same as Billing enabled (1 post)

  1. Aaron Beverly
    Member
    Posted 1 year ago #

    Using WP-eCommerce 3.8.13.3.

    When I enable Shipping Same as Billing, the checkout form states that my shipping state is invalid.

    Upon closer examination the html for the input field is


    <input title='shippingstate' type='hidden' id='wpsc_checkout_form_15' class='shipping_region' name='collected_data[15]' placeholder='State' value='18' size='4' />

    It obviously has a value set (18). Looking at the $_POST variable we have


    [collected_data] => Array
    (
    [9] => test@example.com
    [2] => John
    [3] => Doe
    [4] => PO Box
    [5] => City
    [7] => Array
    (
    [0] => US
    [1] => 18
    )

    [8] => ZipCode
    [18] => 555-555-5555
    [11] => John
    [12] => Doe
    [13] => PO Box
    [14] => City
    [15] =>
    [16] => US
    [17] => ZipCode
    )

    [shippingSameBilling] => true
    [custom_gateway] => wpsc_merchant_paypal_standard
    [agree] => yes
    [wpsc_action] => submit_checkout

    The [15] is empty leading to the error. When I disable Shipping Same as Billing, the exact same input field is generated:


    <input title='shippingstate' type='hidden' id='wpsc_checkout_form_15' class='shipping_region' name='collected_data[15]' placeholder='State' value='18' size='4' />

    But the _POST variable has the right value of 18 and the form processes successfully. Any ideas what could be causing this weirdness?

    Thanks!

    https://wordpress.org/plugins/wp-e-commerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.