[TYPO3-shop] Articles with images
Christian Lerrahn
typo3 at penpal4u.net
Thu Sep 29 03:25:28 CEST 2011
Hi Franz,
On Wed, 28 Sep 2011 11:35:56 +0200
Franz Holzinger <franz at ttproducts.de> wrote:
> On 28/09/11 08:26, Christian Lerrahn (Cerebrum) wrote:
> > Hi,
> > I have a shop that is configured to use "articles". I display the
> > selector boxes for variants in both list view and single view and
> > the price always updates fine. However, even for articles that have
> > images attached, I always see the product image instead. The marker
> > is ###ARTICLE_IMAGE###, so that seems correct. However, I had a
> > look at the AJAX response and it looks like the image does not only
> > not get replaced in the browser but the AJAX response always
> > contains the product image and never any of the article images. Am
> > I missing configuration anywhere?
> >
> > I'm using the latest version of tt_products 2.8.1 (23 Sep 2011).
> >
>
> you must have set useArticles, otherwise the articles are not used.
That is the case. As mentioned earlier, I can get the price updated
from articles.
> You must also have the tag id markers used around the images.
The template has a line
<div class="tt-products-item-img"
id="###ARTICLE_IMAGE_ID###">###ARTICLE_IMAGE###</div>
which translates to something like
<div class="tt-products-item-img" id="tt-products-from-tt-products-articles-single-1-image-"><img src="uploads/pics/foobar.jpg" width="100" height="100" border="0" alt="" /><br /></div>
Shouldn't that do the trick? The span around price looks very similar
translating to
<div id="tt-products-price">$<span id="tt-products-from-tt-products-articles-single-1-pricetax">15.00</span></div>
So, I'm not too sure what is going wrong here.
Cheers,
Christian
More information about the TYPO3-project-tt-products
mailing list