This topic has 19 replies, 5 voices, and was last updated 2 months, 3 weeks ago ago by Andrew Mitchell
Hello, I am using Product Feed Pro which is plugin to make the product feed XML to upload on the Merchant centre and Meta Catalgoue.
Everything is setup correctly only the problem is there is no predefined attribute for the variation Image gallery which I can map in the feed so by default only one Image is going.
Could you please help me to get this thing done.
Hello I am waiting eagerly for your response.
For your information there are many attribute for the Images like –
Main image
Main image simple and variations
Additional image 1
All images (comma separated)
All gallery images (comma separated)
product image gallery (Custom attribute)
All images Kogan (pipe separated)
But these only take the Images from the product Image gallery not the Product Variation Image gallery. I want one for the product Image variation gallary attribute which I can add into the Product Feed Pro Setting.
Hi @Razi,
Please note the issues are related to the 3rd party plugins must be directed to the plugin’s author, they are out of scope our support standard services.
Should you require further customization beyond the standard options available, we kindly invite you to submit a request through our customization panel at https://www.8theme.com/account/#etheme_customization_panel. This will enable you to connect directly with our technical team.
Please be aware that customization services incur additional charges. The exact cost will be determined after a detailed assessment of your request.
Thank you for your understanding and cooperation.
Best regards,
The 8Theme Team.
I’ve already discussed this with the plugin team, and they mentioned that the Xstore theme currently doesn’t have an attribute for the Variation Gallery Images. They indicated that this attribute would need to be created before it can start displaying correctly in the plugin.
I also asked the same to chatgpt and here is the response ”
Custom Code Snippet:
If you are comfortable with coding, you can add a custom code snippet to your theme’s functions.php file to pull variation images and include them in the product feed.
Here’s a basic example of what the code might look like:
php
Copy code
add_filter('woo_feed_custom_fields', 'add_variation_image_gallery_to_feed', 10, 3);
function add_variation_image_gallery_to_feed($fields, $product, $variation) {
$image_gallery = get_post_meta($variation->get_id(), '_product_image_gallery', true);
$fields['variation_image_gallery'] = $image_gallery;
return $fields;
}
”
But I am not fimiliar with the code so please go throug this and help me out.
Also what was this problem which you have resolved. : https://www.8theme.com/topic/product-variation-images-generating-in-xml-file/
I am waiting for the response. Please reply
Hello @Razi,
We don’t guarantee full compatibility with all plugins but we can always try to add it with the ones our customers ask us for 🙂
In your case, I would recommend you to check the next topics where customers wanted to import/export our variation gallery images with some extra plugins.
1/ https://www.8theme.com/topic/product-variation-images-generating-in-xml-file/ (after that topic was solved we added globally compatibility with WooCommerce Skroutz & BestPrice XML Feed plugin)
2/ https://www.8theme.com/topic/some-questions-about-variations-gallery/
We would recommend you to ask plugin’s support with the details we provided below. If you will get a positive answer from them – you may write us with details they gave you so that we could add their ‘snippet/filter/action’ globally for all other clients and add compatibility with that plugin for all others 🙂
For information to your plugin’s developers (you may ask them for help):
1/ Our theme field name is et_variation_gallery_images
(to get variation gallery for any product variation we used next line of php code -> get_post_meta( $product->get_id(), 'et_variation_gallery_images', true );
Note: $product should be defined or global variable )
2/ If you check xstore/framework/woo.php you may find how we added compatibility with WooCommerce Skroutz & BestPrice XML Feed plugin (please, look for the ‘etheme_compatibility_webexpert_skroutz_xml_variation_gallery_images’ function )
Otherwise, if you cannot contact with plugin’s authors to ask them for ‘How to make own attribute of custom field ‘et_variation_gallery_images’, you may provide admin+ftp access in the private content area and we will try to help you.
We suggest you to try next snippet to be added in your child-theme/functions.php
add_filter('woo_feed_custom_fields', 'add_etheme_variation_gallery_image_to_feed', 10, 3);
function add_etheme_variation_gallery_image_to_feed($fields, $product, $variation) {
$image_gallery = get_post_meta($variation->get_id(),'et_variation_gallery_images', true);
if ( (bool)$image_gallery ) {
$fields['variation_image_gallery'] = $image_gallery;
}
return $fields;
}
We provided you above the most detalized instructions with all details possible from our side. Anyway if you still needed any assistance we are happy to help you.
Kind Regards,
Jack Richardson
The 8theme’s team
Hi @Razi,
Based on the code your share, you can try with this edited code:
add_filter('woo_feed_custom_fields', 'add_variation_image_gallery_to_feed', 10, 3);
function add_variation_image_gallery_to_feed($fields, $product, $variation) {
if ( $product->is_type( 'variation' ) ) {
$has_variation_gallery_images = (bool) get_post_meta( $product->get_id(), 'et_variation_gallery_images', true );
if ( $has_variation_gallery_images ) {
$gallery_images = (array) get_post_meta( $product->get_id(), 'et_variation_gallery_images', true );
$fields['variation_image_gallery'] = $gallery_images;
}
}
return $fields;
}
Best regards,
The 8Theme Team.
Thank you for the detailed answer.
This plugin: WooCommerce Skroutz & BestPrice XML Feed plugin is not updated since years so I cannot use it.
I tried to paste the code in funtion.php but thats didnt work.
The plugin I use is most famous plugin for the Feed XMl, its my humble request to please add the feature as I am adding my WP admin access and FTP access in the Private area.
Waiting for your response eagerly.
Dear @Razi,
We have provided you with the most comprehensive information available regarding the Variation Images feature of our theme. If the code we suggested does not resolve your issue, we recommend contacting the plugin developers directly. They possess a deeper understanding of the necessary filters of their plugin’s code for your specific situation. Based on the details we provided in our previous correspondence, they should be able to offer a working solution tailored to your needs.
As previously mentioned, we cannot guarantee full compatibility with all plugins globally, but we have endeavored to assist you to the best of our abilities.
Please reach out to the plugin developers using the following link, as you have done before: https://www.8theme.com/topic/no-attribute-for-the-variation-gallery-image/#post-412161.
Best regards,
Jack Richardson
The 8Theme Team
I have try to contact them they are not responding and at the end I contacted to you.
also as you mention to provide the access of FTP and WP access and you will help thats why I shared the detail with you please check the details help me out.
Dear @Razi,
We understand your frustration, but please be assured that we’ve done everything within our capabilities to assist you. The issue you’re experiencing is related to the plugin, and at this point, the best course of action is to seek support from the plugin’s developers, as they are the ones who can offer a precise solution.
We’ve provided you with the necessary information and guidance to help you communicate effectively with them. Since you purchased the plugin, you should have access to their support, and we encourage you to reach out to them and patiently wait for their response.
We would appreciate it if you could update us once you receive their feedback or if you require any further assistance regarding the integration with our theme. Our support adheres strictly to Envato’s policy, which outlines what we can and cannot provide. For more details, please refer to the Envato support policy here: https://themeforest.net/page/item_support_policy.
Thank you for your understanding.
Kind regards,
Jack Richardson
The 8theme’s team
Dear @Razi,
We hope this message finds you well.
Private Content
Warm Regards,
The 8Theme Team
Private Content Area.
Private Content Area.
Dear Razi,
We trust our theme is enhancing your experience. Taking a brief moment to rate it with a glowing 5 stars on ThemeForest would be immensely appreciated. Your feedback holds significant value for us.
Click here to rate now: https://themeforest.net/downloads
Thank you sincerely for your ongoing support!
Best Regards,
The 8Theme Team
The issue related to '‘No Attribute for the Variation gallery Image’' has been successfully resolved, and the topic is now closed for further responses