  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: order_total.php 432 2006-02-15 07:41:34Z hpdl $ |
| |
| 3 | + | $Id: order_total.php 433 2006-02-15 19:43:33Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
62 | 62 | | return $this->_sort_order; |
| |
63 | 63 | | } |
| |
64 | 64 | | |
  |
65 | | - | function process() { |
| |
| 65 | + | function getResult() { |
|
66 | 66 | | $order_total_array = array(); |
| |
67 | 67 | | |
| |
68 | 68 | | foreach ($this->modules as $module) { |
| |
|
|
 |
… |
|
86 | 86 | | return $order_total_array; |
| |
87 | 87 | | } |
| |
88 | 88 | | |
  |
89 | | - | function output() { |
| |
90 | | - | $output_string = ''; |
| |
91 | | - | |
| |
92 | | - | foreach ($this->modules as $module) { |
| |
93 | | - | $module = 'osC_OrderTotal_' . $module; |
| |
94 | | - | |
| |
95 | | - | if ($GLOBALS[$module]->getStatus() === true) { |
| |
96 | | - | foreach ($GLOBALS[$module]->output as $output) { |
| |
97 | | - | $output_string .= ' <tr>' . "\n" . |
| |
98 | | - | ' <td align="right" class="main">' . $output['title'] . '</td>' . "\n" . |
| |
99 | | - | ' <td align="right" class="main">' . $output['text'] . '</td>' . "\n" . |
| |
100 | | - | ' </tr>'; |
| |
101 | | - | } |
| |
102 | | - | } |
| |
103 | | - | } |
| |
104 | | - | |
| |
105 | | - | return $output_string; |
| |
106 | | - | } |
| |
107 | | - | |
  |
108 | 89 | | function hasActive() { |
| |
109 | 90 | | static $has_active; |
| |
110 | 91 | | |