Contributions
Enlarge Picture Button In Product List
This contribution adds an "enlarge" button next to an item's image in product list.
You don't need to open product page and then click enlarge to see the large picture,
you can do it right from product list.
Expand All / Collapse All
I revised the instructions to include changes for a stock /includes/modules/new_products.php as well as a missing line from the script that goes in the header of index.php and advanced_search_results.php... also tested it all against a stock release of osc...
phil ... see earlier submission description but this is the complete notes (including the orig. contrib)
As most implementations have good popup enlargements for the product_info.php page, my primary concern was the application of an 'enlarge' button on displays of multiple products, including my 'new' products on startup, as well as all general search and category multi-listings.
The primary objective was to provide popup enlargement support on multiple product listings, so that the client does not have to go individually to each product to see the enlarged image.
Furthermore, the original directions were based on product lists (one item per line) vs. products displays in columns (or multiple products per row)
For reference, I have also included the entire text of the previous version after my simple a - d procedural
I could not get v2.1 to work so this is a fix for the instructions for v1.1
I added the fix to not show the icon/text if there is no image.
You need to add this before the added code in step 2:
if (tep_not_null($listing['products_image'])) {
then close it:
}
Attachment is updated with this fix for step 2 as well as teocrito's fix for advanced_search_result.php in step 3
aegrnberg
Fixes sorting order bug. Complete package
This version adds a column to your product page that can be configured in admin->product listing.
It puts this in "advanced_search_result.php"
inside <head> </head>
<head>
<script language="javascript"><!--
function popupWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}
//--></script>
</head>
No package added in Enlarge Picture Button In Product List 1.1
thanks to the origianl author :-)
added multilanguage
added another place fo the image to be added
added a transparent background enlarge icone
to be done :
- center vertically the image and text when placed at the right
This contribution adds an "enlarge" button next to an item's image in product list.
You don't need to open product page and then click enlarge to see the large picture,
you can do it right from product list.
Note: Contributions are used at own risk.