Swiss Post 2.4.2 limits checkout address autocomplete and validation by IP address and service. Keep the default of 60 requests per minute unless your store has a confirmed shared-IP issue on an otherwise normal checkout.
Note:
This is a developer-level doc. If you are unfamiliar working with code and resolving potential conflicts, we recommend you work with a Woo Agency Partner for larger projects, or find a WooCommerce developer on Codeable for smaller customization work. We are unable to provide support for customization under our Support Policy.
Confirm why shoppers share a limit
↑ Back to topConfirm with your host that WooCommerce receives the correct visitor IP addresses from trusted proxies. If shoppers must still share an IP address, test the smallest increase that resolves the issue and check the API quota with Swiss Post.
Adjust the autocomplete limit
↑ Back to topAdd the example to a site-specific plugin on a test store. It sets autocomplete to 120 requests per minute for each IP address. Address validation keeps its existing limit.
add_filter( 'swisspost_front_rate_limit', function ( $limit, $endpoint ) {
return 'autocomplete' === $endpoint ? 120 : $limit;
}, 10, 2 );
Check address suggestions at checkout
↑ Back to topOpen the classic checkout and enter a supported Swiss or Liechtenstein address. Check that autocomplete suggests an address and that validation still responds. Observe API usage before applying the change to your live store. Remove the customization to restore the previous limit.
For the checkout requirements, see the Swiss Post address autocomplete guide.
Questions and support
↑ Back to topSomething missing from this documentation? Still have questions and need assistance?
- If you have a question about a specific extension or theme you’d like to purchase, contact us to get answers.
- If you already purchased this product and need some assistance, get in touch with a Happiness Engineer via our support page and select this product’s name from the Product dropdown.