#IF(#DEFINED(#Pager)) #LOCAL("ResponseCount",#COUNT(#Pager.Items)) #REM stores the EAN code of currently selected element. #ENDREM #IF(#OnlineStatus <= 1 AND NOT #PSIN)
#IF(#ResponseCount)

{AssignYourProduct}

{ChooseListing} #ELSE

{NoPriceMinisterProductFound}

#IF(#Product.UPCEAN) {WrongEAN} {CheckEANNow} #ELSE {SearchAgain} #ENDIF #ENDIF
#ENDIF #IF(NOT #Product.UPCEAN)

{MissingUPCEAN}

#IF(#OnlineStatus <= 1 AND #ResponseCount) {UPCEANWillBeAssigned} #ENDIF

{InsertProductCodeNow}

 
#ENDIF #IF(#PWSRequestError)

{PWSRequestError}

{PWSRequestErrorInfo}

#ENDIF #IF(NOT #DELETE AND #DEFINED(#Pager))
#INCLUDE("INC-PagerButtons")
#ENDIF #IF(#ResponseCount > 0) #SET("LocalPSIN",#PSIN) #LOOP(#Pager.Items) #SET("PSIN",#productid) #IF(#DEFINED(#references.barcode)) #SET("ExclusiveUPCEAN", #references.barcode) #ELSIF(#DEFINED(#references.isbn)) #SET("ExclusiveUPCEAN", #references.isbn) #ENDIF #ENDLOOP #ELSE #ENDIF
{ProductsAtPriceMinister}
#IF(#image.url) #headline #ENDIF
#headline
#IF(#offercounts AND #bestprices) {ExistingOffers}: #offercounts.new
#IF (#bestprices.new) {CheapestOffer}: #REM #bestprices.new.currency #ENDREM #bestprices.new.amount[money]
#ENDIF #ENDIF {ProductCode}: #IF( NOT #DEFINED(#UPCEAN) AND #DEFINED(#ExclusiveUPCEAN)) #REM differ between Barcode and ISBN #ENDREM #IF(#CALCULATE(#COUNT(#references.barcode)+#COUNT(#references.isbn))>1 AND NOT #DEFINED(#Product.UPCEAN)) #ELSE #IF(#DEFINED(#Product.UPCEAN)) #Product.UPCEAN #ELSIF(#DEFINED(#ExclusiveUPCEAN)) #ExclusiveUPCEAN #ENDIF #ENDIF #ENDIF

{NoPriceMinisterProductFound}

#ENDLOCAL #ENDIF