Posted - 10/02/2013 : 04:57:00
The new cart page that was introduced in version 3.6.1 (ASP) forces customers to first select their country and after this loads the states of this country (when available) and then shows the fields to enter the customer details and address. Most customers however will be from the country your shop is based in, so it would be logical to pre-select the home country and also immediatedly show the customer detail fields.
If you use the shipping estimator you will notice that this will show the home country pre-selected. The shipping estimator is shown in the cart where you see all products placed in your cart.
The cart page also checks Session("country") to see if the homecountry is known. However this value is empty when the cart pages needs to display the customer details section.
So using this knowledge you can insert one line of code in your cart.asp page just before the inccart.asp is included.
<% if SESSION("country")="" then SESSION("country")=origCountry '// Force home country %>
This addition will make sure the home country is pre-selected in the customer detail section and even forces the states of your home country to be loaded when available.
Note: When you pull down the country selector in the customer detail section you will see that the top value will read something like "Please select ...". The new cart behaviour means that when you select this line (= deselect your country) the address fields will be hidden again. This is the default behaviour of the new cart. I will write a new post with a tip how to switch this off.
www.promanent.com | www.vaarwinkel.nl
Edited by - firstname.lastname@example.org on 12/05/2018 06:08:24