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 ..
I added...Code:// TODO Special processing for some modules if(zen_not_null($order_total['title']) && $order_total['title'] != ':') { switch($order_total['code']) {
Code:case 'ot_insurance': $_SESSION['opt_insurance'] = true; break;
so the code looks like this now...
This seems to give the ot_insurance code the variable it needs to add the insurance to the order total correctly.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':
Let me know if anyone else tries this and has success or problems..
-Andy


Reply With Quote

