[TYPO3-shop] Articles with images

Franz Holzinger franz at ttproducts.de
Tue Oct 4 10:36:38 CEST 2011


On 03/10/11 00:41, Christian Lerrahn wrote:
>>>>> Shouldn't that do the trick? The span around price looks very
>>>>> similar translating to
>>>>
>>>> Here is an error in the replacement of the tag id marker:
>>>>
>>>>     id="tt-products-from-tt-products-articles-single-1-image-">
>>>>
>>>> The number to the right is missing.
>>>>
>>>> You must also add the number of the image when you use IMAGE
>>>> markers for articles:
>>>>
>>>> 	<div id="###ARTICLE_IMAGE_ID1###">
>>>> 		###ARTICLE_IMAGE1###
>>>> 	</div>
>>>
>>> If I change the markers as you suggest, I do get different HTML. I
>>> thought that without
>>>
>>> separateImage = 1
>>>
>>> I'd be able to just use the markers without a numerical identifier.
>>
>> There is no feature with combined images implemented for articles.
>> This is only valid for products.
>> Combined images are not supported by the dynamic image exchange
>> feature.
>
> Fair enough. However, the marker ###ARTICLE_IMAGE### is used in the
> example templates which doesn't seem to make any sense if there is no
> marker that gets filled by a list of all images. But maybe I
> misunderstand what the difference between the numbered markers and the
> generic one is.
>

No, the normal image marker cannot work with the dynamic image exchange. 
Only one example template can be used for the dynamic exchange feature: 
products_css_variants_de.html

>>> Anyway, the new HTML looks ok.
>>>
>>> <div class="tt-products-item-img"
>>> id="tt-products-from-tt-products-articles-single-1-image-1">...
>>>
>>> However, this does not change anything about the images never
>>> getting replaced. I'm still worried about the fact that the AJAX
>>> response never contains the correct path to the article images. I
>>> always see something like
>>>
>>> <cmd n="as" t="tt-products-from-tt-products-articles-single-1-image"
>>> p="innerHTML"><![CDATA[<img src="uploads/pics/foobar.jpg"
>>> width="100" height="100" border="0" alt="" /><br />]]></cmd><cmd
>>> n="as" t="tt-products-from-tt-products-articles-single-1-image-1"
>>> p="innerHTML"><![CDATA[<img src="uploads/pics/parrot.jpg"
>>> width="100" height="100" border="0" alt="" /><br />]]></cmd>
>>>
>>> in the AJAX response where foobar.jpg is the product image not the
>>> article image.
>>
>> Maybe you have made some misconfiguration. tt_products does not find
>> the articles you have assigned to the products. Therefore the image
>> is taken from the product. Check your settings.
>
> I don't think this is possible. My articles are definitely found because
> my price gets updated from the articles. I haven't tried swapping
> anything but image and price but I suppose if out of these two the
> price works, that should be proof enough that the articles are found,
> right? Or could there be a scenario where the price swapping works but
> not the image swapping?

No such bug has ever been reported.
Only the image id marker is responsible for doing the image exchange 
from the article. So you should insert the correct marker.


- Franz




More information about the TYPO3-project-tt-products mailing list