Lightbox sophistication for NetSuite.

Dazzling images that truly shine.

  • Automatically fit to any type of screen.
  • Click left and right between enlarged images (keyboard navigation too).

Install | Download

Looking for a NetSuite lightbox to showcase your product images? Magic Thumb is the perfect NetSuite companion for this task! It’s fast, it looks great and it will help your store increase engagement and sales.

Our team of developers and UX experts put in 9 years of work into Magic Thumb and we’re continually refining it to meet the highest industry standards. Choose from a plethora of transition effects and lightbox styles, all customizable via JavaScript (Magic Thumb has a powerful API built-in too).

We offer free support* and a 30-day money-back guarantee, there’s no reason not to try Magic Thumb. Over a third of all E-Commerce websites use the lightbox effect to display their product images, stay ahead of the competition, get Magic Thumb today!

Installation

  1. Download Magic Thumb (free and fully functional demo version).
  2. Upload magicthumb.js and magicthumb.css to your file cabinet, at:
    "Documents > Files > File Cabinet > Web Site Hosting Files > Staging Hosting Files > site"
  3. Point your domain name's test URL to your NetSuite site e.g. http://test.example.com.
  4. Register your test URL in the Domains section like so:
    Hosted As=Web Store”, “Web Site=yourdomainname”, and “HTML Hosting Root=Staging Hosting Files”.
  5. Upload your product images to this location: “Lists > Web Site > Images” and set your desired image sizes for the small image and large: “Setup > Web Site > Image Resizing”.
  6. Reference the CSS and JS files via the “Addition to <head>” section of the “General” tab, at: “Setup > Web Site > Themes>”.

    Alternatively, reference these two files in each of your lower level Item/Category Templates, in the “Addition to <head>” section, at: “Setup > Web Site > Item/Category Templates”.

  7. The code added to your <head> should look something like this:

    <meta http-equiv="imagetoolbar" content="no" />
    <link rel="stylesheet" href="/site/magicthumb.css" type="text/css" media="screen" />
    <script src="/site/magicthumb.js" type="text/javascript"></script>
    

    The code added to your <body> should look something like this:

    <a href="<%=getCurrentAttribute('item','storeDisplayImage')%>" class="MagicThumb">
    <img src="<%=getCurrentAttribute('item','storeDisplayImage')%>" alt="" height="300" width="300">
    </a>
    
  8. Buy Magic Thumb To upgrade your free and fully functional trial version of Magic Thumb (which removes the "Trial version" text), buy Magic Thumb. Then overwrite the demo magicthumb.js file with the one from your licensed version.

Setting up multiple product images

