Put back the manage stock check for lookup table.
This commit is contained in:
parent
9f0fb0b404
commit
207042f7df
|
@ -1996,7 +1996,8 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da
|
|||
protected function get_data_for_lookup_table( $id, $table ) {
|
||||
if ( 'wc_product_meta_lookup' === $table ) {
|
||||
$price_meta = (array) get_post_meta( $id, '_price', false );
|
||||
$stock = wc_stock_amount( get_post_meta( $id, '_stock', true ) );
|
||||
$manage_stock = get_post_meta( $id, '_manage_stock', true );
|
||||
$stock = 'yes' === $manage_stock ? wc_stock_amount( get_post_meta( $id, '_stock', true ) ) : null;
|
||||
$price = wc_format_decimal( get_post_meta( $id, '_price', true ) );
|
||||
$sale_price = wc_format_decimal( get_post_meta( $id, '_sale_price', true ) );
|
||||
return array(
|
||||
|
|
Loading…
Reference in New Issue