[TYPO3-commerce] Changing default country in commerce...
Tomas Larsen
info at typo3support.cn
Sun Feb 25 00:46:50 CET 2007
Thanks Paul,
You have pointed me in the right direction even though the instructions were
not directly usable.
I ended up finding 2 very useful files in typo3conf/ext/commerce/static,
setup.txt and constants.txt !!!
.. So the default country can be changed in the template using:
plugin.tx_commerce_pi3.billing.sourceFields.country.default = DNK
Tomas
On 23/02/07 0:25, in article
mailman.1.1172186706.30163.typo3-project-commerce at lists.netfielders.de,
"Paul Hansen" <paul at ecopixel.com> wrote:
> 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