Instructions for adding zooming to multiple product images on the same product details page:

  1. Add custom fields, to hold the images in the template, within NetSuite at:
    “Setup > Customization > Item Fields”
  2. Create new custom fields, enough to hold the maximum number of alternate images for any one item in your inventory. Your parameters should look something like this:
    Label: Alternate Image01 (use 2 digit numbers starting with 01)
    ID: _alternateimage01 (when saved, NetSuite adds the prefix “custitem”)
    Owner: select from dropdown menu
    Type: Image
    Store Value: check
    Applies To: check appropriate item type, e.g. Inventory Item
    Display: Subtab: Select Inventory from the dropdown menu
  3. Add alternate images to each of your items at:
    List > Website > Items”
    Inventory” tab> list all appropriate Alternate Images for each item here
  4. Find the appropriate place in your Item/Category Template code, and add the following code. For example, you need to add an additional row, and span across 3 columns, in the Products (item drilldown) Item/Category Template. Add your desired height and width parameters for your alternate images. Hint: click on the outside of the NetSuite code window, before clicking Save, and NetSuite will automatically do a background syntax check.
  5. Add id=”mainImage” to your code, which now should look like this:

    <body>
    <!-- Default image sizes set in Image Resizing; Returns URL (Big Image) and IMG Tag HTML (Small Image) respectively -->
    <!-- IMG Tag and attributes, instead of attribute “storedisplayimagehtml”, required here for Alternate Image process -->
    <!-- Set your desired height & width parameters -->
    <a href="<%=getCurrentAttribute('item','storeDisplayImage')%>" id="mainImage" class="MagicThumb">
    <img src="<%=getCurrentAttribute('item','storeDisplayImage')%>" alt="" height="300" width="300">
    </body>
    
  6. Add following code for alternate product images:

    
    <script type="text/javascript">
    var altimages = new Array(
     "<%=getCurrentAttribute('item','custitem_alternateimage01')%>" ,
     "<%=getCurrentAttribute('item','custitem_alternateimage02')%>" ,
     "<%=getCurrentAttribute('item','custitem_alternateimage03')%>" ,
     "<%=getCurrentAttribute('item','custitem_alternateimage04')%>" ,
     "<%=getCurrentAttribute('item','custitem_alternateimage05')%>" ,
     "<%=getCurrentAttribute('item','custitem_alternateimage06')%>" ,
     "<%=getCurrentAttribute('item','custitem_alternateimage07')%>" ,
     "<%=getCurrentAttribute('item','custitem_alternateimage08')%>" ,
     "<%=getCurrentAttribute('item','custitem_alternateimage09')%>"
    );
    
    for(var i = altimages.length - 1; i >= 0; i--) {
        if (altimages[i] == "" || altimages[i].substr(0,6) == "[Error") {
            altimages.splice(i,1);
        }
    }
    
    if (altimages.length < 2){
    } else{
        for (var i = 0; i < altimages.length; i++) {
            if (i == 0) {
                document.write("<BR><BR>Alternate images:<BR><BR>");
            }
            document.write("<a href=\"" + altimages[i] + "\" " +
            "rel=\"zoom-id:mainImage\"  rev=\"" + altimages[i] + "\" " +
            "><img style=\"widh:auto;\" src=\"" + altimages[i] +  "\" height=\"80\" alt=\"\"/></a>"
           );
           document.write("  ");
        }
    }
    </script>
    
    

Notes

  • NetSuite requires only one image for a product and resizes it dynamically as it is used across your site. NetSuite does not require you to upload different sizes for the same image. Images uploaded can have a width or length of up to 5000 pixels.
  • For help pointing your domain name to your NetSuite website, see: Pointing Domain Names at NetSuite.
  • When you test your changes, force refresh the page so that all files are downloaded again and not from your browser cache. If your changes do not readily appear, use “Setup > Web Site > Preview Web Site” to test your changes instead.
  • Special thanks to Gary Johnson for help with this step-by-step "how-to" guide.

Uninstallation

Thanks for trying Magic Thumb on your NetSuite site! What did you hope Magic Thumb could do? How can we improve it? Let us know, we're always improving our tools based on customer feedback.

  1. Delete the reference for the CSS and JS files via the “Addition to <head>” section of the “General” tab, at: “Setup > Web Site > Themes>”.

    Alternatively, delete the reference of these two files from each of your lower level Item/Category Templates, in the “Addition to <head>” section, at: “Setup > Web Site > Item/Category Templates”.

  2. The code deleted from your <head> should look something like this:

    <meta http-equiv="imagetoolbar" content="no" />
    <link rel="stylesheet" href="/site/magicthumb.css" type="text/css" media="screen" />
    <script src="/site/magicthumb.js" type="text/javascript"></script>
    

    Delete the code from your <body> which should look something like this:

    <a href="<%=getCurrentAttribute('item','storeDisplayImage')%>" class="MagicThumb">
    <img src="<%=getCurrentAttribute('item','storeDisplayImage')%>" alt="" height="300" width="300">
    </a>
    
  3. Delete magicthumb.js and magicthumb.css from your file cabinet, at:
    "Documents > Files > File Cabinet > Web Site Hosting Files > Staging Hosting Files > site"
  4. Magic Thumb is now uninstalled.

Customer reviews

  Rating: 0 (0 reviews)

There are no reviews yet. Be the first!

Submit your review


Thank you!
Your review has been received and will be posted soon.
Used only to verify your review is genuine.

Other NetSuite extensions

Try our other great image effects!