Shopping Cart Script - BASIC
Posted: Mon Feb 11, 2008 5:08 pm
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
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
-----------------------------------------------------
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>Hope i explained this well enough.
Any help is appreciated.
Gilligan