Page 1 of 1

Need some help

Posted: Sun Oct 02, 2005 12:44 pm
by Daz Wilde
Hi im pretty new to php and need some help on this.

I've got a site which a friend programmed for me, but now he isnt around i need some help.

The site is databse driven and has various products. I want it so when they have found thier product they click buy now and it takes them to the order page but with the Product details echoed so they just have to fill in thier card details.???? Am i making sense....?

Anyway here is the site with on the products. It currently just takes you to the order page but hasnt got the details on the order page.

http://www.alloywheelsquick.co.uk/searc ... bcategory=

Cheers

Posted: Sun Oct 02, 2005 3:55 pm
by shoebappa
You'd copy the code that queries and displays the product detail from the search.php file and put it in the order.php file. You'd probably have to change the query to only match Ref # to the one chosen. Since you're not passing that to the order page, you'd need to do that by adding it to the href of the order button or switching the order button to a form field and putting the Ref # in a hidden field. That way you wouldn't make them retype the Ref #, it'd be stored in a hidden field.

A much bigger problem would be the fact that you're taking credit card payments in the clear (unencrypted). SSL Certificates aren't cheap, you may look at using a third party to accept the payment info, rather than mess with that stuff yourself. Last I checked, Paypal had a shopping cart system that charged a small fee per transaction.

Posted: Sun Oct 02, 2005 4:42 pm
by Daz Wilde
Its just a test run at the mo, how much is a ssl?

If im struggling with this code can i give you a shout?

I'll have a bash tomorrow