You need this code after the shipping charges in gcheckout.module .
// Apply misc. charges
if ($txn->misc) {
foreach ($txn->misc AS $key => $misc) {
$item = new GoogleItem($txn->misc[$key]->description, '', $txn->misc[$key]->qty, $txn->misc[$key]->price);
$item->SetMerchantItemId($txn->misc[$key]->nid);
$cart->AddItem($item);
}
}
There is a problem with this fix, because it adds the charges as potentially taxable items, even though it is mostly likely going to be Simple Shipping charges.
Comments
Comment #1
Phillip Mc commentedI'm can test this patch if it helps, but, can you be more specific where in the module it should be inserted? e.g. line number or the the preceding/following lines?
cheers
Comment #2
tbarker commentedAt line number 255, after
and before
Comment #3
mfbCan someone submit an actual patch?