Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Paypal add to cart for multiple quantities and colors

Status
Not open for further replies.

nwo4life

Technical User
May 16, 2002
23
US
I want to have multiple pictures of items with different colors. The items can be purchased by 1 for $3 or 3 for $8 or 8 for $20.

How do I get paypal to allow the customer to add 1 red and 2 blue but get the price of 3 for $8?

or they select 1 black 1 blue 4 red and 2 green so they price would be 8 for $20.

Thanks
 
I am a new at this I haven't done anything yet. The only thing I know how to do is make a button thru paypal. But it doesn't allow me to to change price by quantity and color.
 
It sounds like you need a starting place, and I'm not sure this forum is appropriate unless someone has done the same thing with Paypal before. With that said, all you did is add a button? Is there no way to pass a dollar amount to paypal? If you can, then you would write the interface and depending on the user's selection, submit the dollar amount and whatever else to Paypal.

Does Paypal have a developer's site? Do they provide you with sample code? I use Authorize.Net, and they have both which gave me a good start for a project I worked on.
 
You write code that concatenates and totals the data the writes the values into a form with the necessary codes to submit to PayPal.


Or if you would like some VBScript class files and the MySQL data structures that go with them, for creating payment gateways that were part an ASP catalogue and shopping cart system I wrote a few years ago let me know.



Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
@chrisHirst

Ill take the vbscripts and mysql

Thanks
 
Okay,


All the code for a complete ASP content management system, with my own "Smarty style" templating system, RSS feed generator, BB Code replacement, "tag clouds", FAQ system, user management and more. When I started coding this for my own use the ones that were already in existence did not have the things I wanted so I wrote one that had :)

Most of it is written in classes so it's as close to OOP as VB Script could ever get

The code is commented where I thought necessary, and the variable names are reasonably self-explanatory. I never got around to creating an installer for the MySQL tables, but the .sql dump scripts (created with HeidiSQL) will setup the structure and the initial data required.

Database details can be found "_templates/config/inc_vars_config.asp" and all other settings are in database tables (_config), and the sql dumps are done without a table prefix.

I can't find my notes for the default passwords but if you set a script that includes the config script and with the encode class instantiated you can create one with;

Code:
Encode.sha256(p_sEncExtra & p_sPassword)
and paste the returned value into the appropriate row in _cust.sql. EncExtra was going to be extended into a 'real' "salting" value at some point, but as I don't have any M$ Windows machines at all now so development has completely ceased on the project.

General questions, just ask them here, for anything specific I can be PMed at webmaster-talk.eu or send an email to [me]@chrishirst[.]co[.]uk


Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top