Hello,
I am trying to modify the super orders module so I can produce a list of products by the shipping method used.
I am combining the drop down search for order status on the orders page with the payments search option on the batch form printing.
I have so far added the following code into admin/super_orders.php:
Line 171: $shippingmethod = all_payments_array();
Line 1097:
<tr><?php echo zen_draw_form('shippingmethod', FILENAME_SUPER_ORDERS, '', 'get', '', true); ?>
<td class="smallText" align="right"><?php
echo 'Shipping Method: ' . zen_draw_pull_down_menu('shippingmethod', array_merge(array(array('id' => '', 'text' => TEXT_ALL_ORDERS)), $shippingmethod), $_GET
['shippingmethod'], 'onChange="this.form.submit();"'); ?></td>
</tr>
The results of this give me the drop down box but the box shows the payment types and not the shipping methods. I assume this is down to the section highlighted in orange. I don't know what to change this to to display the shipping, I have tried all the sensible things I can think of and none seem to work.
Second to this the functionality of it actually searching by payment type or shipping method seems non exsistant, it simply pools up all orders no matter what payment type is selected.
Any ideas?



