osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Self resizing popup_image.php depending on picture size

This is a discussion on Self resizing popup_image.php depending on picture size within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Self resizing popup_image.php depending on picture size ------------------------------------------------------------------------------ This contrib comes originally from two other popup contributions http://www.oscommerce.com/community/contributions,2240 http://www.oscommerce.com/community/contributions,2503 So ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 04-22-2007, 02:59 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,334
Thanks: 68
Thanked 324 Times in 307 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Self resizing popup_image.php depending on picture size

Self resizing popup_image.php depending on picture size

------------------------------------------------------------------------------
This contrib comes originally from two other popup contributions

http://www.oscommerce.com/community/contributions,2240
http://www.oscommerce.com/community/contributions,2503

So all credits go to the original coders.
------------------------------------------------------------------------------

As I am using pictures with different heights and widths I modified the script and made it comfortable for me.
Check it and use it if you like.

This popup_image.php shows the product name, the big picture, the price and the product description.

The popup will resize itself according to the size of the picture no matter if there are different picture sizes.

The popup window will close itself when clicked into the popup or into the main window.

The visitor does not have to click any window-shut-down button, just does anything and the window is closed.

So there is even a little prevention of steeling pics (not for the cracks of course).

Depending on the length of your product description you have to adapt the length of the window by increasing/decreasing the

value 300 in line:
imgHeight = document.images[0].height+300-i;

If you want to adjust the place where the popup appears on the screen you have to do this in catalog/product_info.php
find the javascript definition function popupWindow(url) and change the values for 'top' and 'left'.

--------------------------------------------------------------

Step 1. Backup your files first :-)) do it

Step 2. copy the popup_image.php to the folder catalog

---------------------------------------------------------------

greetz pillepalle

More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
popup_image.php error log entry torweb osCMax v2 Customization/Mods 0 07-19-2006 10:01 AM
Full size picture on product page. h4ppy_girl osCommerce 2.2 Modification Help 0 09-24-2004 09:29 AM
Main body text size/size of search box/adding img to footer thecandypam osCommerce 2.2 Modification Help 1 07-10-2004 10:58 AM
BTS 1.2a Upgrade Package : popup_image.php FIX duntuk osCMax v1.7 Discussion 1 02-02-2004 02:23 PM
adding differing prices for same item depending on format Typeface osCommerce 2.2 Modification Help 0 07-27-2003 10:53 AM


All times are GMT -8. The time now is 09:58 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax