INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Paypal add to cart for multiple quantities and colors

Paypal add to cart for multiple quantities and colors

(OP)
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

RE: Paypal add to cart for multiple quantities and colors

What code did you try and where are you stuck?

RE: Paypal add to cart for multiple quantities and colors

(OP)
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.

RE: Paypal add to cart for multiple quantities and colors

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.

RE: Paypal add to cart for multiple quantities and colors

You write code that concatenates and totals the data the writes the values into a form with the necessary codes to submit to PayPal.

http://www.tek-tips.com/viewthread.cfm?qid=952083

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

RE: Paypal add to cart for multiple quantities and colors

(OP)
@chrisHirst

Ill take the vbscripts and mysql

Thanks

RE: Paypal add to cart for multiple quantities and colors

Okay,

http://chrishirst.co.uk/code-dl/ASP-CMS.zip

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 --> vbscript

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close