We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We're running some external validation on basket contents. (Using woocommerce_check_cart_items to check items against an ERP system)
woocommerce_check_cart_items
In short, it reads the serialised basket contents from wp_options.option_value Most of the baskets unserialize correctly, eg
{s:10:"product_id";i:8865; (Snippet)
{s:10:"product_id";i:8865;
However some baskets store the product_id as a string, however all product_ids are integers
{s:10:"product_id";s:4:"8525"(Snippet)
{s:10:"product_id";s:4:"8525"
We're wondering whether this is a Woo, WP or PHP bug within the basket serialization.
The text was updated successfully, but these errors were encountered:
There is no type casting on product_id. Will make them consistent in 2.4.
Sorry, something went wrong.
b35e7f7
No branches or pull requests
We're running some external validation on basket contents.
(Using
woocommerce_check_cart_items
to check items against an ERP system)In short, it reads the serialised basket contents from wp_options.option_value
Most of the baskets unserialize correctly, eg
{s:10:"product_id";i:8865;
(Snippet)However some baskets store the product_id as a string, however all product_ids are integers
{s:10:"product_id";s:4:"8525"
(Snippet)We're wondering whether this is a Woo, WP or PHP bug within the basket serialization.
The text was updated successfully, but these errors were encountered: