Try this again just in case...
It is correct on the checkout page(it is written in real time
with line_item_add JS... However, when I output the order to screen in the uc_tax
module... my line items aren't in the order yet. If I use the following, it throws a fatal error on the review page load. static $lines; $lines = module_invoke_all('line_item', NULL); // this produces the names in the next array to which I added weights... Actually re-ordered them. I think "total" was 2nd or 3rd. $l_item_ids = array( 'subtotal' => 0, 'generic' =>1, 'coupon' => 2, 'free_offer' => 3, 'shipping' => 4, 'handling' => 5, 'total' => 6 ); foreach( $lines as $i => $line ){ foreach($l_item_ids as $id => $weight){ if( $id === $line['id'] ){ $lines[$i]['weight'] = $weight; // uc_li_tax_subtotal_weight // variable_set('uc_line_items_'. $lines[$i]['id'] .'_weight', $weight); } } }
So nothing is working and I have no idea where to turn. --
Good News Design
Intelligent Web Programming for Business
|