Multiple product image

adii

No avatar

2008-06-19 08:33

with QC v3 we can add multiple image for product.
how to make it only one is showed in page (for better look), but still all image available in liteboox (with next - previous button)? tq.

» Quick.Cart v3.x

>> QC v3.0

treewood (OpenSolution)

Avatar: treewood

2008-06-19 17:41

adii - it is possible but it will be strange in my opinion :)
Add first image to the left and next images to the right. After edit templates/products_default.tpl and change this

<!-- BEGIN IMAGES_LIST_2 --><li><a href="$config[dir_files]$aData[sFileName]" rel="lightbox-page" title="$aData[sDescription]"><img src="$config[dir_files]$aData[iSizeValue2]/$aData[sFileName]" alt="$aData[sDescription]" /></a>$aData[sDescriptionContent]</li><!-- END IMAGES_LIST_2 -->

to this

<!-- BEGIN IMAGES_LIST_2 --><li><a href="$config[dir_files]$aData[sFileName]" rel="lightbox-page" title="$aData[sDescription]"></a></li><!-- END IMAGES_LIST_2 -->

adii

No avatar

2008-06-20 04:51

it works!
so, in product_default.tpl image divide in to left n right.
we drop showing of image in the right side, and only put one image in the left as default image. of course we can do it in opposite. nice trick, tq :)

>> QC v3.0

adii

No avatar

2008-06-20 05:32

ups, i've just found little problem.
that image shown by pages_default different with image in product_default.
i check in db, it caused by order of image :

8$1$A.jpg$$1$0$2$0$0$ <-- right image
1$1$B.jpg$$1$0$1$0$0$ <-- left image

product_default use image that set to left, but
pages_default use image in first order of db - is it ordered by image name?
any suggestion?

>> QC v.3.x

treewood (OpenSolution)

Avatar: treewood

2008-06-23 17:20

adii - use position to add left as a default

Back to top
about us | contact