[TYPO3-commerce] Teaserimages overlay with gifbuilder if product is out of stock

Benjamin Koechlin lists at bench-artwork.ch
Thu Feb 18 18:13:10 CET 2010


Hello,

in my commerce listView i want to get a png overlay on all products who are out of stock.
i have following TS to do this:

	products.nostock.fields.teaserimages >
    	products.nostock.fields.teaserimages = stdWrap
    	products.nostock.fields.teaserimages {
     			cObject = IMAGE
    			cObject.file = GIFBUILDER
			cObject.file {
      				XY = [10.w],[10.h]
      				format = JPG
      				quality = 100
      				10 = IMAGE
        			10.file {
          				import.current = 1
         				maxW = 160
          				maxH = 200
       	 			}
       	 			15 = IMAGE
				15.file = fileadmin/templates/images/nostock.png
				15.file.niceText = 1 
				15.align = right
      			}   	
			typolink.setCommerceValues = 1
			typolink.useCacheHash = 1
			typolink.if.isTrue.current = 1	
    		}

This is working but it takes the "latest" image of the product field image and not the image from the teaserimage field.
Any ideas how to get the teaser image?

Regards
Benjamin


More information about the TYPO3-project-commerce mailing list