Product Feed Plugin does not recognise custom fields for product variations
-
So I’ve created custom fields for my product variations, and this is exactly how they are defined:
// Adding new fields under individual variation sections function variation_settings_fields( $loop, $variation_data, $variation ) { woocommerce_wp_text_input( array( 'id' => "custom_MPN{$loop}", 'name' => "custom_MPN[{$loop}]", 'value' => get_post_meta( $variation->ID, 'custom_MPN', true ), 'label' => __( 'MPN variation', 'woocommerce' ), 'desc_tip' => true, 'description' => __( 'Manufacturer Product Number (hand-coded field).', 'woocommerce' ), 'wrapper_class' => 'form-row form-row-full', ) ); woocommerce_wp_text_input( array( 'id' => "custom_GTIN{$loop}", 'name' => "custom_GTIN[{$loop}]", 'value' => get_post_meta( $variation->ID, 'custom_GTIN', true ), 'label' => __( 'GTIN variation', 'woocommerce' ), 'desc_tip' => true, 'description' => __( 'Global Trade Item Number (hand-coded field).', 'woocommerce' ), 'wrapper_class' => 'form-row form-row-full', ) ); }
Yet the custom fields ‘GTIN variation’ and ‘MPN variation’ do not appear in the list of recognised custom fields when Mapping Attributes in your plugin. Please advise.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Product Feed Plugin does not recognise custom fields for product variations’ is closed to new replies.