Go Back   CodingForums.com > Web Projects and Services Marketplace > Web Projects > Small projects (quick fixes and changes)

Notices

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-05-2012, 01:23 AM   PM User | #1
johnny b
New to the CF scene

 
Join Date: Jun 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
johnny b is an unknown quantity at this point
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.
johnny b is offline   Reply With Quote
Old 06-06-2012, 12:53 AM   PM User | #2
EpicWebDesign
Regular Coder

 
Join Date: Apr 2012
Posts: 165
Thanks: 1
Thanked 39 Times in 39 Posts
EpicWebDesign will become famous soon enough
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?
EpicWebDesign is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:24 PM.


Advertisement
Log in to turn off these ads.