[WordPress] 外掛分享: Easy Cart

首頁外掛目錄 › Easy Cart
全新外掛
安裝啟用
尚無評分
108 天前
最後更新
問題解決
WordPress 5.3+ PHP 5.6+ v1.8 上架:2021-03-04

內容簡介

使用簡單的短代碼來建立一個購物車。

確保您在 WordPress 設置中開啟了使用別名網址,例如:your-domain.tld/slug。設置好了別名後,創建一個頁面,名稱為 /cart。然後編輯該頁面,添加 [easy_cart/] 和 [empty_cart/] 短代碼。

在您的 WordPress 網站的其他文章或頁面中,使用 [add_to_cart/] 短代碼創建加入購物車的按鈕。

使用以下屬性定義您的 add_to_cart 產品:

itemid
product_name
product_desc
product_qty
price

以下是使用所有屬性的 add_to_cart 短代碼的範例:

[add_to_cart itemid=”your-item-id” product_name=”Your product name” product_desc=”description of your product.” product_qty=1 price=1.00 /]

您可以在文章和頁面中嵌入任意數量的 add_to_cart 短代碼。

購物車可以儲存商品並計算總價,但目前版本(1.2)尚未支援結帳功能。

外掛標籤

開發者團隊

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

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

原文外掛簡介

A simple shopping cart using shortcodes.
Be sure your permalinks in WordPress settings supports slug urls e.g. your-domain.tld/slug. Once you have proper permalink setting, Create a page with slug /cart. Then edit the cart page and add [easy_cart /] and [empty_cart /] shortcodes.
Create add to cart buttons using [add_to_cart /] shortcodes on other posts or pages of your WordPress site.
To display cart:
`
[easy_cart /]
`

To display empty cart link on cart page:
`
[empty_cart /]
`

Use the following attributes to define your add_to_cart products:

itemid
product_name
product_desc
product_qty
price

Here is a example usage of add_to_cart shortcode using all the attributes. Use quotes around text but not numbers:
[add_to_cart itemid=your-item-id product_name=”Your product name” product_desc=”description of your product.” product_qty=1 price=1.00 /]
`

[add_to_cart itemid=1111 product_name=”Your product name” product_desc=”description of your product.” product_qty=1 price=1.25 /]
`

You can have as many add_to_cart shortcodes as you like, in posts and pages.
Shopping cart allows you to store items and calculate total but doesn’t allow you to checkout. At least not yet as of version 1.2.

文章
Filter
Apply Filters
Mastodon