Announcement

Collapse
No announcement yet.

PayPal shipping for second item in cart not working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PayPal shipping for second item in cart not working

    If you use PayPal on your own website for a payment button that works off their own cart, you are familiar with this code:

    <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" class="formmargin">
    <input type="hidden" name="add" value="1"> <input type="hidden" name="cmd" value="_cart">
    <input type="hidden" name="business" value="payments@________.com">
    <input type="hidden" name="item_name" value="_____________">
    <input type="hidden" name="amount" value="15.99">
    <input type="hidden" name="shipping" value="3.95">
    <input type="hidden" name="shipping2" value="3.95">
    <input type="hidden" name="no_shipping" value="0">
    <input type="hidden" name="return" value="http://_________.com/thanks-payment.htm">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="lc" value="US">
    <input type="hidden" name="bn" value="PP-ShopCartBF">
    <input type="submit" value="Purchase" onmouseover="this.className='buttonon-order'" onmouseout="this.className='button-order'" class="button-order">
    <br>
    <!-- SHP Options -->
    <select name="shipping" style="margin-bottom: 5px;">
    <option selected value="3.95">
    USPS Domestic $3.95</option>
    <option value="6.95">USPS Foreign $6.95</option>
    </select>
    </form>

    At the moment, due to PayPal internal error this line
    <input type="hidden" name="shipping2" value="3.95">
    is not working - shipping charges on the second item placed in the PayPal cart are not working. Shipping is being added only for the first item placed in the cart, and sometimes not even for that first item. I filed a PayPal Developer's report on the issue, and PayPal is working on it.
    Please read the forum rules before you post.

    And if you need extra help:
    Modee Tech Support

  • #2
    The solution - which I discovered myself, PayPal was of no help they kept offering incorrect coding suggestions, after first stating that it was an internal PayPal issue and that all the code was fine, was to remove this line of code:
    <input type="hidden" name="shipping" value="3.95">

    and leave only this line below it intact:
    <input type="hidden" name="shipping2" value="3.95">

    Now, that makes no sense - why the secondary prompt for shipping should remain and not the first, and why this allows the system to charge for shipping on the first item and all subsequents, I cannot say. Nor can I say why the script with both lines was working until the end of 2017, and then stopped working. But anyway, removing the first shipping line and retaining the shipping2 line is the solution, at present.
    Please read the forum rules before you post.

    And if you need extra help:
    Modee Tech Support

    Comment

    Working...
    X