0
ボタンのコードを「買い物かごに入れる」私はショッピングカートとの簡単なウェブサイトを作っていると私はPaypalを使用しています:fromタグでタブを作成しない方法はありますか?
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr"
method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="[email protected]">
<!-- Specify a PayPal Shopping Cart Add to Cart button. -->
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="Birthday - Cake and Candle">
<input type="hidden" name="amount" value="3.95">
<input type="hidden" name="currency_code" value="USD">
<!-- Display the payment button. -->
<input type="image" name="submit"
src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_addtocart_120x26.png"
alt="Add to Cart">
<img alt="" width="1" height="1"
src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif">
</form>
私はまた、右上のショッピングカートのロゴを持っていると私はしたいですロゴをクリックするとカートにアクセスできます。フォームにPaypalショッピングカートにデータを送信し、ショッピングカートのタブ/ウィンドウを開かないようにする方法はありますか? target="_self"
へ
私はそれを試してみましたが、それはちょうど同じタブでペイパルショッピングカートを開きます。あなたがボタンをクリックすると、私はそれがpaypalショッピングカートを開くことを全く望んでいません。私はちょうどそれが1つの項目が追加されているショッピングカートにデータを送信したい、その後、私はカートのロゴをクリックすると、paypalショッピングカートを開きます。 – SpaceFalkor
私は参照してください。それはPayPalだけでは不可能と思われます。彼らは具体的には、カートに商品を追加すると、顧客をカートに誘導すると言います。ショッピングを続けるボタンを設定することができます:https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/html_example_cart/#continue-shopping-on-the-current-merchant-web-page回避策は、独自のカートを実装する(またはカートライブラリを使用する)ことで、カート情報をPayPalのフォームにプッシュすることです。 – pyb
どうもありがとうございました。 – SpaceFalkor