Title: Easy Cart
Author: zeshanb
Published: <strong>2021 年 3 月 5 日</strong>
Last modified: 2026 年 6 月 3 日

---

搜尋外掛

![](https://ps.w.org/easy-cart/assets/icon-256x256.png?rev=2492412)

# Easy Cart

 由 [zeshanb](https://profiles.wordpress.org/zeshanb/) 開發

[下載](https://downloads.wordpress.org/plugin/easy-cart.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/easy-cart/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/easy-cart/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/easy-cart/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/easy-cart/#developers)

 [技術支援](https://wordpress.org/support/plugin/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.

Use the following attributes to define your add_to_cart products:

 1. itemid
 2. product_name
 3. product_desc
 4. product_qty
 5. price

Here is a example usage of add_to_cart shortcode using all the attributes. Be sure
to use single quotes:

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

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.

## 螢幕擷圖

[⌊After activating the plugin create a page with name (also known as slug) cart 
and add [easy_cart /] and [empty_cart /] shortcodes.⌉⌊After activating the plugin
create a page with name (also known as slug) cart and add [easy_cart /] and [empty_cart/]
shortcodes.⌉[

After activating the plugin create a page with name (also known as slug) cart and
add [easy_cart /] and [empty_cart /] shortcodes.

[⌊On other pages you can create add to cart buttons using [add_to_cart /] shortcodes
using the following attributes - itemid, product_name, product_desc, product_qty.⌉⌊
On other pages you can create add to cart buttons using [add_to_cart /] shortcodes
using the following attributes - itemid, product_name, product_desc, product_qty
.⌉[

On other pages you can create add to cart buttons using [add_to_cart /] shortcodes
using the following attributes – itemid, product_name, product_desc, product_qty.

[⌊Add to cart button takes on the button styling from your Wordpress theme.\⌉⌊Add
to cart button takes on the button styling from your Wordpress theme.\⌉[

Add to cart button takes on the button styling from your Wordpress theme.\

[⌊Cart page displays and totals the items selected using add to cart button.⌉⌊Cart
page displays and totals the items selected using add to cart button.⌉[

Cart page displays and totals the items selected using add to cart button.

[⌊This is the JSON error in the editor you can simply ignore.⌉⌊This is the JSON 
error in the editor you can simply ignore.⌉[

This is the JSON error in the editor you can simply ignore.

[⌊Use shortcode blocks and column block to create cart page slug.⌉⌊Use shortcode
blocks and column block to create cart page slug.⌉[

Use shortcode blocks and column block to create cart page slug.

[⌊Minimum permalink setting uses post name for the cart to function properly⌉⌊Minimum
permalink setting uses post name for the cart to function properly⌉[

Minimum permalink setting uses post name for the cart to function properly

[⌊Add to cart buttons using shortcode blocks. Notice there are no quote marks used
for product_qty and price.⌉⌊Add to cart buttons using shortcode blocks. Notice there
are no quote marks used for product_qty and price.⌉[

Add to cart buttons using shortcode blocks. Notice there are no quote marks used
for product_qty and price.

[⌊Using Gutenberg shortcode⌉⌊Using Gutenberg shortcode⌉[

Using Gutenberg shortcode

## 安裝方式

 1. Unzip the plugin archive into plugins directory
 2. Login to WordPress admin dashboard
 3. Mouse over plugins on left dashboard menu and click installed plugins
 4. Click Activiate under “Easy Cart”
 5. Click Permalinks under settings and select postname or custom configure to allow
    for page slug in URL
 6. Create a page with slug “cart” in WordPress Admin
 7. Edit cart page and add shortcode [easy_cart /] and [empty_cart /]
 8. On other posts or pages add [add_to_cart /] shortcodes

## 常見問題集

### There is no checkout?

sorry, not at the moment. Easy Cart is GPLv2 and the code is self explanitory.

### Why is there a JSON error notification when I add [easy_cart /] shortcode on cart page?

You can ignore JSON error. When testing your add to cart button be sure to close
the browser window entirely and open a new browser window. This will create a new
session. You can also click on clear cart link. When testing your add to cart buttons
also remember to monitor easy-cart cookie by pressing [shift] + [F9] on Firefox 
browser.

### What about templates?

Use standard WordPress templates. You can create a wordpress page template for the
cart display e.g “pagetemplate-cart.php”. Even the cart uses basic html table tags
to display items and the item list table may be stylized to your desire.

### What about the use of cookie?

You can add the following text to your sites privacy policy:
 This site uses “easy-
cart” cookie to allow this site to temporarily store and display your item selections.
The sites database auto garbage collects and deletes your selection after sixty 
minutes.

### How can I create my own checkout?

In a pagetemplate-cart.php file in your wordpress you may do as you wish with the
total amount and the post requests. Use the results and pass to a checkout slug,
pagetemplate-checkout.php. Have fun!

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Easy Cart〉的開發相關工作。

參與者

 *   [ zeshanb ](https://profiles.wordpress.org/zeshanb/)

[將〈Easy Cart〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/easy-cart)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/easy-cart/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/easy-cart/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/easy-cart/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/easy-cart/)。

## 變更記錄

#### 1.9

 * Fixed usage of text domain in block patterns
 * Removed table attribute injections in add to cart shortcode

#### 1.8

 * Registered shortcodes as block patterns

#### 1.3

 * Attributes itemid, product_name, product_desc required single quotes

#### 1.2

 * Added output buffer to support shortcode content appearance where shortcode is
   placed using editor.

#### 1.1

 * Add to cart buttons support full site url. Support for easy cart usage in subfolder
   wordpress installations.

#### 1.0

 * List items and display total. Use shortcode to create add to cart buttons and
   display cart

## 中繼資料

 *  版本 **1.9**
 *  最後更新 **3 個月前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.5 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0.4**
 *  PHP 版本需求 ** 8.0 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/easy-cart/)
 * 標籤:
 * [sessions](https://tw.wordpress.org/plugins/tags/sessions/)[shopping cart](https://tw.wordpress.org/plugins/tags/shopping-cart/)
   [shortcode](https://tw.wordpress.org/plugins/tags/shortcode/)
 *  [進階檢視](https://tw.wordpress.org/plugins/easy-cart/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/easy-cart/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/easy-cart/reviews/)

## 參與者

 *   [ zeshanb ](https://profiles.wordpress.org/zeshanb/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/easy-cart/)