OK..
I think I found a solution to this, in case anyone else has the Optional Shipping Insurance with Edit Orders 4.1.4 and ZenCart 1.5.4..
In the file..
\My_Admin_Folder\edit_orders.php
Near line 437 after ..
Code:
// TODO Special processing for some modules
if(zen_not_null($order_total['title']) && $order_total['title'] != ':') {
switch($order_total['code']) {
I added...
Code:
case 'ot_insurance':
$_SESSION['opt_insurance'] = true;
break;
so the code looks like this now...
Code:
// TODO Special processing for some modules
if(zen_not_null($order_total['title']) && $order_total['title'] != ':') {
switch($order_total['code']) {
case 'ot_insurance':
$_SESSION['opt_insurance'] = true;
break;
case 'ot_shipping':
$GLOBALS['order']->info['shipping_cost'] = $order_total['value'];
$GLOBALS['order']->info['shipping_module_code'] = $order_total['shipping_module'];
break;
case 'ot_tax':
This seems to give the ot_insurance code the variable it needs to add the insurance to the order total correctly.
Let me know if anyone else tries this and has success or problems..
-Andy
Bookmarks