• Resolved agg2

    (@agg2)


    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)
  • Thread Starter agg2

    (@agg2)

    The problem has been resolved independently of the plugin.

    Good to hear you got the issue solved! How did you manage to do so?

    Best,
    Joris

    Thread Starter agg2

    (@agg2)

    I’m not 100% sure but I believe when I re-registered the custom fields with a change in ids and names of the variable, this sorted out the problem.

    This may have to do with the fact that the fields are listed in your plugin drop-downs by id/name, and not by label, as I originally believed? I was originally expecting the field to be listed by label.

    • This reply was modified 6 years, 12 months ago by agg2.
    • This reply was modified 6 years, 12 months ago by agg2.
    • This reply was modified 6 years, 12 months ago by agg2.

    Hello, I’m running into a similar issue.

    When I install and active the Product Feed Pro plugin, I’m given new fields on my products for Brand, GTIN, MPN, UPC, etc.

    However when I go to setup an actual feed, I can select Brand, GTIN, and MPN from the CUSTOM FEED ATTRIBUTES, but I’m not able to select these from the VALUE dropdown.

    Can you please let me know what I’m doing wrong?

    Hi zgncreative,

    Thanks for using our plugin and reaching out to us. Just a pointer for the next time you require help: it is best you do not add comments in an issue that has the status ‘resolved’, changes are big our support team is not monitoring those anymore. Also according to WordPress guidelines you need to create a separate issue. Now, after my lecture let’s have a look at your issue.

    You should be able to identify the new fields in the dropdown like this (see screenshot below). They all start with woosea..

    https://www.dropbox.com/s/gogl6okk72ofgdx/woosea-fields.png?dl=0

    Hope this helps?

    All the best,
    Eva

    when i upload feeds using this plugin.I am experiencing an error in google merchant called
    Invalid or missing required attribute:ID

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.