fix for woosb_get_bundles()
-
Hi,
so I had and issues, that old product appears as included to bundle, even is not in the bundle
product id was ’25, field woosb_ids ‘2225/1,53793/2′
seems that plugin does meta query trying to find mach for ’25/’My sugestion: add
$regex = '^'.$product_id.'\/|,'.$product_id.'\/';
before$query_args = array(
and replace'meta_query' => array( array( 'key' => 'woosb_ids', 'value' => $regex, 'compare' => 'REGEXP', ) ) /*'meta_query' => array( 'relation' => 'OR', array( 'key' => 'woosb_ids', 'value' => $id_str, 'compare' => 'LIKE', ), array( 'key' => 'woosb_ids', 'value' => $sku_str, 'compare' => 'LIKE', ) )*/
Actual file is woo-product-bundle/includes/class-woosb.php line 2885
- The topic ‘fix for woosb_get_bundles()’ is closed to new replies.