前言介紹
- 這款 WordPress 外掛「Automotive Feed Importer」是 2014-06-15 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2014-11-02,距離現在已有 3843 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0.1 以上版本才可以安裝。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
jawaid |
外掛標籤
auto | feed | vehicle | automotiv | inventory |
內容簡介
這個外掛每 10 分鐘會運作一次,將 XML 資訊匯入資料庫。在從資訊源匯入資訊時,它會搜尋股票編號(從資訊源)是否已與任何列表(文章)相關聯。如果沒有,它就會建立一個新的列表,並將從資訊源對應的資料與列表關聯,以股票編號對應到文章 ID。如果找到了相應的關聯,它會更新資料。它還會在列表的編輯畫面上顯示已匯入的資料。
演示
您可以在 http://automotive.site.bz 看到此外掛的運作演示。
測試案例
典型案例:外掛每 10 分鐘運作一次,載入 XML 資訊,並對每個單元進行列表更新。如果資訊源包含任何找不到相關列表的單元,它將建立一個新的列表,然後更新其資料。
第一次載入:
o 當沒有任何列表時:它會為每個從資訊源匯入的單元建立一個新列表。
o 當已經有一些列表時:通常不會有任何單元添加到列表,這種情況下它會為每個單元創建新列表。如果需要將單元與現有列表相關聯,則需要手動介入,或者使用一些自定義腳本進行處理。
未來發展
這個外掛仍有很大的增強和優化空間,因為有些事情是基於假設完成的。我們計劃要進行的增強和優化如下:
1) 目前 XML 資訊源的路徑是硬編碼,固定為 /wp-content/plugins/automotive-feed-import/ 資料夾,就是這個外掛的根目錄。外掛的資料夾名稱可能是任意的,系統將自動選擇,但檔案必須位於這個外掛的根目錄中。因此,可以為外掛創建新的選項/設定頁面,以便用戶可以指定從哪個自訂路徑載入 XML 資訊源。
2) 當創建新列表時,設定:
a) 將文章標題設為製造商和品牌連接,及
b) 文章內容設為編號、製造商、品牌、型號和年份連接
可以在明確、確定且詳細討論需求後進行修改並添加更多資訊。
3) XML 資訊源中的以下欄位還可以通過主題以相同或其他方式提供:
a) 製造商
b) 年份
c) 價格
d) 里程表
e) 顏色
在匯入資料時,外掛不會更改主題已經提供的資訊,而是添加額外資訊。創建新列表時,它會將相同值從資訊源複製到這些欄位中。同樣,這也可以在明確、確定且詳細討論需求後進行修改。
原文外掛簡介
Plugin runs every 10 minutes and import XML feed data into database. When importing data from feed, it searches if stock number (from feed) is associated with any listing (post). If not, it will create a new listing and associate the data from feed with listing by mapping stock number to post id. If it finds the association, it will update the data. It also displays the imported data on edit screen of listing.
Demo
You can see the working demo of plugin at http://automotive.site.bz
Test Cases
Typical case: Plugin runs every 10 minutes and load the XML feed, and update the listings against each unit from feed. If feed contains any unit for which it cannot find associated listing, it will create a new listing and then update data for it.
First time load:
o When there are no listings: It will create a new list against each unit imported from feed.
o When there are already some listings: Typically, there will not be any unit added to listings, in this case it will create new listing for each of the unit. If one needs to associate the units with existing listing, then it requires manual intervention either doing it by hand or by some custom script.
Future Development
There is still plenty of room for enhancement and optimization in this plugin as few things have been done by making assumptions. Enhancements/optimizations that we plan to do are:
1) Currently the XML feed path is hardcoded to be picked from /wp-content/plugins/automotive-feed-import/ folder, which is root of this plugin. Folder name for plugin can be anything, it will pick automatically, but file should be present in this plugins root folder. For this, new options/settings page can be created for plugin so user can specify custom path to pick the XML feed from.
2) At the moment, when creating new listing it sets the
a) Post title as manufacturer and brand concatenated, and
b) Post content as designation, manufacturer, brand, model, and model year concatenated
This can be modified and further information can be set after clarifying, finalizing, and discussing requirements in detail.
3) Following fields in XML feed are also made available by the theme in same or some other manner:
a) Manufacturer
b) Year
c) Price
d) Mileage
e) Color
When importing data, plugin does not touch the data already provided by the theme, instead it adds data resulting in some redundant information. And, when creating new listing it copies the same value from feed into these fields. Again, this can be modified after clarifying, finalizing, and discussing requirements in detail.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Automotive Feed Importer」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
CarQuery API Vehicle Data 》CarQuery API Vehicle Data 外掛使用簡單的短代碼,在您的文章或頁面中添加具有依存關係的車輛年份、品牌、型號和修剪下拉菜單。, 該車輛下拉菜單使用 AJAX ...。