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

{Notification}

{DifferentTaxModels}

#ENDIF #IF(#ExportSuccessful)

{Notification}

{ExportSuccessful}

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

{InputError}

{NoShippingSelected} #ELSIF(#FormErrors.Form.ExportPortalConfig) #LOCAL("WarningsProductsNotExported", #GREP(#FormErrors.Form.ExportPortalConfig.Errors, "ProductNotExported", 1, "==")) #IF(#COUNT(#WarningsProductsNotExported)>0)

{ExportErrors}

{ExportErrorDetails}
{Details}
#LOOP(#WarningsProductsNotExported) #IF(#Reason EQ "ProductNotVisible") #ELSIF(#Reason EQ "ProductNoName") #ELSIF(#Reason EQ "ProductNoPrice") #ELSIF(#Reason EQ "ProductNoShipping") #ELSE #ENDIF #ENDLOOP
{SKU} {Name} {Error}
#Product.Alias#Product.Name[slice:40,html] {ProductNotSetVisible}
#Product.Alias {ProductNoName}
#Product.Alias#Product.Name[slice:40,html] {NoPriceSpecified}
#Product.Alias#Product.Name[slice:40,html] {NoShippingAvailable}
{UnknownError} #Reason: #Name (#Message)
#ENDIF #REM #WarningsProductsNotExported)>0 #ENDREM #IF(#COUNT(#FormErrors.Form.ExportPortalConfig.Errors)>#COUNT(#WarningsProductsNotExported)) #IF(#COUNT(#WarningsProductsNotExported) > 0)

#ENDIF

{Notification}

{ExportWarningDetails}
{Details}
#LOOP(#FormErrors.Form.ExportPortalConfig.Errors) #IF (NOT #ProductNotExported) #IF(#Reason EQ "ValueTooLong") #ELSIF(#Reason EQ "ProductNoValue") #ELSIF(#Reason EQ "WrongImage") #ELSIF(#Reason EQ "TaxModelMismatch") #ELSE #ENDIF #REM NOT #ProductNotExported #ENDREM #ENDIF #ENDLOOP
{SKU} {Name} {Error}
#Product.Alias#Product.Name[slice:40,html] #IF(#AttributeName EQ "title") {ValueTooLongName}#ELSE {ValueTooLong}#ENDIF#Product.Alias#Product.Name[slice:40,html] #IF(#AttributeName EQ "Manufacturer") {NoManufacturerAvailable} #ELSIF(#AttributeName EQ "ManufacturerSKU") {NoManufacturerSKUAvailable} #ELSIF(#AttributeName EQ "Description") {NoDescriptionAvailable} #ELSIF(#AttributeName EQ "UPCEAN") {NoProductCodeAvailable} #ELSIF(#AttributeName EQ "Categories") {NoCategoryAvailable} #ELSE #AttributeName #ENDIF#Product.Alias#Product.Name[slice:40,html] {WrongImageFileType} ({SupportedFileTypes}: JPG, GIF){DifferentTaxModels}{UnknownError} #Reason: #Name (#Message)
#ENDIF #REM #COUNT(#FormErrors.Form.ExportPortalConfig.Errors)>#COUNT(#WarningsProductsNotExported) #ENDREM #ENDLOCAL #REM #WarningsProductsNotExported #ENDREM #ELSE

{InputError}

{PleaseCorrectErrors} #ENDIF
#ENDIF

{Info0}

  1. {Info1} #IF(#DEFINED(#PortalSite.RegisterURL)){RegisterNew}#ENDIF
  2. {Info2} #IF(#DEFINED(#PortalSite.AdminURL)){RegisterPortal}#ENDIF
  3. {Info3}
    #System.ProtocolAndServer#Portal.ExportWebPath/#ExportFileName
  4. {Info4}
#IF(#DEFINED(#PortalSite.PortalURL)){LinkToPortal}#ENDIF
#LOCAL("ErrorDescriptionAttributeID", 0) #IF(#FormError) #SET("ErrorDescriptionAttributeID", #DescriptionAttribute) #IF(#ErrorDescriptionAttributeID EQ "")#SET("ErrorDescriptionAttributeID", 0)#ENDIF #ELSIF(#DEFINED(#DescriptionAttribute)) #SET("ErrorDescriptionAttributeID", #DescriptionAttribute.ID) #ENDIF #WITH(#Shop.ProductClass) #ENDWITH #ENDLOCAL #INCLUDE("INC-ExportInterval")
{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
{Description} {MandatoryStar}

#IF(#LastExportDate AND #ExistsExportFile)

{ShowExportFile}

#ENDIF
#ENDWITH_ERROR
{MandatoryFields}