#IF(#Shop.TaxModel NE #PortalSite.TaxModel)

{Notification}

{DifferentTaxModels}

#ENDIF #IF(#ExportSuccessful)

{Notification}

{ExportSuccessful}

#ENDIF #WITH_ERROR(#FormError) #IF(#FormError)
#IF(#FormErrors.Reason.NoShipping)

{InputError}

{NoShippingSelected} #ELSIF(#FormErrors.Reason.NoPortalMerchantID)

{InputError}

{NoPortalMerchantID} #ELSIF(#FormErrors.Reason.NoPangoraTrackingID)

{InputError}

{AskAdmin} #ELSIF(#FormErrors.Form.ExportPortalConfig)

{ExportErrors}

{ExportErrorDetails}

{Details}
#LOOP(#FormErrors.Form.ExportPortalConfig.Errors) #IF(#Reason EQ "ProductNotVisible") #ELSIF(#Reason EQ "ProductNoName") #ELSIF(#Reason EQ "ProductNoCategory") #ELSIF(#Reason EQ "ProductNoPrice") #ELSIF(#Reason EQ "ProductNoShipping") #ELSIF(#Reason EQ "ValueTooLong") #ELSIF(#Reason EQ "TaxModelMismatch") #ELSE #ENDIF #ENDLOOP
{SKU} {Name} {Error}
#Product.Alias#Product.Name[slice:40,html] {ProductNotSetVisible}
({NoExport})
#Product.Alias {ProductNoName}
({NoExport})
#Product.Alias#Product.Name[slice:40,html] {ProductNoCategory}
({NoExport})
#Product.Alias#Product.Name[slice:40,html] {NoPriceSpecified}
({NoExport})
#Product.Alias#Product.Name[slice:40,html] {NoShippingAvailable}
({NoExport})
#Product.Alias#Product.Name[slice:40,html] #IF(#AttributeName EQ "NAME") {ValueTooLongName} #ELSIF(#AttributeName EQ "BRAND") {ValueTooLongBRAND} #ELSIF(#AttributeName EQ "MERCHANTCATEGORY") {ValueTooLongCATEGORY} #ELSIF(#AttributeName EQ "DESCRIPTION") {ValueTooLongDescr} #ELSE {ValueTooLongPROMOTION}#ENDIF {DifferentTaxModels}{UnknownError} #Reason: #Name (#Message)
#ELSE

{InputError}

{PleaseCorrectErrors} #IF(#FormErrors.Reason.OBJECT_EXISTS)
{AskAdmin} #ENDIF #ENDIF
#ENDIF #ENDWITH_ERROR #IF(#UploadNotSuccessful)

{InputError}

{UploadNotSuccessful}

#ELSIF(#UploadSuccessful)

{Notification}

{UploadSucessful}

#ENDIF #IF(NOT #DEFINED(#PangoraTrackingID))

{Notification}

{AskAdmin}

#ENDIF #WITH_ERROR(#FormError)

{PangoraConfigs}

{PangoraConfigsInfo}
{AnyQuestions} {Phone}: #PortalSite.Phone; {EMail}: #PortalSite.EMail

{RegisterPortal} #IF(#DEFINED(#PortalSite.PortalURL)) {LinkToPortal} #ENDIF

#LOCAL("ErrorShortDescriptionAttributeID", 0) #IF(#FormError) #SET("ErrorShortDescriptionAttributeID", #ShortDescriptionAttribute) #IF(#ErrorShortDescriptionAttributeID EQ "")#SET("ErrorShortDescriptionAttributeID", 0)#ENDIF #ELSIF(#DEFINED(#ShortDescriptionAttribute)) #SET("ErrorShortDescriptionAttributeID", #ShortDescriptionAttribute.ID) #ENDIF #LOCAL("ErrorDescriptionAttributeID", 0) #IF(#FormError) #SET("ErrorDescriptionAttributeID", #DescriptionAttribute) #IF(#ErrorDescriptionAttributeID EQ "")#SET("ErrorDescriptionAttributeID", 0)#ENDIF #ELSIF(#DEFINED(#DescriptionAttribute)) #SET("ErrorDescriptionAttributeID", #DescriptionAttribute.ID) #ENDIF #LOCAL("ErrorImageAttributeID", 0) #IF(#FormError) #SET("ErrorImageAttributeID", #ImageAttribute) #IF(#ErrorImageAttributeID EQ "")#SET("ErrorImageAttributeID", 0)#ENDIF #ELSIF(#DEFINED(#ImageAttribute)) #SET("ErrorImageAttributeID", #ImageAttribute.ID) #ENDIF #WITH(#Shop.ProductClass) #ENDWITH#ENDLOCAL#ENDLOCAL#ENDLOCAL #IF(#ExportInterval > 0) #ENDIF
{RegData}
  {MerchantID} {MandatoryStar}
  {FTPLogin} {MandatoryStar}
  {FTPPassword} {MandatoryStar}

{Country} #PortalSite.Country.Native
{Language} #PortalSite.Language.Native
{CurrencyID} #PortalSite.Currency.Symbol

{ExportAllProducts}
{ExportAllVariations}

{ShippingMethod} {MandatoryStar} #LOCAL("IsMethodCorrect", 0) #IF(#DEFINED(#ShippingMethod.Region)) #LOOP(#ShippingMethod.Region.Countries) #IF(#CountryID == #PortalSite.Country.CountryID) #SET("IsMethodCorrect", 1) #ENDIF #ENDLOOP #ELSE #SET("IsMethodCorrect", 1) #ENDIF #LOCAL("ErrorShippingMethodID", 0) #IF(#FormError) #SET("ErrorShippingMethodID", #ShippingMethod) #IF(#ErrorShippingMethodID EQ "")#SET("ErrorShippingMethodID", 0)#ENDIF #ELSIF(#DEFINED(#ShippingMethod)) #SET("ErrorShippingMethodID", #ShippingMethod.ID) #ENDIF #ENDLOCAL #IF(NOT #IsMethodCorrect)
 {CountryNotInMethod}#ENDIF #ENDLOCAL
{ImageAttribute}
{PromotionTextAttribute}
{Description} {MandatoryStar}

{AutoExportandUpload}
  {ExportInterval}
 {PortalExportHint}
  {LastExportDate} #IF(#LastExportDate) #LastExportDate[date] #ELSE - #ENDIF
  {NextExportDate} #IF(#ExportInterval > 0) #NextExportDate[date] #ELSE - #ENDIF
  {LastUploadDate} #IF(#DEFINED(#LastUploadDate)) #LastUploadDate[date] #ELSE - #ENDIF
#IF(#LastExportDate AND #ExistsExportFile)

{ShowExportFile}

#ENDIF
#ENDWITH_ERROR
{MandatoryFields}