我想設置我的貝寶按鈕(其中約5個),以合併運費價格。例如,第一件商品是10美元,那麼每個附加商品額外5美元。 我知道這可以做一個單一的產品(例如,如果我買2個蘋果,運費是15美元),但我希望如果我買1個蘋果和1個檸檬,運費是15美元(目前貝寶正在製作這20美元)。 可以這樣做嗎?貝寶添加到購物車按鈕 - 合併運輸
0
A
回答
0
是的,你可以通過調整值,這三個變量實現這一目標:
航運 --->這將在車只加一個時間,第一項
shipping2 --->這將每個附加項以卡車添加時間添加
漢dling_cart --->這對購物車中的所有物品都很常見。
在你的情況下,這些變量的值將是:
運費= 5.00
shipping2 = 5.00
handling_cart = 5.00
應該調整這些設置。我已經包含了兩個按鈕的示例代碼來演示:
第一個按鈕:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<input type="hidden" name="amount" value="2.00">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="Lemon">
<input type="hidden" name="item_number" value="Lemon123">
<input type="hidden" name="shipping" value="5.00">
<input type="hidden" name="shipping2" value="5.00">
<input type="hidden" name="handling_cart" value="5.00">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
</form>
第二個按鈕:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<input type="hidden" name="amount" value="2.00">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="Apple">
<input type="hidden" name="item_number" value="Apple123">
<input type="hidden" name="shipping" value="5.00">
<input type="hidden" name="shipping2" value="5.00">
<input type="hidden" name="handling_cart" value="5.00">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
</form>
0
感謝埃舍姆,我們已經制定了解決方案。 我沒有意識到保護按鈕之間存在差異 - 我總是從paypal帳戶生成paypal按鈕。 如果添加到html代碼中,您提到的變量對受保護的按鈕不能正常工作,但是在創建按鈕的步驟3下檢查了「高級變量」按鈕的功能。 我們增加了這一點:需要
shipping2=5
handling_cart=5
其他的設置包括:
- 當編輯產品按鈕 - 使用特定的郵資($ 5)
- 在郵資計算頁面上,確保「點擊這裏允許交易爲基礎的郵資價值「檢查
嗨esham,感謝您的意見,但它並沒有很好的工作。 使用你的例子,這只是使每個單獨的項目5美元。所以一個蘋果是5美元,2個蘋果是10美元,2個蘋果,檸檬是15美元。 所以看起來好像「handling_cart」函數沒有效果。 – Simon 2014-10-09 01:44:48
HI Simon,現在您可以嘗試上面的代碼,因爲它現在工作正常。實際上昨天在PayPal的最後一個問題上,它忽略了「handling_cart」變量的值。現在已經修復了。 – Eshan 2014-10-10 09:26:39