[WordPress] 外掛分享: Dizzyjam

首頁外掛目錄 › Dizzyjam
10+
安裝啟用
★★★★
4/5 分(1 則評價)
4778 天前
最後更新
問題解決
WordPress 3.0+ v1.0 上架:2013-02-14

內容簡介

本外掛可整合 DizzyJam 購物平台至 WordPress 網站,透過 DizzyJam API (文件 在此 ) 的公開功能實現此功能。
透過此外掛,您可在 WordPress 網誌上顯示您的 DizzyJam 商品,並允許訪客在網誌頁面上直接購買商品。
您也可以利用此外掛直接在 WordPress 管理頁面上管理您的商店設定與產品。

外掛設定

安裝成功後,您在 WP 管理導覽列上會看到一個名為 Dizzyjam 的項目。此連結會將您帶到外掛程式的管理設定頁面。起初,設定僅有兩個欄位,分別為 Auth ID 和 API Key。您需要填寫您的 DizzyJam API ID 及 Key 值,接著按下取得商店資料按鈕。如果您的憑證正確,外掛應能載入您的商店資訊和其中的產品。

當商店資料成功載入,您也會取得以下設定:

商店 – WordPress 系統要使用的 DizzyJam 商店 ID (如果您在 API ID 下有複數商店)。
國家 – 用於決定商品的預設貨幣和運費。
每頁產品數量 – 顯示單個頁面上的商品數量。
快取時間 – 從 DizzyJam API 取得的產品將會快取此段時間。

將 DizzyJam 產品頁面加入到網頁

在 WordPress 管理頁面上建立新頁面,或開啟現有頁面進行編輯。
在頁面內容中加入簡碼 [dizzyjam]。

加入指向 DizzyJam 購物車的超連結

編輯您的文章範本,並呼叫函式 get_dj_basket(),例如:<?php get_dj_basket() ?>
此函式接受一個選擇性參數,提供包含 [dizzyjam] 簡碼的頁面名稱,例如:<?php get_dj_basket('my-custom-shop-url') ?>
預設情況下,此函式會生成指向頁面名稱 "shop" 的路徑。

編輯 DizzyJam 商店設定

點擊 WordPress 管理導覽列上的 Dizzyjam 按鈕。
點擊位於 DizzyJam 類別下方的「商店概要」連結。
填寫需要的設定並使用更新按鈕設定。

管理產品

點擊 WordPress 管理導覽列上的 DizzyJam 按鈕。
點擊位於 DizzyJam 類別下方的「產品」連結。
您將取得產品清單,您可執行以下動作:

編輯/檢視/移除現有產品
使用頁面頂端的「建立新項目」按鈕新增產品

外掛首頁

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Dizzyjam」→ 直接安裝(推薦)

原文外掛簡介

Plugin for integrating your DizzyJam shop into your WordPress website by taking advantage of the public Dizzyjam API (documented here).
This plugin displays your DizzyJam merchandise on your WordPress blog, and enables the visitors to make purchases directly via the blog pages.
You can also use this plugin to manage your shop (settings and products) directly via the WordPress administration pages.
Plugin Settings
After a successful installation, you should see a Dizzyjam entry in the WP Admin navigation menu. This link will take you to the plugin administrative settings. Initially, the settings consist of two fields – Auth ID and API Key. You need to fill in your DizzyJam API ID and Key values, and then press the Get Shop Data button. If your credentials are valid, the plugin will load the information for your shop(s) along with the products you have in them.
When shop data is successfully loaded, you will also have access to the following settings:

Shop – The ID of the DizzyJam shop that WordPress will work with (in case you have multiple shops under your API ID).
Country – Used for to determine default currency and shipping fees for the merchandise.
Products per page – Number of items to display on a single page.
Cache time – Items retrieved from the DizzyJam API will be cached for this duration.

Adding the DizzyJam product listing to a page

Create a new WordPress page, or open up an existing page for editing in the Administration menu.
Add the shorttag [dizzyjam] inside the page contents.

Adding a link to the DizzyJam basket

Edit your Posts template and call the function get_dj_basket(), as in:
This function takes a single optional argument, which provides the name of the page that contains the [dizzyjam] shorttag, e.g.:
By default the function will generate a path pointing to the page name “shop”

Editing DizzyJam shop settings

Click on the Dizzyjam button in the WordPress Administration menu
Click on the Shop Profile link that will appear under the DizzyJam category
Fill in the desired settings and submit them using the Update button

Managing products

Click on the DizzyJam button in the WordPress Administration menu
Click on the Products link that will appear under the DizzyJam category
You will get a product listing where you can:

Edit/View/Remove the current products
Add new products by using the Create new button near the top of the page

Plugin homepage

延伸相關外掛

文章
Filter
Apply Filters
Mastodon