Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Scott DeLuzio

    (@scottdeluzio)

    The plugin was only designed to handle one field for right now. I started working on another version that will handle more fields, and will post an update when it’s ready.
    I’m glad you are enjoying the plugin!

    I needed to attach the extra field to several PIDs so here’s a dirty fix:

    Open conditional-woo-checkout.php and add the following:

    foreach ( $woocommerce->cart->get_cart() as $cart_item_key => $values ) {
    
    $items = array(1186,1511,1512,1513,1514);			
    
     if(in_array($values['product_id'],$items)){	
    
    	 /*  $_product = $values['data'];
    
            if ( $_product->id == $product_id ) { */
                $check_in_cart = true;
            }
        }
        return $check_in_cart;

    replace the PIDs in an array with your own.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Only being able to create 1 field’ is closed to new replies.