#INCLUDE("INC-ExportBubbleScript")
#WITH_ERROR(#FormError)
#IF(#ExportSuccessful)

{Notification}

{ExportSuccessful}

#ENDIF #IF(#UploadNotSuccessful)

{InputError}

{UploadNotSuccessful}
{Notification}: {UploadHint}

#ELSIF(#UploadSuccessful)

{Notification}

{UploadSucessful}
{UploadHint}

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

{Notification}

{DifferentTaxModels}

#ENDIF #IF(#FormError)
#IF(#FormErrors.Form.ExportPortalConfig)

{ExportErrors}

{ExportErrorDetails}

{Details}
#LOOP(#FormErrors.Form.ExportPortalConfig.Errors) #IF(#Reason EQ "ProductNotVisible") #ELSIF(#Reason EQ "ProductNoName") #ELSIF(#Reason EQ "ProductNoPrice") #ELSIF(#Reason EQ "ProductNoShipping") #ELSIF(#Reason EQ "ProductNoDescription") #ELSIF(#Reason EQ "NotEnoughValuesSet") #ELSIF(#Reason EQ "ProductNoGoogleCategory") #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] {NoPriceSpecified}
({NoExport})
#Product.Alias#Product.Name[slice:40,html] {NoShippingAvailable}
({NoExport})
#Product.Alias#Product.Name[slice:40,html] {ProductNoDescription}
({NoExport})
#Product.Alias#Product.Name[slice:40,html] {NotEnoughValuesSet} {Manufacturer}, {ManufacturerSKU}, {ProductCode}
({NoExport})
#Product.Alias#Product.Name[slice:40,html] {ProductNoGoogleCategory}#Product.Alias#Product.Name[slice:40,html] {ValueTooLong}{DifferentTaxModels}{UnknownError} #Reason: #Name (#Message)
#ELSE

{InputError}

{PleaseCorrectErrors}

#ENDIF
#ENDIF #IF(#Shop.DomainName)

{Info0}

  1. {Info1} {RegisterNow}
  2. {Info2} {ToAdminstration}
  3. {Info3} {ShopURL}: #Shop.DomainName
  4. {Info4} {EditHead}
  5. #IF(#Shop.IsPageCacheUsed)
  6. {Info5}
  7. #ENDIF
  8. {Info6}
  9. {Info7}
  10. {Info8}
  11. {Info9}
  12. {Info10} {ClickSave}
  13. {Info11} {CheckMandatoryAttribute}
  14. {Info12} {CreateAttributeNow}
  15. {Info13} {LokupPath} {EditProducts}
  16. #IF(#Alias EQ "GoogleBase_en_US")
  17. {Info14}
  18. {Info15} {CreateAttributesNow}
  19. {Info16} {EditProducts}
  20. #ENDIF
#IF(#DEFINED(#PortalSite.PortalURL)) {LinkToPortal} #ENDIF

#ELSE

{ShopNeedsDomian}

#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 #INCLUDE("INC-ExportInterval")
{RegData}
  {FTPLogin} {MandatoryStar}
  {FTPPassword} {MandatoryStar}
  {DataFeedFile} {MandatoryStar} {Example}: abc123.txt
{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}
{Description} {MandatoryStar}
#IF(#LastExportDate AND #ExistsExportFile)

{ShowExportFile}

#ENDIF
#ENDWITH_ERROR