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

{Notification}

{ExportSuccessful}

#REM #ENDREM #ENDIF #IF(#UploadNotSuccessful)

{InputError}

{UploadNotSuccessful}

#REM #ENDREM #ELSIF(#UploadSuccessful)

{Notification}

{UploadSucessful}

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

{Notification}

{DifferentTaxModels}

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

{InputError}

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

{InputError}

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

{ExportErrors}

{ExportErrorDetails}

{Details}
#LOOP(#FormErrors.Form.ExportPortalConfig.Errors) #IF(#Reason EQ "ProductNotVisible") #ELSIF(#Reason EQ "ProductNoName") #ELSIF(#Reason EQ "ProductNoManufacturer") #ELSIF(#Reason EQ "ProductNoPrice") #ELSIF(#Reason EQ "ProductNoShipping") #ELSIF(#Reason EQ "ProductNoImage") #ELSIF(#Reason EQ "ProductNoCategory") #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] {NoManufacturerAvailable}
({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] {ProductNoImage}
({NoExport})
#Product.Alias#Product.Name[slice:40,html] {ProductNoCategory}
({NoExport})
#Product.Alias#Product.Name[slice:40,html] #IF(#AttributeName EQ "Name") {ValueTooLongName}#ELSE {ValueTooLongDescr}#ENDIF{DifferentTaxModels}{UnknownError} #Reason: #Name (#Message)
#ELSE

{InputError}

{PleaseCorrectErrors} #ENDIF
#REM #ENDREM #ENDIF
#ENDIF
#REM #ENDREM
#REM #ENDREM

{ShoppingCom}:

  1. {ShoppingComInfo1} #IF(#DEFINED(#PortalSite.RegisterURL)){CreateAccount}#ENDIF
  2. {ShoppingComInfo2}
  3. {ShoppingComInfo3} {ClickSave}
  4. {ShoppingComInfo4}:
    #System.ProtocolAndServer#Portal.ExportWebPath/#ExportFileName
#REM #ENDREM

{RegData}

#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM

{Settings}

#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#PortalSite.Country.Native
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#LOCAL("CurrentLanguageID", #PortalSite.Language.LanguageID) #LOOP(#Shop.Languages) #IF(#LanguageID == #CurrentLanguageID)#TRANSLATE(#Code3)#ENDIF #ENDLOOP #ENDLOCAL
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#IF(#DEFINED(#CurrencyID))#LOCAL("LocalCurrency", #FUNCTION("CURRENCY", #CurrencyID))#LocalCurrency.Symbol#ENDLOCAL#ENDIF
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#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
#REM #ENDREM
#REM #ENDREM #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)
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM #ENDWITH#ENDLOCAL #INCLUDE("INC-ExportInterval") #IF(#LastExportDate AND #ExistsExportFile)
#REM #ENDREM
#REM #ENDREM #ENDIF
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM #ENDWITH_ERROR