Skip to content

Commit aa12897

Browse files
committed
chore: release 7.1.0
1 parent 231f912 commit aa12897

File tree

4 files changed

+120
-22
lines changed

4 files changed

+120
-22
lines changed

.plugin-data

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version": "7.0.0",
2+
"version": "7.1.0",
33
"slug": "shopping-feed"
44
}

readme.md

Lines changed: 59 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
* Contributors: ShoppingFeed, BeAPI
44
* Tags: shoppingfeed, marketplace, woocommerce, products feed, import orders
55
* Description: WordPress connection Controller Plugin for ShoppingFeed – Sell on Amazon, Ebay, Google, and 1000’s of international marketplaces
6-
* Stable tag: 7.0.0
7-
* Version: 7.0.0
6+
* Stable tag: 7.1.0
7+
* Version: 7.1.0
88
* Requires PHP: 7.3
99
* Requires at least: 5.7
10-
* Tested up to: 6.7
10+
* Tested up to: 6.8
1111
* WC requires at least: 7.0
1212
* WC tested up to: 9.6.0
1313
* License: GPL v2 or later
@@ -19,6 +19,16 @@
1919
2020
## Changelog
2121

22+
### 7.1.0
23+
24+
#### Enhancements
25+
26+
* **Feed** : Allow extra attributes to be added to the feed for variations.
27+
28+
#### Fixes
29+
30+
* **Order** : Check for reference alias in itemsReferencesAliases when importing order.
31+
2232
### 7.0.0
2333

2434
Adds support for multilingual product feeds.
@@ -330,16 +340,55 @@ function your_custom_tracking_url_function() {
330340
return ‘your_custom_order_meta_key’
331341
}
332342
```
333-
334343
### Extra Fields
335-
If you want to add an extra fields to your XML Feed, you can use the following snippet
344+
345+
#### Add extra fields for products in product feed
346+
347+
If you want to add an extra fields to products in your XML Feed, you can use the following snippet :
348+
336349
```php
337-
add_filter( 'shopping_feed_extra_fields', 'your_custom_fields_function', 10, 2 );
350+
add_filter( 'shopping_feed_extra_fields', 'sf_product_extra_fields', 10, 2 );
338351

339-
/** @return array */
340-
function your_custom_fields_function($fields, $wc_product) {
341-
$fields[] = array('name'=>'my_field', 'value'=>'my_value');
342-
return $fields;
352+
/**
353+
* Include additional fields for products in product feed.
354+
*
355+
* @param array $fields
356+
* @param \WC_Product $product
357+
*
358+
* @return array
359+
*/
360+
function sf_product_extra_fields( $fields, $product ) {
361+
$fields[] = array(
362+
'name' => 'my_custom_product_field',
363+
'value' => 'my_custom_value',
364+
);
365+
366+
return $fields;
367+
}
368+
```
369+
370+
#### Add extra fields for variations in product feed
371+
372+
If you want to add an extra fields to variations in your XML Feed, you can use the following snippet :
373+
374+
```php
375+
add_filter( 'shopping_feed_variation_extra_fields', 'sf_product_variation_extra_fields', 10, 2 );
376+
377+
/**
378+
* Include additional fields for variation in product feed.
379+
*
380+
* @param array $fields
381+
* @param \WC_Product $variation
382+
*
383+
* @return array
384+
*/
385+
function sf_product_variation_extra_fields( $fields, $variation ) {
386+
$fields[] = array(
387+
'name' => 'my_custom_variation_field',
388+
'value' => 'my_custom_value',
389+
);
390+
391+
return $fields;
343392
}
344393
```
345394

readme.txt

Lines changed: 58 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
Contributors: ShoppingFeed, BeAPI
33
Tags: shoppingfeed, marketplace, woocommerce, products feed, import orders
44
Description: 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
77
Requires PHP: 7.3
88
Requires at least: 5.7
9-
Tested up to: 6.7
9+
Tested up to: 6.8
1010
WC requires at least: 7.0
1111
WC tested up to: 9.6.0
1212
License: 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

2232
Adds 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

shoppingfeed.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Author URI: https://www.shopping-feed.com/
88
* Text Domain: shopping-feed
99
* Domain Path: /languages
10-
* Version: 7.0.0
10+
* Version: 7.1.0
1111
* Requires at least: 5.7
1212
* Requires PHP: 7.3
1313
* WC requires at least: 5.1.0
@@ -26,7 +26,7 @@
2626
require_once plugin_dir_path( __FILE__ ) . '/vendor/autoload.php';
2727
}
2828

29-
define( 'SF_VERSION', '7.0.0' );
29+
define( 'SF_VERSION', '7.1.0' );
3030
define( 'SF_DB_VERSION_SLUG', 'SF_DB_VERSION' );
3131
define( 'SF_DB_VERSION', '1.0.0' );
3232
define( 'SF_UPGRADE_RUNNING', 'SF_UPGRADE_RUNNING' );

0 commit comments

Comments
 (0)