</td> <td class="dataTableContent piRpRight"><?php echo $item['returned']; ?> </td> </tr> <?php } ?> <tr class="dataTableRow"> <td class="dataTableContent"></td> <td class="dataTableContent"></td> <td class="dataTableContent"></td> <td class="dataTableContent"></td> <td class="dataTableContent piRpRight"><?php echo rpData::getFormattedPrice($basketAmount, $lang, $order); ?> </td> <td class="dataTableContent"></td> <td class="dataTableContent"></td> <td class="dataTableContent"></td> <td class="dataTableContent"></td> <td class="dataTableContent"></td> </tr> </table> <div style="margin-top: 10px;"> <input type="hidden" value="<?php echo $orderId; ?> " name="order_number"/> <input type="submit" value="<?php
/** * Insert a credit item to the shop order * * @param int $orderId * @param array $post */ public static function addCreditToShop($orderId, array $post) { $order = new order($orderId); $credit = rpData::getCreditItem($post); $sql = "INSERT INTO `orders_total` (" . "`orders_total_id` , " . "`orders_id` , " . "`title` , " . "`text` , " . "`value` , " . "`class` , " . "`sort_order` " . ") VALUES (" . "NULL, " . "'" . xtc_db_input($orderId) . "', " . "'" . xtc_db_input($credit['name']) . ":', " . "'" . xtc_db_input(rpData::getFormattedPrice($credit['unitPriceGross'], $order->info['language'], $order)) . "', " . "'" . (double) $credit['unitPriceGross'] . "', " . "'" . xtc_db_input($credit['id']) . "', " . "'80'" . ")"; xtc_db_query($sql); }