X-Cart uses the shipping address stored in the customer account when calculating delivery costs and adding tax fees to a registered customer's order. But what if a customer is not logged in or is just an anonymous buyer? How would a store calculate tax fees and delivery costs in this case?
X‑Cart uses the settings defined manually by the store admin as the default customer address or the Geolocation add-on data to calculate the average additional fees involved in the purchase and displays these fees to the visitor until they specify the real shipping address in the checkout.
Default Customer Address: Manual Setup
A store admin can configure the default customer address on the Default Customer Address page of the “Cart & Checkout” section of your store Admin area (Store setup -> Cart & Checkout).
The settings available on this page are as follows:
Address line: Define a default customer street address if applicable. This setting is optional.
Country: Use the drop-down to select a country you want to set as a default country for all unregistered customers' taxes and shipping calculations.
State: For countries with states, use the drop-down to select a state you want to set as a default state for all unregistered customers' taxes and shipping calculations.
City: Define a city or town you want to set as a default city for all unregistered customers' taxes and shipping calculations.
Zip/postal code: Define the customer’s postal code, also known as zip code, postcode, Eircode, etc., that should be used as a default postal code for the taxes and shipping calculations for all unregistered customers.
Address type: Select the address type from a drop-down. You can choose between residential and commercial types of addresses.
After adjusting all the settings you require, click Submit to make the configuration active.
Provided that shipping and taxes have been configured for the default customer address zone, any customer, who is not logged in, will see the tax and delivery rates as they have been configured for the default customer address zone both on the cart page and at checkout before the actual address is entered:
Default Customer Address: Geolocation Add-on
If you need the default customer address to be more flexible and match the actual customer’s location, it is possible to use the facilities of the “Geolocation add-on” instead of the manually preconfigured default customer address.
With the “Geolocation” add-on enabled, your online store will determine the default customer address based on the customer IP:
For more info, see Geolocation Add-on.