Title: small fix for render_wccpf_data
Last modified: August 31, 2016

---

# small fix for render_wccpf_data

 *  Resolved [thomaswp](https://wordpress.org/support/users/thomaswp/)
 * (@thomaswp)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/small-fix-for-render_wccpf_data/)
 * 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/](https://wordpress.org/plugins/wc-fields-factory/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Saravana Kumar K](https://wordpress.org/support/users/mycholan/)
 * (@mycholan)
 * [10 years ago](https://wordpress.org/support/topic/small-fix-for-render_wccpf_data/#post-7235063)
 * Hi thanks for reporting it, it’s been updated with V1.3.1

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/wc-fields-factory/assets/icon-128x128.jpg?rev=2738843)
 * [WC Fields Factory](https://wordpress.org/plugins/wc-fields-factory/)
 * [Support Threads](https://wordpress.org/support/plugin/wc-fields-factory/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-fields-factory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-fields-factory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-fields-factory/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Saravana Kumar K](https://wordpress.org/support/users/mycholan/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/small-fix-for-render_wccpf_data/#post-7235063)
 * Status: resolved