GX-Bug #70242 » test_ab_ordersend.php
| 1 |
<?php
|
|---|---|
| 2 |
require 'includes/application_top.php'; |
| 3 |
|
| 4 |
$orders_id = (int)($_GET['orders_id'] ?? 210824005); |
| 5 |
|
| 6 |
$orderSender = new AfterbuyOrderSender($orders_id); |
| 7 |
$orderData = $orderSender->prepareData(); |
| 8 |
|
| 9 |
ob_start(); |
| 10 |
print_r($orderData); |
| 11 |
$output = ob_get_clean(); |
| 12 |
|
| 13 |
?>
|
| 14 |
<!DOCTYPE html>
|
| 15 |
<html>
|
| 16 |
<head>
|
| 17 |
<title>Test Afterbuy OrderSend</title> |
| 18 |
</head>
|
| 19 |
<body>
|
| 20 |
<h1>OrderSend</h1> |
| 21 |
<form action="" method="get"> |
| 22 |
<p>
|
| 23 |
orders_id <input name="orders_id" value="<?= $orders_id ?>"><br> |
| 24 |
<button type="submit">go</button> |
| 25 |
</p>
|
| 26 |
</form>
|
| 27 |
<pre><?= $output ?></pre> |
| 28 |
</body>
|
| 29 |
</html>
|