| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Detailed Image(s) Popup 2.1 [3.4.x-4.0.x] | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Detailed Image(s) Popup 2.1 [3.4.x-4.0.x]
8/17/04: Initial cetner popup removed. Orderby column now used in the sql query. Images larger than users screen will push the window to only go as large as screen.width and screen.height will allow. Also next and previous buttons added to top of popup as well. Code has also been cleaned up of typos and other errors.
8/11/04: Added Center initial popup, as well as looping around images, so next image and previous image always display something new to the viewer instead of stopping at the end. UPDATE: Added this script to cart-lab.com for those who need a demo of the script in action: http://www.cart-lab.com/lab/customer/product.php?productid=43 Since the release of X-Cart 4.0, I decided to redo my detailed images popup mod adding some new features along the way. Some new features include auto window resizing to fit each detailed image associated with a particular product. Written with X-Cart 3.5.9 this code SHOULD Work with X-Cart 4.0, I've not tested it so anyone who wants feel free to post your findings. This mod has been tested on IE6.0 SP2, Latest Mozilla FireFox v0.8 and Netscape 7.1. However there are transations that are in effect for IE5.5+ users. You can see this in action here: http://dynamicdrive.com/dynamicindex14/dhtmlslide.htm Step 1) Save the below file to xcart/customer/product_detailed_images.php Code:
Step 2) Save the below file as xcart/skin1/detailed_popup_js.tpl Code:
Step 3) Save the below code as: xcart/skin1/customer/main/product_images.tpl Code:
Step 4) Edit xcart/skin1/customer/main/product.tpl and locate the following code: Code:
Replace it with the following code snippet: Code:
Step 5) You will need to remove the following code from the same product.tpl file to keep the detailed images from showing up on the details page: Code:
Either remove it or {* comment *} it out. If you find this mod useful please feel free to donate: http://www.cart-lab.com/lab/customer/help.php?section=about
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#2
|
|||||||
|
|||||||
good work Boomer - nice code and thanks
__________________
ex x-cart guru |
|||||||
#3
|
|||||||||
|
|||||||||
very nice, thank you
__________________
Web Design Web Design and Custom X-Cart Projects http://www.dataviking.com Mention the forums for discounts! x-cart Version 4.1.8 |
|||||||||
#4
|
|||||||
|
|||||||
I was about to hack through version 1 of this mod! - Thanks very much BOOMER
__________________
X-Cart Gold Version: 4.0.17 X-Configurator X-AOM X-FancyCategories X-RMA X-Offers |
|||||||
#5
|
|||||||
|
|||||||
I tried it as-is on v4, and got this error:
Code:
|
|||||||
#6
|
|||||||||
|
|||||||||
I updated the initial posting with a new product.tpl bit of code, let me know if it does the trick, you can always try and remove the {strip} and {/strip} tags to see if it helps.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#7
|
|||||||
|
|||||||
That works Boomer, but you have to put the product_detailed_images.php file in the xcart root, not xcart/customer.
The inital popup window isn't auto-resized, but if you manually re-size the window and click 'Next Image' it does auto-resize the next window. |
|||||||
#8
|
|||||||
|
|||||||
Using it in 3.5.9 VERY NICE MOD !!!
|
|||||||
#9
|
|||||||||
|
|||||||||
Quote:
What browser are you using? the initial resize Works in IE, FireFox and Nutscrape. Opera?
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#10
|
|||||||||
|
|||||||||
Quote:
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|