[WordPress] 外掛分享: ShoppingFeed

首頁外掛目錄 › ShoppingFeed
70+
安裝啟用
★★★☆☆
3.7/5 分(3 則評價)
126 天前
最後更新
問題解決
WordPress 5.7+ PHP 7.3+ v7.1.0 上架:2019-06-27

內容簡介

3>插件介紹

這是一款 WordPress 連接控制器插件,可用於 ShoppingFeed 快速在 Amazon、Ebay、Google 和數百個國際市場上出售。

需求條件
伺服器:

PHP 版本必須為 5.6 或以上
必須啟用 PHP cURL 擴展程式

WordPress:

核心版本必須為 5.2 或以上
WooCommerce 版本必須為 3.8 或以上

運送追蹤支援

目前,只有支援以下訂單追蹤外掛程式:

Advanced Shipment Tracking : https://wordpress.org/plugins/woo-advanced-shipment-tracking/
Advanced Shipment Tracking PRO : https://www.zorem.com/product/woocommerce-advanced-shipment-tracking/
Woocommerce Shipment Tracking Pro : https://www.pluginhive.com/product/woocommerce-shipment-tracking-pro/

設定

要正確使用此插件,您需要根據您的偏好設定它的 Feed、運送和訂單。

可用的 Hooks

您可以在下面的程式碼中使用以下片段來添加到您的主題 functions.php 檔案或自定義的插件檔案中

分類

預設情況下,我們支援 product_cat 作為辨識產品類別的稅目縮寫,您可以使用以下程式碼重置它:

add_filter( 'shopping_feed_custom_category_taxonomy', 'your_custom_category_function' );

/** @return string */
function your_custom_category_function() {
return 'your_custom_category_slug';
}

品牌

預設情況下,我們不支援任何自訂外掛程式來辨識產品的品牌,但您可以使用以下程式碼設置自定的稅目縮寫:

add_filter( 'shopping_feed_custom_brand_taxonomy', 'your_custom_brand_function' );

/** @return string */
function your_custom_brand_function() {
return 'your_custom_brand_slug';
}

EAN

預設情況下,我們不支援任何自訂外掛程式來識別產品 EAN 碼,但您可以使用以下程式碼設置自定的稅目縮寫:

add_filter( 'shopping_feed_custom_ean', 'your_custom_ean_function' );

/** @return string */
function your_custom_ean_function() {
return 'your_custom_ean_slug';
}

Feed 的產品列表參數

為了匯出飼料,我們使用插件設定,如果您想添加/使用特定的參數,您可以使用以下程式碼

add_filter( 'shopping_feed_products_custom_args', 'your_custom_args_function' );

/** @return array */
function your_custom_args_function() {
//array of args
return array();
}

您可以在WooCommerce documentation中找到所有可用的參數。

要匯入的訂單(狀態)

預設情況下,我們會匯入具有“waiting_shipment” 狀態的訂單,如果您想匯入更多狀態或特定的狀態,您可以使用以下程式碼

add_filter( 'shopping_feed_orders_to_import', 'your_custom_statuses_function' );

/** @return array */
function your_custom_statuses_function() {
// array of statuses (strings)
return array();
}

可用的狀態:created、waiting_store_acceptance、refused、waiting_shipment、shipped、cancelled、refunded、partially_refunded、partially_shipped

更多資訊請參閱這裡

追蹤號碼

外掛標籤

開發者團隊

⬇ 下載最新版 (v7.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「ShoppingFeed」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

WordPress connection Controller Plugin for ShoppingFeed – Sell on Amazon, Ebay, Google, and 1000’s of international marketplaces
Requirements
Server :

PHP version 7.3 or above
PHP cURL extension is activated

WordPress :

Core version 5.7 or above
WooCommerce version 7.0 or above

Orders fulfilled by the 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 :

Orders fulfilled by marketplace : import orders even if they are fulfilled by the marketplace.
Fulfilled by marketplace order’s status : select the status used for orders fulfilled by marketplaces when they are imported.

Shipment tracking support
For now, the only shipment tracking plugins supported are :

Advanced Shipment Tracking : https://wordpress.org/plugins/woo-advanced-shipment-tracking/
Advanced Shipment Tracking PRO : https://www.zorem.com/product/woocommerce-advanced-shipment-tracking/
Woocommerce Shipment Tracking Pro : https://www.pluginhive.com/product/woocommerce-shipment-tracking-pro/

Configuration
To start using the plugin correctly, you need to configure it with your preferences (Feed, Shipping, Orders)
Available hooks
With this snippets below can be added to your theme’s functions.php file or your custom plugin file
Categories
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';
}

Brands
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';
}

EAN
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';
}

Feed’s products list args
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
Orders to import (statuses)
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

more details here
Tracking number
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’
}

Tracking url
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’
}

Extra Fields
Add extra fields for products in product feed
If you want to add an extra fields to products in your XML Feed, you can use the following snippet :
add_filter( 'shopping_feed_extra_fields', 'sf_product_extra_fields', 10, 2 );

/**
* Include additional fields for products in product feed.
*
* @param array $fields
* @param \WC_Product $product
*
* @return array
*/
function sf_product_extra_fields( $fields, $product ) {
$fields[] = array(
'name' => 'my_custom_product_field',
'value' => 'my_custom_value',
);

return $fields;
}

Add extra fields for variations in product feed
If you want to add an extra fields to variations in your XML Feed, you can use the following snippet :
add_filter( 'shopping_feed_variation_extra_fields', 'sf_product_variation_extra_fields', 10, 2 );

/**
* Include additional fields for variation in product feed.
*
* @param array $fields
* @param \WC_Product $variation
*
* @return array
*/
function sf_product_variation_extra_fields( $fields, $variation ) {
$fields[] = array(
'name' => 'my_custom_variation_field',
'value' => 'my_custom_value',
);

return $fields;
}

Variation Images
Main image
By default the variation’s thumbnail is used as the main image in the feed.
You can customize the main image using the filter “shopping_feed_variation_main_image”.
add_filter( 'shopping_feed_variation_main_image', 'your_custom_variation_main_images_function', 10, 3 );

/**
* Use the parent's thumbnail if the variation doesn't have one.
*
* @param string $main_image The main image of the variation.
* @param \WC_Product_Variation $variation The variation.
* @param \WC_Product_Variable $product The product.
*
* @return string
*/
function your_custom_variation_main_images_function( $main_image, $variation, $product ) {
if ( empty( $main_image ) && has_post_thumbnail( $product->get_id() ) ) {
$main_image = get_the_post_thumbnail_url( $product->get_id(), 'full' );
}

return $main_image;
}

Additional images
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;
}

延伸相關外掛

文章
Filter
Apply Filters
Mastodon