Skip to content

Developer notes

  • Storefront endpoints (JSON, never cached): index.php?dispatch=kv_address_autocomplete.suggest&q=&country=&token= and kv_address_autocomplete.details&id=&token=.
  • Address fields are found by their name or data-ca-lite-checkout-field key: <root>[<prefix>address] with the siblings <prefix>city, <prefix>state, <prefix>country, <prefix>zipcode and <prefix>address_2 in the same form (user_data[s_*], user_data[b_*], company_data[*]).
  • JavaScript event after a fill: $.ceEvent('on', 'ce.kv_address_autocomplete.filled', function (input, address) {});
  • Tables: cscart_kv_aac_stats (day, company_id, metric, hits) and cscart_kv_aac_rate (hashed IP bucket per hour).
  • PHP hook used: dispatch_before_display (prints the browser options on checkout, profile and vendor application pages only).
  • Upgrades in place are completed by the add-on’s upgrade synchronizer on the next admin page view.