Page 1 of 1

PostPosted: Wed Jul 04, 2007 5:31 am
by auctions4you
Have started to add products to our catalogue , for our Aug 3rd sale, and found out that wanted to have multiple images for one product, well after some time have sorted it out, and would like to share it with the web community. See example here
Here goes my how do..

First of all added 5 new fields in the products table
product_image_05, copied the parameters from field product_image.
Secondly gave the images url locations. (as my images are not hosted on the same website.
Thirdly went to and downloaded the source code, see instructions on page,
Four updated view_product.html (under the templates dir) and added this code as follows

Image gallery,

Please click text below...

display('product_image_01')}" rel="enlargeimage::mouseover" rev="loadarea">Image 01
display('product_image_02')}" rel="enlargeimage::mouseover" rev="loadarea">Image 02
display('product_image_03')}" rel="enlargeimage::mouseover" rev="loadarea">Image 03
display('product_image_04')}" rel="enlargeimage::mouseover" rev="loadarea">Image 04
display('product_image_05')}" rel="enlargeimage::mouseover" rev="loadarea">Image 05
display('product_image_01')}" rel="enlargeimage::mouseover" rev="loadarea">


Lot #{$product->htmlValue('product_lot')}


Opening bid:

Current high bid:

{if !$product->val('isOpen')}
Bidding open date

Bidding close time

{if isLoggedIn()}
{if $product->val('isOpen') and $product->val('high_bidder') != getUsername()}

val('product_id')}" />

Bid on this product
Amount:val('cooked_minimum_bid')|string_format:"%.2f"}" size="6"/>

{elseif $product->val('high_bidder') != getUsername()}
You cannot bid on this product at this time because bidding is not currently open. Check the open and close times for this product above.

You are currently the high bidder on this product.
{assign var="product_id" value=$product->val('product_id')}

Log in to bid on this item


PostPosted: Wed Jul 04, 2007 2:00 pm
by shannah
Very slick.
Thanks for sharing this, Phil.


PostPosted: Sun Dec 16, 2007 10:21 pm
by Nicole
Here is another way to add multiple images:



how to add url images

PostPosted: Thu Jul 03, 2008 7:38 pm
by Todor
auctions4you wrote:Secondly gave the images url locations. (as my images are not hosted on the same website.

how exactly did you give your images url locations? when i try to add an image to the product listing, i can only add one that i had previously downloaded.

PostPosted: Fri Jul 04, 2008 10:04 am
by shannah
You can probably accomplish most of this by just changing the field type of the image field so that it is not a container field.

In the tables/products/fields.ini file.

Find the [image] section.
Comment out the line that says:
Code: Select all

(Note: comments are done with semi-colons)