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 http://www.auctions4you.co.uk/catalogue/index.php?-action=view&-table=products&product_id=%3D5
Here goes my how do..

First of all added 5 new fields in the products table
product_image_01,product_image_02,product_image_03,product_image_04,
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 http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm 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">










{$product->htmlValue('product_description')}



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


Categories:
{$product->htmlValue('product_categories')}

Opening bid:
{$product->htmlValue('minimum_bid')}

Current high bid:
{$product->htmlValue('high_bid_amount')}

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

{/if}
Bidding close time
{$product->htmlValue('closing_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.



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




Log in to bid on this item


{/if}
auctions4you
 
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
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
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:

[url]http://xataface.com/forum/viewtopic.php?t=4338
[/url]

-Nicole
Nicole
 
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.
Todor
 
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.

e.g.
In the tables/products/fields.ini file.

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


(Note: comments are done with semi-colons)

-Steve
shannah
 
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 22 guests

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