[TYPO3-commerce] Limit the country selectbox

Michiel Roos michiel at netcreators.com
Tue Nov 6 17:32:44 CET 2007


Franz Koch wrote:
> Hi Jeroen,
> 
>> Can you tell me if there is some other setting to be made in order to 
>> let this select statement take place? I have updated commerce today 
>> with the latest version from http://typo3xdev.sourceforge.net/
>>
>> plugin.tx_commerce_pi3 {
>>   billing.sourceFields.country.select = cn_iso_3 IN ('NLD','BEL','DEU')
>>   delivery.sourceFields.country.select = cn_iso_3 IN ('NLD','BEL','DEU')
>> }
>>
>> Both don't work...
>> Thank's in advance.
> 
> no, that's all. Have you had a look in the TS Object-Browser if the TS 
> is applied correctly? You can also search for 'cn_iso_3' to find it more 
> easily. Maybe it gets overridden by default values again in your case, 
> or you probably miss a closing bracket somewhere in your other TS so 
> that it doesn't work.

+1 on Franz; make sure your settings show in the TS object browser when 
you are on the checkout page.

Here's my TypoScript Setup

#settings for checkout
plugin.tx_commerce_pi3 {
	billing {
		sourceFields {
			country {
				default = NLD
				select = cn_iso_3 IN ('NLD','BEL')

			}
		}
	}
	delivery {
		sourceFields {
			country {
				default = NLD
				select = cn_iso_3 IN ('NLD','BEL')
			}
		}
	}	
}

Kind regards,


Michiel Roos

-- 
Netcreators BV :: creation and innovation
www.netcreators.com

Interesse in werken bij Netcreators?
http://www.netcreators.com/bedrijf/vacatures/


More information about the TYPO3-project-commerce mailing list