[TYPO3-commerce] Changing default country in commerce...

Paul Hansen paul at ecopixel.com
Fri Feb 23 00:25:04 CET 2007


Tomas Larsen wrote:
> In pi3 where the user creates an account, how do I change the default
> country in the select from Germany to something else?

Try changing the default country, currency, etc. in the Constant editor 
for static_info_tables.

The address forms can be changed with TS setup, such as:

plugin.tx_commerce_pi3 {
	# remove existing TS
	billing.sourceFields >

	billing {
		sourceFields {
			# This order is used on the form.
			name.mandatory = 1
			surname.mandatory = 1

			# remove this field.
			company >

			address.mandatory = 1
			city.mandatory = 1

			# Generate a State/Province field
			# based on the country selector.
			zone {
				type = static_info_tables
				field = SUBDIVISIONS
				select = 1
				mandatory = 1
				readonly = 0
			}
			zip.mandatory = 1
		}

	# add other fields here [...]
	}
}

Take care,
Paul


More information about the TYPO3-project-commerce mailing list