• Resolved thomaswp

    (@thomaswp)


    I had to add ‘isset’ to the code in render_wccpf_data that displays the value on the cart, to prevent errors.
    Could be my custom code on several hooks or cart-item-data.php that interferes with these values, not sure, no time to check the details.

    if( $cart_item['wccpf_'. $field["name"] ] && trim( $cart_item['wccpf_'. $field["name"] ] ) ) {

    became

    if( isset($cart_item['wccpf_'. $field["name"] ]) && trim( $cart_item['wccpf_'. $field["name"] ] ) ) {

    But maybe it’s a useful addition for the next release of your plugin?

    https://wordpress.org/plugins/wc-fields-factory/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘small fix for render_wccpf_data’ is closed to new replies.