(Looking in the general direction of Stramm)
The Photo Shop Cart works great. Now I'm wondering if we can add a feature...
At checkout, where the order is reviewed where you click the submit button that saves to the database and sends the email, would it be possible to add an extra step that carries the order total data to a type of payment solution? In my case that would be Pay Pal however I'm sure there are other automated payment gateways this could work with.
I believe it would require the interation of Pay Pal's "Buy It Now" feature wich only requires some basic information, specifically the total price and the email address to where the money is going and then Pay Pal collects the rest of the data.
Buy it now code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="you@youremail.com">
<input type="hidden" name="item_name" value="Item Name">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="amount" value="0.00">
<input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
I figure by replacing
<input type="hidden" name="amount" value="0.00">
in paypal's code with the global
$tot_price so it's
<input type="hidden" name="amount" value="$tot_price">
it should work, assuming we have placed all the code in the correct place, right?
anyway, please consider. I am willing to help work on the code however I'm not experienced enough to take on the project on my own.
Thanks,
Jeremy
P.S. If this is posted in the wrong section I apologize in advance