0

私は 16 個の製品を持っており、そのすべてに個別のカートに追加ボタンが割り当てられています。顧客が希望の数量を入力して [カートに追加] をクリックすると、製品がショッピング カートに追加され、顧客は対応する PayPal ショッピング カートに移動します。製品ごとに個別のボタンを作成しなくても、同じアクションを実行する方法があるかどうか疑問に思っていました。

これは私のボタンの1つのコードです:

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
                        <input type="hidden" name="cmd" value="_s-xclick">
                        <input type="hidden" name="hosted_button_id" value="93XBL9HZ8D5MG">
                        <table>
                        <tr><td><input type="hidden" name="add" value="1"></td></tr><tr><td>
                        <input type="hidden" name="item_name" value="AR.VIN.001 - Unframed">
                        Qty <input type="text" name="quantity" maxlength="5" value="1" style="position: relative; width:30px; height: 23px; top: 25px; left: 35px;">

                            </table>
                        <input type="image" src="./img/button.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online."  style="position:relative; left: 50px; top: 0px;">
                        <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
                    </form>'
4

2 に答える 2