This is a discussion on AJAX images: clic opens image slider in ajax within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hello, I'm looking for a feature that I see in several stores: when a customer clics on the product image, ...
| |||||||
| Register | FAQ | Donate | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hello, I'm looking for a feature that I see in several stores: when a customer clics on the product image, it opens an Ajax image slider, like the one here (click to enlarge): IK Multimedia StealthPedal | Sweetwater.com Thank you, Mythos |
|
#2
| ||||
| ||||
| I'll leave this one's detailed description to resolve to ridex, but basically it's just a ajax lightbox with mo-picks added to it so all the pics associated to the product are in the lightbox. So, think of it as a replacement for lightbox with mopics built in... Is it possible? Sure. It's a manual hack and a replace of lightbox with the new component.
__________________ so endith the lesson<think>sometimes I just sit's and thinks</think> "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB |
|
#3
| |||
| |||
| Is there a mod for that ? I don't really understand how to do it ![]() Thanks ! |
|
#4
| ||||
| ||||
| lightbox is part of osCMax. In that case you click on the image and it opens in a lightbox layer above the page (rather than using a popup window,like the old osc did). There are any number of "lightbox" like components out there. They are using a lightbox script Code: <script type="text/javascript" src="/site2.0/js/lightbox.js"></script> // Select all anchor tags that have .jpg extensions so the jquery lightbox they are using looks for all jpg anchors with specific classes (.SDProdThumbs and are list elements that are anchors with a jpg href) or within divs with IDs (#SDProdImage, #GWLBThumbs - and again the thumbs have to be in an li with an href with jpg ) and then selects those images and places them in a strip... If you actually go read the code you could see how to implement it. 1) add jquery to the product_info.tpl.php page 2) add the lightbox.js to the product_info.tpl.php page 3) add the class or id's to images you want to pick up... bingo, it should implement... [there is a bit more to it, but those are the basics to start] My point is, adding feature sets like this requires you to be able to read the code and then determine what you will have to change in how product_info is built to implement the changes. Things like this are not generally "drop in modules" where some other developer has already done the work to implement it for you. Sometimes you have to look at the source code and determine how someone else did it and who you can copy their implementation into your store.
__________________ so endith the lesson<think>sometimes I just sit's and thinks</think> "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB |
| The Following User Says Thank You to met00 For This Useful Post: | ||
ridexbuilder (03-19-2010) | ||
|
#5
| |||
| |||
| Thanks met00, Is there some kind of step by step instructions for this ? |
|
#6
| ||||
| ||||
| nope. You have to understand more than PHP. This uses jquery, it has some complex selection, and will require more than a little modification to the products_info to create the appropriate selectors for it to grab and load the images. Actually, if anyone is using mopics it's a very nice way to grab and get all the images for display. [and if you want to say thanks in the forums, use the button and/or the buttons on their post]
__________________ so endith the lesson<think>sometimes I just sit's and thinks</think> "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB |
|
#7
| ||||
| ||||
| Don't get much more of a comprehensive reply than that, Met00!
__________________ Hosting plans with installation, configuration, contributions, support and maintenance. |
|
#8
| ||||
| ||||
| Did I miss something - osCMax does this out of the box now! Lightbox opens on click to enlarge - move mouse to right hand side of lightbox - click - you get the next picture ... pretty standard stuff ... Regards,
__________________ pgmarshall _______________________________ Test Site: www.cottonbarn.info Want to say thank you if I helped you out? Help me block this waste incinerator plan (www.nywag.org) in North Yorkshire, UK. Sign the petition here (only takes 1 minute). Thanks. |
|
#9
| ||||
| ||||
| Always! Doesn't look exactly like OP's example, so obviously not good enough. Pay attention, 007.
__________________ Hosting plans with installation, configuration, contributions, support and maintenance. |
|
#10
| |||
| |||
| Yeah, exactly. I know that the basic functionality is part of osCMax, which is great, much much better than standard (ugly) oscommerce popup. What I'd need is several pictures per product, with a (manual) slideshow in lightbox. Basically. |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| AJAX image attributes | michael_s | New osCommerce Contributions | 0 | 10-13-2009 01:55 AM |
| AJAX image attributes | michael_s | New osCommerce Contributions | 0 | 09-08-2009 01:51 AM |
| AJAX image attributes | michael_s | New osCommerce Contributions | 0 | 08-28-2009 06:00 AM |
| LavoriamoPerVoi Ajax Popup Image | michael_s | New osCommerce Contributions | 0 | 04-21-2008 11:22 AM |
| LavoriamoPerVoi Ajax Popup Image | michael_s | New osCommerce Contributions | 0 | 04-20-2008 08:12 AM |