Custom Storefront Options
page last edited on 11 September 2017
Your X-Cart storefront can be finetuned for your needs by changing options in the
etc/config.php file at the
Here is the reference for the available option values:
- Don’t Close Callback Endpoint When the Storefront is Closed for Maintenance
- Optimize Visible CSS Loading
- Force Custom State with Autocompletion
Don’t Close Callback Endpoint When the Storefront is Closed for Maintenance
This cutom setting should be enabled when you need to complete orders processing even if the storefront was closed at the moment of the payment authorization.
callback_opened option is set to
target=callback function will be available for payment processing and IPN (Webhook) notifications, even when the storefront is closed.
Optimize Visible CSS Loading
optimize_css option is set to
On, X-Cart will inline all CSS styles (used on the current page) in the
<head> tag, complementing them with the
<link> tags for the first load only. This will allow to show the styled page as soon as possible, and then the browser cache kicks in on each consecutive load.
Force Custom State with Autocompletion
This option will hide the states drop-down for the countries with the defined states at checkout and show a text field with autocompletion instead, allowing a customer to type the state name (defined states will be available as the autocompletion for the ‘State’ field).
To make it work set the
autocomplete_states_for_countries option to the comma-separated string of the country codes like this:
All or leave it empty to disable this option.
Help make this document better
This guide, as well as the rest of our docs, are open-source and available on GitHub.