Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

[ic] Results page w/ Quantity, Size, Color and Buy Button for each product



Hey all!

I forgot to post this one a few weeks ago when I finished it up.  This
attachment is a results page which allows you to have a list of products
each having a quantity, size, color, and buy button per product.  I spent
quite a bit of time to get this one to work correctly.  The construct demo
used a perl sub (munge_quantity) to set the quantity correctly however it
did not work for the size or color.  This page also illustrates using an
image as the buy button.  There is also a check for which browser is being
used, netscape did not like the IE code and IE did not like the Netscape
code.  Come to find out the 'image' input type is not valid in Netscape and
therefore does not have an 'OnClick' event.  This page is being posted to
help out anyone else trying to do the same thing on their site.  You can see
the page in action at: http://www.mygamewear.com (the page is going to be
switched up in the near future to fit more products on a page).  Take it
easy!

-Ron

P.S. Please post to the list with questions, my personal email box is
getting hit hard these days :)


[comment] ui_template: Yes ui_template_name: top_left_bottom [/comment] [comment] Author: Ron Phipps Date: Jan-22-2001 Company: MyGamewear.com [/comment] [set bgcolor]#FFFFFF[/set] [set component_right][/set] [set component_after][/set] [set component_before][/set] [set members_only]0[/set] [set page_banner][/set] [set component_vsize][/set] [set vbanner][/set] [set vpromo_type][/set] [set component_hsize][/set] [set hbanner][/set] [set hpromo_type][/set] [set header_saying]Search Results[/set] [set page_title]__COMPANY__ | Search Results[/set] @_TLB_TOP_@ [include templates/regions/HEADER_W_RESULTS.TXT] @_TLB_LEFT_@ [set did_order][/set] [search-region] [tmp cross_sale][value-extended name=mv_searchspec index=0][/tmp] [on-match] [/on-match] [search-list]
 
[item-field category]
[item-field description]
Qty: Size: [item-accessories size, select, size, products, size_[item-increment]] Color: [item-accessories color, select, color, products, color_[item-increment]]
[item-field short_comment]
Price: [item-price] 
 
[if-item-data inventory quantity < 1] [else] [if session browser =~ /MSIE/] [else] [/else] [/if] [/else] [/if-item-data]
     

[/search-list] [on-match] [/on-match] [no-match]

Sorry, your search for [calc] my $joiner = ' AND '; $joiner = ' OR ' if defined $Search->{''}->{mv_orsearch}[0] and $Search->{''}->{mv_orsearch}[0]; my @str = grep /\D/, @{$Values->{mv_searchspec}}; return join $joiner, @str; [/calc] did not return any matches.

Please search again or return to our front page. [if value mv_search_error]
Errors:
[value-extended name=mv_search_error joiner="
"]
[/if]


[/no-match] [comment]
[/comment] [more-list]
Matches [matches] of [match-count] returned.
[more]
[/more-list] [/search-region] @_TLB_BOTTOM_@
Search for: Match: Format: Sort by: