Here are the original files for the Store/Order Form.
http://www.pitseleh.co.uk/kevin/forum/Order.zip
As Quaker originally posted, to make it fit your board style you simply call the header and footer information. Do the following in order.php and form.php:
<?php
define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
//if ($pun_user['g_read_board'] == '0') <!--remove the // for members only -->
// message($lang_common['No view']); <!--remove the // for members only -->
//Hide contest from Guest
//if ($pun_user['is_guest']) <!--remove the // for members only -->
// message($lang_common['No permission']); <!--remove the // for members only -->
//Set the page title here
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / Store';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
require PUN_ROOT.'include/parser.php';
?>
put your body here and it will work
<?php
require PUN_ROOT.'footer.php'; ?>
To get PayPal to work the code should be:
<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="Order">
<input type="hidden" name="amount" value="<?php echo $grand_tot ?>">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="lc" value="GB">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
I cant get the grand total to carry over to PayPal if I call my punbb header and footer information though. Without the PunBB info the code works fine ~ it is only after I replace my normal <html> tags with the <php> tags that is stops carrying across to PayPal.
I'd like to see your API mod quaker I did have a mate switch from using an array and build it into a sql database but it wasn't linked to PunBB at all so probably useless for this cause