Support » Plugin: WC Fields Factory » Custom field labels show number ‘-1’

  • For some reason my custom field labels are followed by a ‘-1’ on the order confirmation page and order emails. This doesn’t seem to be related to the number of entries, as even if there are two loads of custom fields added, both show ‘-1’.

    Does anyone know why this is being added to the meta?

Viewing 1 replies (of 1 total)
  • Just encountered the same problem and added the following filter to strip trip ‘ – 1’.

    //remove ' - 1' from order item meta inserted by WC Field Factory
    add_filter('wcff_before_inserting_order_item_meta', function($wcff_order_item_meta) {
    	return str_replace(' - 1', '', $wcff_order_item_meta);

    Maybe this will help you as well.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom field labels show number ‘-1’’ is closed to new replies.