Pb on checkout page – uasort
-
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.
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
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
Hello,
Your problem is not clear enough. Now your theme version is 4.4.2 which is the most recent one.
Best Regards
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
Ok. If you have any questions please feel free to contact us.
Best Regards
The topic ‘Pb on checkout page – uasort’ is closed to new replies.