$rate = (double) $tax_result->fields['tax_rate'] / 100.0; $GAtaxRule = new GoogleAlternateTaxRule($rate); if ($tax_result->fields['countries_iso_code_2'] == 'US') { if ($tax_result->fields['zone_code'] == 'All Areas') { $GAtaxRule->SetCountryArea('ALL'); } else { $GAtaxRule->SetStateAreas($tax_result->fields['zone_code']); } } else { // TODO here should go the non use area $GAtaxRule->AddPostalArea($tax_result->fields['countries_iso_code_2']); } $GAtaxTable->AddAlternateTaxRules($GAtaxRule); } $i++; $Gcart->AddAlternateTaxTables($GAtaxTable); } if (!(MODULE_PAYMENT_GOOGLECHECKOUT_ANALYTICS == 'NONE')) { $Gcart->AddGoogleAnalyticsTracking(MODULE_PAYMENT_GOOGLECHECKOUT_ANALYTICS); } ?> <div align="right"> <?php echo '<div style="width: 180px; text-align: center;"><b>' . MODULE_PAYMENT_GOOGLECHECKOUT_TEXT_OPTION . '</b></div>'; ?> </div> <div align="right"> <?php echo $Gcart->CheckoutButtonCode(); ?> <?php