
內容簡介
- 購買按鈕為一種能建立 WooCommerce 產品的「立即購買」按鈕的外掛程式。- 您能透過簡單的代碼片段將按鈕放置於頁面上。- 當使用者按下「立即購買」按鈕,使用者會被重新導向至結帳頁面以購買產品。- 要建立一個快速的購買按鈕,請使用下列代碼片段:[buy_button_wc id="1"]。請將 1 替換為您的 WooCommerce 產品編號。- 預設的按鈕文字是「立即購買」。您可以使用「button_text」參數進行自訂。- 若要查看詳細的文件,請造訪「WooCommerce Buy Now Button」外掛程式頁面的文件。
外掛標籤
開發者團隊
原文外掛簡介
Buy Button for WooCommerce is a plugin that can create Buy Now buttons for WooCommerce products. The buttons can be placed on a page with shortcodes. When a visitor clicks on a Buy Now button, they will be redirected to the checkout page to pay for the product.
How to Create a Buy Now Button in WooCommerce
To create a quick buy button, you need to use the following shortcode:
[buy_button_wc id="1"]
Replace 1 with your WooCommerce product id.
Button Text
The default text for the button is “Buy Now”. You can customize it using the “button_text” parameter (optional).
[buy_button_wc id="1" button_text="Pay Now"]
Class
The “class” parameter can be used to add custom CSS classes to a button (optional).
[buy_button_wc id="1" class="btn1"]
[buy_button_wc id="1" class="btn1 btn2"]
[buy_button_wc id="1" class="btn1 btn2 btn3"]
For detailed documentation please visit the WooCommerce Buy Now Button Plugin page.
