|
|||||||
| PHP Discussion and technical support for using and deploying PHP based websites. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
paypal cart
Ok Im working on a paypal cart for a client of mine. Now the cart already was on his site he just needs me to make some alterations and to show and hanlde more options in the cart. I have never done a cart before and this is ofcourse my first ever paypal cart. Here is what I have for code so far.
PHP Code:
https://www.paypal.com/cgi-bin/websc...eckout-outside Now my problem is that when you view the cart it only shows 2 of the options you selected. those being Bike and year but nothing else. So what else do I need to do for EVERYTHING to show in the cart. I have tried a number of things and no success yet. Thank you all for the help. |
|
#2
|
|||
|
|||
|
Anyone have any ideas at all?
|
|
#3
|
|||
|
|||
|
Does anyone in here have experiance with paypal carts or know what it is that I need to do with my code to get this working?
|
|
#4
|
|||
|
|||
|
you havnt posted any php code... what exactly do you need help with?
|
|
#5
|
|||
|
|||
|
Well the code I have posted above you can see names of everything along with the stuff at the bottom of the script. My problem is that from what I can tell I have gone by the guidlines on the link I also posted above and for some reason the cart only displayes the first two options on my pages rather then all of the options. So Im trying to see if anyone knows where I went wrong or how to fix this.
|
|
#6
|
|||
|
|||
|
before I step through every line of your code, what do you mean by options? Do you literally mean the <option> tags or do you mean the <select> boxes?
|
|
#7
|
||||
|
||||
|
Unfortunately the PayPal cart doesn't accept more than two options [on0 and on1]. However, you could do what osCommerce does with it's paypal plug in and post only the total of your own cart to paypal. (I.e use a seperate shopping cart from paypal and post the total from that cart to paypal).
The advantages of using your own cart: You determine all of the variables. The disadvantages: Only the cart total and not the cart contents are posted to paypal. Consequently there is a loss of Paypal functionality (eg cart content details not sent to customer by paypal, only cart total). |
|
#8
|
|||
|
|||
|
you could probably write a php script that loops through the options sending each one individually to paypal. this would mean paypal would have to accept get variables tho. Maybe theres a way to do it with javascript.
|
|
#9
|
|||
|
|||
|
Quote:
Quote:
Quote:
I guess bottom line is realy it doesnt matter totaly that "EVERYTHING" has to show in the cart. As it is right now the bike make and year show in it, but if there is a way I could have those two things along with the rest of the "options" for a customers order be mailed to my client, that would work perfectly. Any ideas how this could be done? Thank you all so much for your help. I greatly appreciate it |
|
#10
|
|||
|
|||
|
any of you have any ideas on this?
Thank you |
|
#11
|
|||
|
|||
|
Crazy8,
Have you explored the PayPal development center? They maintain a testing environment called 'Sandbox'. You write your scripts and 'test' them online. There is a detailed pdf 'User Guide' available at that site. https://www.paypal.com/IntegrationCe...c_pdnHome.html Andy |
|
#12
|
|||
|
|||
|
I will surely check that out. Anyone have any answers for my last post?
Thank you guys and/or gals for all your help |
|
#13
|
|||
|
|||
|
Taschen
Well if I could either build my own cart or use a nice 3rd party one (if you know of any good ones let me know) as long as the cart displayed the contents and the total and only paypal displayed the total, even that would work just fine. Im on a REALY tight schedual now so Im kinda scrambling and trying to find a solution. I did look at some 3rd party ones (free of course) but not sure what to do or what to use. any ideas, suggestions, or help would be GREATLY appreciated. |
|
#14
|
|||
|
|||
|
Well I have done some research. Would zencart be a good choice or could that be over kill? All I really need is something that will display everything I need it to which is just stuff in text boxes and drop downs, and it should support paypal. Otherwise I just need something simple and easy to configure and install. What are all of your thoughts? any recomendations of a cart that would "fit the bill" for what I need? I really dont need something huge and fancy.
|
|
#15
|
||||
|
||||
|
Quote:
Sorry that I can't help more than that. |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|