Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
E-commerce, help! - selecting sizes/colours
Old 04-18-2005, 11:11 AM E-commerce, help! - selecting sizes/colours
Average Talker

Posts: 17
Trades: 0
Hi,

Im not sure if this is a php question or simply a html question, so Ill just post here anyway!

Basically I am creating an e-commerce clothing site for someone and they're using paypal as their payment gateway.

However... they need customers to be able to chose their size and colour before checking out. I cant do this directly on paypal so I was wondering if it was possible to create a kind of form for each product with drop down menus for the sizes and colours and then whichever options they choose it would automatically change the url in the 'add to basket' text/image so that my client can see exactly what they want.

Obviously I would then have to set up products with paypal so there is one for each possible option they choose. sounds like a bit of a faff, but I dont know any other way of doing it.

Ive tried contacting paypal but - no answer.

Can anyone help on this - tell me what scripting I would need or even suggest another way of doing it??

Thanks
Lou28 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-18-2005, 12:12 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
I submit the data back to the same page with the new options then create and show the form for the payment gateway.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-18-2005, 12:13 PM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
.If you build the shopping cart yourself in ASP, ASP.NET, PHP or any other server side scripting language, you can then just fire the total off to PayPal.

Here's the URL you need to submit data to:
https://www.paypal.com/cgi-bin/webscr

The parameters you need to pass:
cmd - set to _xclick
business - your PayPal e-mail address
item_name - Name of the item. You can just put 'Acme Order' (or whatever the company is called)
page_style - If you have custom page styles set up in PayPal, this is where you tell it which one to use. Otherwise it'll just choose default.
currency_code - Three letter currency code, like GBP or USD
amount - Ammount you will charge, with no currency formatting (so 3.99 as oppsed to £3.99)
invoice - It's a good idea to give a unique reference number to each order. Put it here to pass it on to PayPal
return - The URL that PayPal will redirect the user to once the transaction is complete
cancel_return - The URL that paypal will redirect the user to if they cancel payment

I have these in my URL... not sure if it needs them or not:
no_shipping=1
no_note=1

There may be more but I don't know of them.

A sample URL might be:
https://www.paypal.com/cgi-bin/websc...om/cancel.aspx

Don't use the Return URL as any confirmation to yourself that the user has paid up. It should just redirect to a 'Thank you for your order' page or simular - this is because people can copy and paste it from the origional URL, skip payment, and go straigt there. If you need to know the user has paid, check your accout manually before you ship the orders or use Instant Payment Notification (IPN)
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 04-19-2005, 09:17 PM
Novice Talker

Posts: 10
Trades: 0
Quote:
Originally Posted by Lou28
Hi,

Im not sure if this is a php question or simply a html question, so Ill just post here anyway!

Basically I am creating an e-commerce clothing site for someone and they're using paypal as their payment gateway.

However... they need customers to be able to chose their size and colour before checking out. I cant do this directly on paypal so I was wondering if it was possible to create a kind of form for each product with drop down menus for the sizes and colours and then whichever options they choose it would automatically change the url in the 'add to basket' text/image so that my client can see exactly what they want.

Obviously I would then have to set up products with paypal so there is one for each possible option they choose. sounds like a bit of a faff, but I dont know any other way of doing it.

Ive tried contacting paypal but - no answer.

Can anyone help on this - tell me what scripting I would need or even suggest another way of doing it??

Thanks
I would suggest that you check out OSCommerce, (http://www.oscommerce.com) - a shopping cart software, that can do exactly what you want, and more. It has lots of features, and it also integrates nicely with paypal.

Its PHP + MySQL, and you would need to have some experience installing scripts to setup the shopping cart. Nevertheless, if you need any help just email me at webguy@antaramedia.com, and I'll be glad to help.
__________________
Warm Regards,
WebGuy
ANTARAMEDIA | explore the possibilities

Please login or register to view this content. Registration is FREE
antaramedia0com is offline
Reply With Quote
View Public Profile
 
Old 04-19-2005, 10:56 PM
howardroark's Avatar
Extreme Talker

Posts: 181
Trades: 0
try looking at OSCommerce, it's an opensource e-commerce application in php - great stuff...
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
howardroark is offline
Reply With Quote
View Public Profile Visit howardroark's homepage!
 
Old 04-21-2005, 05:20 AM
Average Talker

Posts: 17
Trades: 0
thanks everyone - Ill have a look at each option, but might have to get back to you!
Lou28 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to E-commerce, help! - selecting sizes/colours
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.50194 seconds with 12 queries