#LOCAL("ShopCountry",#Shop.Address.Country.Code2) #LOCAL("IsItaly",0) #LOCAL("AddressCountryID", #GET(#NamePrefix."CountryID")) #IF(#AddressCountryID EQ "380" AND #HasItaly)#SET("IsItaly", 1)#ENDIF #ENDLOCAL #IF(#GET("ShopRegistrationField.FiscalCode." . #IsVisibleName) OR (#LineItemContainer.GrandTotal > 3600 AND #ShopCountry.Country.Code2 EQ "IT" AND #IsItaly AND (#AddressType EQ "BillingAddress" OR #AddressType EQ "ShippingAndBillingAddress" OR #AddressType EQ "RegistrationAndShippingAndBillingAddress"))) #LOCAL("HasError", 0) #LOCAL("InputValue", "") #IF(#GET(#NamePrefix."FiscalCode")) #SET("InputValue", #FORMAT(#GET(#NamePrefix."FiscalCode"),"html")) #ELSIF((#INPUT.ViewAction EQ "ViewNewAddress") AND #BillingAddress.FiscalCode) #SET("InputValue", #FORMAT(#BillingAddress.FiscalCode,"html")) #ENDIF #IF(#GET("FormError_".#NamePrefix."FiscalCode")) #IF(#DEFINED(#MyBad)) #IF(#MyBad) #SET("HasError", 1) #ENDIF #ELSE #IF(#INPUT.ChangeObjectID==#ID) #SET("HasError", 1) #ENDIF #ENDIF #IF(NOT #HasError AND #DEFINED(#SNIPPET.HasError) AND #SNIPPET.HasError AND (#GET("ShopRegistrationField.FiscalCode." . #IsMandatoryName) AND #InputValue EQ "")) #SET("HasError", #SNIPPET.HasError) #ENDIF #ENDIF
{FiscalCode} #IF(#GET("ShopRegistrationField.FiscalCode." . #IsMandatoryName) OR (#LineItemContainer.GrandTotal > 3600 AND #ShopCountry.Country.Code2 EQ "IT" AND #IsItaly)){MandatoryStar}#ENDIF
#BLOCK("NewLineReplace", " ") 3600 AND #ShopCountry.Country.Code2 EQ "IT" AND #IsItaly)) required:true, #ENDIF #IF(#HasError)valid:false,#ENDIF #IF(#DEFINED(#ShopRegistrationField.FiscalCode.Attribute.Length)) maxlength:#ShopRegistrationField.FiscalCode.Attribute.Length, #ENDIF orientation:'bottom' })" /> #ENDBLOCK
#SET("IsOneBoxVisible", 1) #ENDLOCAL #REM #ENDREM #ENDLOCAL #REM #ENDREM #ENDIF #ENDLOCAL #ENDLOCAL