Fix typo stock quantity check
There is a typo in `COALESCE (` which is causing an error when this function is called. The error is present on the checkout page when clicking on payment.
This commit is contained in:
parent
04d371b7e0
commit
c7fccfd264
|
@ -2120,7 +2120,7 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
return $wpdb->prepare(
|
return $wpdb->prepare(
|
||||||
"
|
"
|
||||||
SELECT COALESCE ( MAX( meta_value ), 0 ) FROM $wpdb->postmeta as meta_table
|
SELECT COALESCE( MAX( meta_value ), 0 ) FROM $wpdb->postmeta as meta_table
|
||||||
WHERE meta_table.meta_key = '_stock'
|
WHERE meta_table.meta_key = '_stock'
|
||||||
AND meta_table.post_id = %d
|
AND meta_table.post_id = %d
|
||||||
",
|
",
|
||||||
|
|
Loading…
Reference in New Issue