Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need a bit of code to pass a true quantity to PayPal

    1) Project Details: (be as specific as possible):

    Hello!

    We have our shipping profiles set up in PayPal based on the fact that we can send quite a few for a similar shipping price. It's based on quantity, and the price doesn't really increase until you get to 6 or so.

    The problem is, on one page, we have packages at discounted prices (because we couldn't do a percentage discount for one group of items in the native PayPal cart).

    So, when a customer buys a package of 6, or 9 or 12 or whatever, they're only charged the shipping price for one item.

    I tried changing our current system using the generously shared code here:
    http://capleswebdev.com/paypal/discnt.php (the second one) but the quantity being changed like that does not work. The PayPal cart still thinks it's got a single item in. When I change the quantity of packages in the PayPal cart, the shipping fee changes correctly.

    We basically need that script, but working as it's meant to work, so that PayPal can know the actual number of items ordered.

    2) Payment method/ details (Paypal, check? Timeline?):

    Payment by PayPal, needed within 24 hours if possible because people get pretty (understandably) annoyed that they have to be billed an additional shipping amount.

    We've reverted to the old clumsy system, the only one we could use with PayPal as it was. I also have a testing page that contains the Caples script. (NB: I did contact Caples to offer payment for help, but received no reply.)

    If it's not javascript you want to use, we're open to something else but we can't use a database.

    Will pay $30 for the hour if you can nail it.

    I'll send the markup/code in question once the project is agreed. There is currently no (relevant) script on the page, it's all PayPal cart code + html/css.

  • #2
    Regular Coder
    Join Date
    Apr 2012
    Posts
    165
    Thanks
    1
    Thanked 39 Times in 39 Posts
    Not sure how your selection process operates (dropdown menu, checkbox, radio buttons, etc.) But why not just use an onclick or onchange function (whatever is applcable to your current setup) and then adjust the shipping price accordingly and have it send that new value to PayPal?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •