Magic Toolbox

Magic Zoom for NetSuite

NetSuite module

Installation instructions for adding Magic Zoom to NetSuite ecommerce stores.

  1. Download the Magic Zoom demo or buy the full version.
  2. Upload mz-packed.js and MagicZoom.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/MagicZoom.css" type="text/css" media="screen" />

    <script src="/site/mz-packed.js" type="text/javascript"></script>

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

    <a href="<%=getCurrentAttribute('item','storeDisplayImage')%>" class="MagicZoom">

    <img src="<%=getCurrentAttribute('item','storeDisplayImage')%>" alt="" height="300" width="300">

Multiple images

Instructions for adding zooming to multiple product images on the same 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. Your code should look something like this:

    <TR><TD colspan=3>

    <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 = 0; i < altimages.length; i++) {

    if (altimages[i] == "" || altimages[i].substr(0,6) == "[Error") {

    }

    else {

    if (i == 0) {

    document.write("<BR><BR>Alternate images:<BR><BR>");

    }

    document.write(

    "<a href=\"" + altimages[i] + "\" " +

    "rel=\"mainImage\" " +

    "rev=\"" + altimages[i] + "\" " +

    ">" +

    "<img src=\"" + altimages[i] + "\" " +

    "height=\"80\" width=\"80\" alt=\"\"/>" +

    "</a>"

    );

    document.write("&nbsp;&nbsp;");

    }

    }

    //-->

    </script>

    </TD></TR>

  6. 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="MagicZoom">

    <img src="<%=getCurrentAttribute('item','storeDisplayImage')%>" alt="" height="300" width="300">

    </body>

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.
  • To learn more about NetSuite's Staging and Live environments, see: Web Site Staging Environment.
  • 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.
  • Further information about the NetSuite web store.
  • Special thanks to Gary Johnson for his help in integrating the tools for NetSuite.

Other NetSuite tools

Try our other NetSuite tools to add more great image effects to your website.

Installation guides

Use Magic Zoom on any website. Download a module/plugin for a specific platform:

Step-by-step instructions Zip file
Standard instructions (any website) Download
VirtueMart instructions Download 1.5 / 1.0
Joomla instructions Download 1.5 / 1.0
Magento instructions Download
osCommerce instructions Download
CRE Loaded instructions Download
X-Cart instructions Download
xt:commerce instructions Download
Zen Cart instructions Download
CubeCart instructions Download
Drupal instructions Download
WordPress instructions Download
Gallery instructions Download
NetSuite instructions

Buy Magic Zoom

£25
£95
£395

Free trial

Magic Zoom demo:
Magic Zoom demo

Free license

For non-commercial sites:

Apply for free license

©2008 Magic Toolbox   About  |  Contact  |  Support  |  Affiliates  |  Newsletter  |  Testimonials  |  License Agreement  |  Terms  |  Privacy