Okay
  Public Ticket #2863002
the latest update got problem
Closed

Comments

  •  1
    low weihao started the conversation

    Hi there i just found that  the recently update version getting some problem ,it show error in 

    home/asogocom/wholesales.asogo.com/wp-content/plugins/codecanyon-7xoKl7bT-b2bking-the-ultimate-woocommerce-b2b-plugin/public/class-b2bking-dynamic-rules.php on line 10052


    which the code with 

    foreach($dynamic_minmax_rules as $dynamic_minmax_rule){
    // get rule details
    $minimum_maximum = get_post_meta($dynamic_minmax_rule, 'b2bking_rule_what', true);
    $quantity_value = get_post_meta($dynamic_minmax_rule, 'b2bking_rule_quantity_value', true);
    $howmuch = floatval(get_post_meta($dynamic_minmax_rule, 'b2bking_rule_howmuch', true));
    $applies = get_post_meta($dynamic_minmax_rule, 'b2bking_rule_applies', true);
    if ($applies === 'cart_total'){

    } else {
    // rule is category or product rule or multiple select rule
    $applies = explode('_',$applies);
    if ($applies[0] === 'category'){
    // rule is category rule
    if(has_term($applies[1], 'product_cat', $product_id)){
    if ($quantity_value === 'quantity'){
    if ($minimum_maximum === 'maximum_order'){
    if ($largest_maximum === 'none'){
    $largest_maximum = $howmuch;
    } else if ($largest_maximum < $howmuch) {
    $largest_maximum = $howmuch;
    }
    } else if ($minimum_maximum === 'minimum_order'){
    if ($smallest_minimum === 'none'){
    $smallest_minimum = $howmuch;
    } else if ($smallest_minimum > $howmuch) {
    $smallest_minimum = $howmuch;
    }
    }
    }
    }

    }  else if ($applies[0] === 'product'){
    // rule is product rule
    if(intval($applies[1]) === $product_id){
    if ($quantity_value === 'quantity'){
    if ($minimum_maximum === 'maximum_order'){
    if ($largest_maximum === 'none'){
    $largest_maximum = $howmuch;
    } else if ($largest_maximum < $howmuch) {
    $largest_maximum = $howmuch;
    }
    } else if ($minimum_maximum === 'minimum_order'){
    if ($smallest_minimum === 'none'){
    $smallest_minimum = $howmuch;
    } else if ($smallest_minimum > $howmuch) {
    $smallest_minimum = $howmuch;
    }
    }
    }
    }

  •   WebWizards replied privately
  •   low weihao replied privately
  •   WebWizards replied privately