Home Forums Basel support forum Pb on checkout page – uasort

Pb on checkout page – uasort

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #87151

    pierredemeudon
    Participant

    Hello,

    I do have this issue on the checkout page (see attached):

    what relates to that:

    /**
    * User to sort checkout fields based on priority with uasort.
    *
    * @since 3.5.1
    * @param array $a First field to compare.
    * @param array $b Second field to compare.
    * @return int
    */
    function wc_checkout_fields_uasort_comparison( $a, $b ) {
    return wc_uasort_comparison( $a[‘priority’], $b[‘priority’] );
    }

    I found this: Sort checkout fields using PHP and not JS on initial page load as it … but you certainly know

    https://github.com/woocommerce/woocommerce/blob/master/includes/wc-core-functions.php

    Attachments:
    You must be logged in to view attached files.
    #87168

    Artem Temos
    Keymaster

    Hi,

    It seems that this code is incorrect. Unfortunately, we are not able to fix this since it depends on the WooCommerce functionality and its code base.

    Regards

    #87264

    pierredemeudon
    Participant

    OK. I found, for your info.
    I had a pb when updating the theme (white screen).
    The error above is caused when: define (‘WP_DEBUG’, true)
    Switch to false solved the issue
    Kind regards

    #87291

    Hello,

    Your problem is not clear enough. Now your theme version is 4.4.2 which is the most recent one.

    Best Regards

    #87359

    pierredemeudon
    Participant

    Sorry, I was not clear enough.
    My problem (see above) is solved.
    The solution was to switch back WP_DEBUG to FALSE.
    I don’t know why the update of the theme led to white screen. but now is OK, as you saw.
    Regards

    #87364

    Ok. If you have any questions please feel free to contact us.

    Best Regards

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Pb on checkout page – uasort’ is closed to new replies.