Shop App not setting the address once selected by customer

  • Hopefully a small fix that I can't see!


    I have a form generated with perch_shop_order_address_form(), where the customer selects their delivery and shipping address.


    When the form submits on my localhost, the shipping and billing addresses are selected.


    On the staging server, the addresses aren't set.


    I've updated to the latest version of Runway, checked the versions of PHP , and the POST submitted by the form is the same on both local and staging boxes.


    Do I need to add anything to the page template so that the shipping and billing addresses are set?


    Thanks,


    Aled

  • It won't gp to the next step of the cart process on the staging server, as it's failing the below check:


    if (perch_shop_addresses_set()) {


    Even though the form is submitted, and the post contains similar data:


    Localhost:


    Array

    (

    [shipping] => test

    [billing] => test

    [submit] => OK!

    [cms-form] => b3JkZXJfYWRkcmVzczpwZXJjaF9zaG9wOlx0ZW1wbGF0ZXNcc2hvcFxjaGVja291dFxvcmRlcl9hZGRyZXNzX2Zvcm0uaHRtbDoxNTY1MzE1MTg1

    [r] =>

    )



    Staging server:


    Array

    (

    [shipping] => test-address-1 [billing] => test-address-1 [cms-form] => b3JkZXJfYWRkcmVzczpwZXJjaF9zaG9wOi90ZW1wbGF0ZXMvc2hvcC9jaGVja291dC9vcmRlcl9hZGRyZXNzX2Zvcm0uaHRtbDoxNTY1MzE1NTMw [submit] => OK! [r] => )

  • drewm

    Approved the thread.