22Contributors: ShoppingFeed, BeAPI
33Tags: shoppingfeed, marketplace, woocommerce, products feed, import orders
44Description: WordPress connection Controller Plugin for ShoppingFeed – Sell on Amazon, Ebay, Google, and 1000’s of international marketplaces
5- Stable tag: 7.0 .0
6- Version: 7.0 .0
5+ Stable tag: 7.1 .0
6+ Version: 7.1 .0
77Requires PHP: 7.3
88Requires at least: 5.7
9- Tested up to: 6.7
9+ Tested up to: 6.8
1010WC requires at least: 7.0
1111WC tested up to: 9.6.0
1212License: GPL v2 or later
@@ -17,6 +17,16 @@ Version 6.0.0 is a major version, there are several changes and improvements whi
1717
1818== Changelog ==
1919
20+ = 7.1.0 =
21+
22+ #### Enhancements
23+
24+ * **Feed** : Allow extra attributes to be added to the feed for variations.
25+
26+ #### Fixes
27+
28+ * **Order** : Check for reference alias in itemsReferencesAliases when importing order.
29+
2030= 7.0.0 =
2131
2232Adds support for multilingual product feeds.
@@ -336,15 +346,54 @@ function your_custom_tracking_url_function() {
336346`
337347
338348### Extra Fields
339- If you want to add an extra fields to your XML Feed, you can use the following snippet
349+
350+ #### Add extra fields for products in product feed
351+
352+ If you want to add an extra fields to products in your XML Feed, you can use the following snippet :
340353
341354`
342- add_filter( 'shopping_feed_extra_fields', 'your_custom_fields_function ', 10, 2 );
355+ add_filter( 'shopping_feed_extra_fields', 'sf_product_extra_fields ', 10, 2 );
343356
344- /** @return array */
345- function your_custom_fields_function($fields, $wc_product) {
346- $fields[] = array('name'=>'my_field', 'value'=>'my_value');
347- return $fields;
357+ /**
358+ * Include additional fields for products in product feed.
359+ *
360+ * @param array $fields
361+ * @param \WC_Product $product
362+ *
363+ * @return array
364+ */
365+ function sf_product_extra_fields( $fields, $product ) {
366+ $fields[] = array(
367+ 'name' => 'my_custom_product_field',
368+ 'value' => 'my_custom_value',
369+ );
370+
371+ return $fields;
372+ }
373+ `
374+
375+ #### Add extra fields for variations in product feed
376+
377+ If you want to add an extra fields to variations in your XML Feed, you can use the following snippet :
378+
379+ `
380+ add_filter( 'shopping_feed_variation_extra_fields', 'sf_product_variation_extra_fields', 10, 2 );
381+
382+ /**
383+ * Include additional fields for variation in product feed.
384+ *
385+ * @param array $fields
386+ * @param \WC_Product $variation
387+ *
388+ * @return array
389+ */
390+ function sf_product_variation_extra_fields( $fields, $variation ) {
391+ $fields[] = array(
392+ 'name' => 'my_custom_variation_field',
393+ 'value' => 'my_custom_value',
394+ );
395+
396+ return $fields;
348397}
349398`
350399
0 commit comments