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

Phillip Mc’s picture

I'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

tbarker’s picture

At line number 255, after

  if (module_exists('shipping')) {
    $method = shipping_get_methods();
  }

and before

  // Add tax rules
  $tax_rule = new GoogleDefaultTaxRule(0.0825);
  $tax_rule->SetStateAreas(array("CA", "NY"));
mfb’s picture

Status: Needs review » Postponed (maintainer needs more info)

Can someone submit an actual patch?