Undefined index wccpf_flavours in product-form.php
-
Hi,
I have installed the plugin and its working amazingly in the backend, so slick.
My custom field is called “Flavours” and the string version is ‘flavours’ so the index should be looking for
wccpf_flavours
My issue is when going to the cart page I can see that I get an error on this line in the classes/product-form.php 260
if( $cart_item['wccpf_'. $field["name"] ] && trim( $cart_item['wccpf_'. $field["name"] ] ) ) { if( $field["type"] == "file" ) { $fobj = json_decode( $cart_item['wccpf_'. $field["name"] ], true ); $path_parts = pathinfo( $fobj['file'] ); $wccpf_items[] = array( "name" => $field["label"], "value" => $path_parts["basename"] ); } else { $wccpf_items[] = array( "name" => $field["label"], "value" => $cart_item['wccpf_'. $field["name"] ] ); } }
Can you identify why this is happening?
Thanks,
- The topic ‘Undefined index wccpf_flavours in product-form.php’ is closed to new replies.