Created by: Shopping-Feed
WordPress connection Controller Plugin for ShoppingFeed – Sell on Amazon, Ebay, Google, and 1000’s of international marketplaces
The plugin won’t import orders fulfilled by marketplaces by default.
Options are available in the plugin settings to include those orders during the import.
They can be found in the “Orders” tab :
For now, the only shipment tracking plugins supported are :
To start using the plugin correctly, you need to configure it with your preferences (Feed, Shipping, Orders)
With this snippets below can be added to your theme’s functions.php file or your custom plugin file
By default, we support product_cat
as taxonomy slug to identify product’s categories, you can override it using this snippet :
add_filter( 'shopping_feed_custom_category_taxonomy', 'your_custom_category_function' );
/** @return string */
function your_custom_category_function() {
return 'your_custom_category_slug';
}
By default, we don’t support any custom plugin for product’s brand, you can set custom taxonomy slug to identify it by using this snippet :
add_filter( 'shopping_feed_custom_brand_taxonomy', 'your_custom_brand_function' );
/** @return string */
function your_custom_brand_function() {
return 'your_custom_brand_slug';
}
By default, we don’t support any custom plugin for product EAN, you can set custom taxonomy slug to identify it by using this snippet :
add_filter( 'shopping_feed_custom_ean', 'your_custom_ean_function' );
/** @return string */
function your_custom_ean_function() {
return 'your_custom_ean_slug';
}
To export the feed, we use the plugin’s setting, if you want to add/use specific args, you can use the following snippet
add_filter( 'shopping_feed_products_custom_args', 'your_custom_args_function' );
/** @return array */
function your_custom_args_function() {
//array of args
return array();
}
You can find all available args here
WooCommerce documentation
By default, we import orders with ‘waiting_shipment’ status, if you want to import more statuses or a specific one, you can use the following snippet
add_filter( 'shopping_feed_orders_to_import', 'your_custom_statuses_function' );
/** @return array */
function your_custom_statuses_function() {
// array of statuses (strings)
return array();
}
Status available : created, waiting_store_acceptance, refused, waiting_shipment, shipped, cancelled, refunded, partially_refunded, partially_shipped
If you want to set a custom meta key to identify it, you can use the following snippet
add_filter( 'shopping_feed_tracking_number', 'your_custom_tracking_number_function' );
/** @return string */
function your_custom_tracking_number_function() {
return ‘your_custom_order_meta_key’
}
If you want to set a custom meta key to identify it, you can use the following snippet
add_filter( 'shopping_feed_tracking_link', 'your_custom_tracking_url_function' );
/** @return string */
function your_custom_tracking_url_function() {
return ‘your_custom_order_meta_key’
}
If you want to add an extra fields to your XML Feed, you can use the following snippet
add_filter( 'shopping_feed_extra_fields', 'your_custom_fields_function', 10, 2 );
/** @return array */
function your_custom_fields_function($fields, $wc_product) {
$fields[] = array('name'=>'my_field', 'value'=>'my_value');
return $fields;
}
By default, we don’t support any custom plugin for adding images to WC Product Variation, with this filter you can set the desired images to each variation, you can use the following snippet
add_filter( 'shopping_feed_variation_images', 'your_custom_variation_images_function', 10, 3 );
/**
* @param array $images
* @param WC_Product $wc_product
* @param int $variation_id
*
* @return array
*/
function your_custom_variation_images_function( $images, $wc_product, $variation_id ) {
$images[] = 'https://domain.com/image1.jpg';
$images[] = 'https://domain.com/image2.jpg';
return $images;
}