#LOCAL("ShowBillingMand", 0)#IF(#Shop.FeatureMaxValue.Basket)#SET("ShowBillingMand",1)#ENDIF #LOCAL("RegField", #Shop.RegistrationField) #WITH_ERROR(#FormError)
#REM#ENDREM #LOCAL("OneBoxVisible", 0) #IF(#RegField.Company.IsVisible) #SET("OneBoxVisible", 1)
{Company} #IF(#RegField.Company.IsMandatory){MandatoryStar}#ELSIF(#RegField.Company.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.VATID.IsVisible) #SET("OneBoxVisible", 1) #LOCAL("ShopCountry",#Shop.Address.Country.Code2)
{VATID} #IF(#RegField.VATID.IsMandatory){MandatoryStar}#ELSIF(#RegField.VATID.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF {Example}: #VATID_EXAMPLE(#Shop.Address.Country.CountryID)' #IF(#GET("FormError_".#NamePrefix."VATID")) ,valid:false #ENDIF }) #ELSE ep.uiInput({info:'#IF(NOT (#ShopCountry EQ "ES" OR #ShopCountry EQ "PT")){VATIDNote}
#ENDIF {Example}: #VATID_EXAMPLE(#Shop.Address.Country.CountryID)'}) #ENDIF" />
#ENDLOCAL #ENDIF #IF(#RegField.Department.IsVisible) #SET("OneBoxVisible", 1)
{Department} #IF(#RegField.Department.IsMandatory){MandatoryStar}#ELSIF(#RegField.Department.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#OneBoxVisible)
#ENDIF #ENDLOCAL #REM#ENDREM #LOCAL("TwoBoxVisible", 0) #IF(#RegField.Gender.IsVisible) #SET("TwoBoxVisible", 1)
{Gender} #IF(#RegField.Gender.IsMandatory){MandatoryStar}#ELSIF(#RegField.Gender.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
{Male} {Female}
#ENDIF #IF(#RegField.Salutation.IsVisible) #SET("TwoBoxVisible", 1)
{Salutation} #IF(#RegField.Salutation.IsMandatory){MandatoryStar}#ELSIF(#RegField.Salutation.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.Title.IsVisible) #SET("TwoBoxVisible", 1)
{Title} #IF(#RegField.Title.IsMandatory){MandatoryStar}#ELSIF(#RegField.Title.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.FirstName.IsVisible) #SET("TwoBoxVisible", 1)
{FirstName} #IF(#RegField.FirstName.IsMandatory){MandatoryStar}#ELSIF(#RegField.FirstName.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ELSIF(#RegField.FirstName.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.MiddleName.IsVisible) #SET("TwoBoxVisible", 1)
{MiddleName} #IF(#RegField.MiddleName.IsMandatory){MandatoryStar}#ELSIF(#RegField.MiddleName.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.LastName.IsVisible) #SET("TwoBoxVisible", 1)
{LastName} #IF(#RegField.LastName.IsMandatory){MandatoryStar}#ELSIF(#RegField.LastName.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.DisplayName.IsVisible) #SET("TwoBoxVisible", 1)
{DisplayName} #IF(#RegField.DisplayName.IsMandatory){MandatoryStar}#ELSIF(#RegField.DisplayName.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.AddressExtension.IsVisible) #SET("TwoBoxVisible", 1)
{AddressExtension} #IF(#RegField.AddressExtension.IsMandatory){MandatoryStar}#ELSIF(#RegField.AddressExtension.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#TwoBoxVisible)
#ENDIF #ENDLOCAL #REM#ENDREM #LOCAL("ThreeBoxVisible", 0) #IF(#RegField.Street.IsVisible) #SET("ThreeBoxVisible", 1)
{Street} #IF(#RegField.Street.IsMandatory){MandatoryStar}#ELSIF(#RegField.Street.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.Street2.IsVisible) #SET("ThreeBoxVisible", 1)
{Street2} #IF(#RegField.Street2.IsMandatory){MandatoryStar}#ELSIF(#RegField.Street2.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.CodePorte.IsVisible) #SET("ThreeBoxVisible", 1)
{CodePorte} #IF(#RegField.CodePorte.IsMandatory){MandatoryStar}#ELSIF(#RegField.CodePorte.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.City.IsVisible) #SET("ThreeBoxVisible", 1)
{City} #IF(#RegField.City.IsMandatory){MandatoryStar}#ELSIF(#RegField.City.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.Zipcode.IsVisible) #SET("ThreeBoxVisible", 1)
{Zipcode} #IF(#RegField.Zipcode.IsMandatory){MandatoryStar}#ELSIF(#RegField.Zipcode.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #LOCAL("HasUS", 0) #IF(#RegField.CountryID.IsVisible) #SET("ThreeBoxVisible", 1)
{Country} #IF(#RegField.CountryID.IsMandatory){MandatoryStar}#ELSIF(#RegField.CountryID.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#HasUS) #SET("ThreeBoxVisible", 1)
{State} #IF(#RegField.State.IsMandatory){MandatoryStar}#ELSIF(#RegField.State.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#SNIPPET("INC-USStates", "Prefix,InputName", "PersonalDataGB", "State") #ELSE #SET("ThreeBoxVisible", 1) #IF(#RegField.State.IsVisible)
{State} #IF(#RegField.State.IsMandatory){MandatoryStar}#ELSIF(#RegField.State.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #ENDIF #ENDLOCAL #IF(#ThreeBoxVisible)
#ENDIF #ENDLOCAL #REM#ENDREM #LOCAL("FourBoxVisible", 0) #IF(#RegField.JobTitle.IsVisible) #SET("FourBoxVisible", 1)
{JobTitle} #IF(#RegField.JobTitle.IsMandatory){MandatoryStar}#ELSIF(#RegField.JobTitle.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.Phone.IsVisible) #SET("FourBoxVisible", 1)
{Phone} #IF(#RegField.Phone.IsMandatory){MandatoryStar}#ELSIF(#RegField.Phone.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.PhoneBusiness.IsVisible) #SET("FourBoxVisible", 1)
{PhoneBusiness} #IF(#RegField.PhoneBusiness.IsMandatory){MandatoryStar}#ELSIF(#RegField.PhoneBusiness.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.PhonePrivate.IsVisible) #SET("FourBoxVisible", 1)
{PhonePrivate} #IF(#RegField.PhonePrivate.IsMandatory){MandatoryStar}#ELSIF(#RegField.PhonePrivate.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.PhoneCell.IsVisible) #SET("FourBoxVisible", 1)
{PhoneCell} #IF(#RegField.PhoneCell.IsMandatory){MandatoryStar}#ELSIF(#RegField.PhoneCell.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.Fax.IsVisible) #SET("FourBoxVisible", 1)
{Fax} #IF(#RegField.Fax.IsMandatory){MandatoryStar}#ELSIF(#RegField.Fax.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#FourBoxVisible)
#ENDIF #ENDLOCAL #REM#ENDREM #LOCAL("FithBoxVisible", 0) #IF(#RegField.EMail.IsVisible) #SET("FithBoxVisible", 1)
{EMail} #IF(#RegField.EMail.IsMandatory){MandatoryStar}#ELSIF(#RegField.EMail.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#MENU("AdditionalFormElements")#INCLUDE(#Template)#ENDMENU #ENDIF #IF(#RegField.EMailBusiness.IsVisible) #SET("FithBoxVisible", 1)
{EMailBusiness} #IF(#RegField.EMailBusiness.IsMandatory){MandatoryStar}#ELSIF(#RegField.EMailBusiness.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.EMailPrivate.IsVisible) #SET("FithBoxVisible", 1)
{EMailPrivate} #IF(#RegField.EMailPrivate.IsMandatory){MandatoryStar}#ELSIF(#RegField.EMailPrivate.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.IsHtmlEMailAllowed.IsVisible) #SET("FithBoxVisible", 1)
{IsHtmlEMailAllowed} #IF(#RegField.IsHtmlEMailAllowed.IsMandatory){MandatoryStar}#ELSIF(#RegField.IsHtmlEMailAllowed.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
{yes} {no}
#ENDIF #IF(#FithBoxVisible)
#ENDIF #ENDLOCAL #REM#ENDREM #LOCAL("SixthBoxVisible", 0) #IF(#RegField.Birthday.IsVisible) #SET("SixthBoxVisible", 1)
{Birthday} #IF(#RegField.Birthday.IsMandatory){MandatoryStar}#ELSIF(#RegField.Birthday.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.URL.IsVisible) #SET("SixthBoxVisible", 1)
{URL} #IF(#RegField.URL.IsMandatory){MandatoryStar}#ELSIF(#RegField.URL.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #ENDLOCAL
#REM#ENDREM #IF(#RegField.BankCode.IsVisible OR #RegField.BankName.IsVisible OR #RegField.BankAccountNo.IsVisible OR #RegField.BankAccountHolder.IsVisible)
{AccountData}
#IF(#RegField.BankAccountHolder.IsVisible)
{BankAccountHolder} #IF(#RegField.BankAccountHolder.IsMandatory){MandatoryStar}#ELSIF(#RegField.BankAccountHolder.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.BankAccountNo.IsVisible)
{BankAccountNo} #IF(#RegField.BankAccountNo.IsMandatory){MandatoryStar}#ELSIF(#RegField.BankAccountNo.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.BankCode.IsVisible)
{BankCode} #IF(#RegField.BankCode.IsMandatory){MandatoryStar}#ELSIF(#RegField.BankCode.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #IF(#RegField.BankName.IsVisible)
{BankName} #IF(#RegField.BankName.IsMandatory){MandatoryStar}#ELSIF(#RegField.BankName.IsBillingAddressMandatory)#SET("OptionalFields", 1){MandatoryBillingAddressStars}#ENDIF
#ENDIF #REM#ENDREM
#ENDIF #ENDWITH_ERROR #ENDLOCAL#ENDLOCAL #LOCAL("CustomerRegistration", #GREP(#GREP(#Shop.RegistrationSet,"Attribute.IsUserDefined"),"IsVisible")) #IF(#COUNT(#CustomerRegistration))
{FurtherInformation}
#LOOP(#CustomerRegistration)#INCLUDE("INC-Attributes")#ENDLOOP
#ENDIF #ENDLOCAL