查詢中心 - 個人帳戶
  • 主頁
  • 付款和轉帳
  • 糾紛申訴和限制
  • 我的帳戶
  • 我的錢包
  • 登入和安全資訊
  • 賣家工具

How do I add user selection options to my PayPal button?

To add option fields to pass through additional information (such as text), use our four option variables: on0, os0, on1, and os1. These proprietary variables must be used in the order shown; otherwise, PayPal's system won't recognize them.

The button generator on the PayPal site lets you create two fields, but if you go into the code and manually edit the lines, you can get three or four option fields.  

Drop-down menus

The four drop-down menus would look like this:

Color

<select name="on0">
   <option value="Grass">Grass Green
   <option value="Periwinkle">Periwinkle
   <option value="Dandelion">Dandelion
   <option value="Vermilion">Vermilion
   <option value="Violet">Violet
</select>


Size

<select name="os0">
   <option value="Large">L
   <option value="Medium">M
   <option value="Small">S
</select>


Cut

<select name="on1">
   <option value="Cut 1">Cut 1
   <option value="Cut 2">Cut 2
</select>


Style

<select name="os1">
   <option value="Style 1">Style 1
   <option value="Style 2">Style 2
</select>


Text fields

The four text fields would look like this:

Color

<input type="text" select name="on0">
</select>


Size

<input type="text" select name="os0">
</select>


Cut

<input type="text" select name="on1">
</select>


Style

<input type="text" select name="os1">
</select>

我們可以透過更多方式提供協助

如你繼續瀏覽,我們將使用 Cookie 來改善和提供為你而設的體驗。可否讓我們同時使用 Cookie 向你展示個人化廣告?了解更多並管理你的 Cookie