• Resolved hzengler

    (@hzengler)


    Hello.

    First of all thank you for your great plugin who offers awesome customizations.

    However, I am having an issue with a functionnality. I want to make a custom feed for Facebook. My problem is the following :
    – 1) At variation level, I have a custom metadata attribute called “variation_main_img” (because those images are texts based URL hosted on another website)
    – 2) When creating the feed using Woo Product Feed Pro, I am mapping the column ‘g:image_link’ to the custom attribute metadata “variation_main_img’ which is well listed on the selector
    – 3) When exporting, this field is always empty.

    As I understand it as a developer, it is because your code is trying to retrieve the custom attribute using the parent product id (variable product) and not the variation ID.

    Is there a way to retrieve the metadata for the variation ?

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    Thanks for using our plugin and reaching out to us.

    The plugin uses the product ID of the product and looks at the product type for that. When it is retrieving a simple product the product ID of that product is being used. For product variations it fetches the information based on the product ID of the variation. So the metadata should be attached to the variation product ID. The issue, I think, however is that information is saved in array’s instead of strings (for simple products) and thats most likely the reason our plugin is not able to retrieve the variation_main_img metadata. Unfortunately that is not something we are able to solve.

    Thread Starter hzengler

    (@hzengler)

    Ok I see. Can you tell me which part of the code is responsible for retrieving custom variation metadata so maybe I can try and experiment to add a custom code myself ?

    Thank you for this quick answer.

    This is the file you’d need to make changes to:

    ../wp-content/plugins/woo-product-feed-pro/classes/class-get-products.php

    As of line 3477 the plugin will start fetching data for product variations. When your metadata is connected to the parent variable product you’d probably have to go to line 3689 otherwise within the foreach loop that starts on line 3757

    Hi,

    Assuming the issue at hand has been resolved and/or our support is no longer required I am going to close this topic for housekeeping reasons now.

    Should you ever require our help again, don’t hesitate to reach out or open a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add custom variation metadata’ is closed to new replies.