Multiple images for webauction

A place to discuss and receive support for the Web Auction application.

Postby auctions4you » Wed Jul 04, 2007 5:31 am

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

Posts: 16
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Wed Jul 04, 2007 2:00 pm

Very slick.
Thanks for sharing this, Phil.

Steve Hannah
@shannah78 (on twitter) blog
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby Nicole » Sun Dec 16, 2007 10:21 pm

Here is another way to add multiple images:


Posts: 6
Joined: Sun Dec 16, 2007 2:25 am

how to add url images

Postby Todor » Thu Jul 03, 2008 7:38 pm

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.
Posts: 8
Joined: Wed Jun 25, 2008 10:42 am

Postby shannah » Fri Jul 04, 2008 10:04 am

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)

Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Return to Web Auction Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved