Page 1 of 1

Shopping Cart Script - BASIC

Posted: Mon Feb 11, 2008 5:08 pm
by Gilligan
Let me just start out by saying that i have been to 4 other coding forum websites, and neither have been of any assistance to me.

-----------------------------------------------------

1) I have a merchant account with SECPay
2) I have a MySQL Database
3) I have little PHP skills

The thing i want is REALLY basic.

I only need this so far for one product (costing £10). I would like to add this product to my database, then i would like for the user to buy this product and pay for it through SECPay.

I want it so the user clicks 'continue' (£10 multiplied by quantity is added to total), they then select their shipping (price is added on to total), they finally click 'go to payments' and are taken to secpay with their final price.

An example is below.

http://gks.890m.com/democart - Does not function (just an example)

i also have the form to take the user to the secpay page

Code: Select all

<form name="payment" method="POST" action="https://www.secpay.com/java-bin/ValCard" name="autosubmit">
<input type="hidden" name="callback" value="shopurl">
<input type="hidden" name="merchant" value="MerchantID">
<input type="hidden" name="trans_id" value="transaction id">
<input type="hidden" name="amount" value="total price">
<input type="submit" name="Submit" value="Go to payments">
</form>
All i need is a script that enables the EXTREMELY BASIC cart and also enables the points specified in red above.


Hope i explained this well enough.


Any help is appreciated.
Gilligan

Re: Shopping Cart Script - BASIC

Posted: Tue Feb 12, 2008 5:11 pm
by Gilligan
All sorted, a mate coded something for me, works perfectly. I will post the code when i get some time.

Re: Shopping Cart Script - BASIC

Posted: Tue Feb 12, 2008 6:40 pm
by Christopher
Make that five sites that have been no assistance to you! ;)

Re: Shopping Cart Script - BASIC

Posted: Wed Feb 13, 2008 11:35 am
by Gilligan
Heres the code.

http://www.gks.890m.com/cart.zip

Unzip and read 'readme.txt'