Also there is a JavaScript method to pull any image you want with any dimensions:
Make a call to json.mvc with the following parameters:
Session_Type=runtime Function=Runtime_ProductImageList_Load_Product_Var iant Product_Code= Variant_ID=
// ---------------------------------------------------------- | |
// A short snippet for detecting versions of IE in JavaScript | |
// without resorting to user-agent sniffing | |
// ---------------------------------------------------------- | |
// If you're not in IE (or IE version is less than 5) then: | |
// ie === undefined | |
// If you're in IE (>=5) then you can determine which version: | |
// ie === 7; // IE7 | |
// Thus, to detect IE: | |
// if (ie) {} |
$(function() { | |
var t = $('#thetable tbody').eq(0); | |
var r = t.find('tr'); | |
var cols= r.length; | |
var rows= r.eq(0).find('td').length; | |
var cell, next, tem, i = 0; | |
var tb= $('<tbody></tbody>'); | |
while(i<rows){ | |
cell= 0; |
<mvt:comment>Define JSON holding variable</mvt:comment> | |
<mvt:assign name="l.settings:json" value="''" /> | |
<mvt:comment>Define URL Variable</mvt:comment> | |
<mvt:assign name="g.url" value="'http://example.com/'" /> | |
<mvt:comment>Call `g.url` and Concatenate `s.callvalue` into `l.settings:json`</mvt:comment> | |
<mvt:call action="g.url" method="'GET'"> | |
<mvt:assign name="l.settings:json" value="l.settings:json $ s.callvalue" /> | |
</mvt:call> |
Add the following on the right side of your product display layout area (aka where the price is) | |
<div id="zoom-hold" class="zoom-hold" style="display: none;"><div class="inner"></div></div> |
/* bling.js */ | |
window.$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function (name, fn) { | |
this.addEventListener(name, fn); | |
} | |
NodeList.prototype.__proto__ = Array.prototype; |
// Examples of pure functions. No side effects. No mutations. | |
function square(x) { | |
return x * x; | |
} | |
function squareAll(items) { | |
return items.map(square); | |
} | |
// Examples of impure functions. |
Also there is a JavaScript method to pull any image you want with any dimensions:
Make a call to json.mvc with the following parameters:
Session_Type=runtime Function=Runtime_ProductImageList_Load_Product_Var iant Product_Code= Variant_ID=
<mvt:if expr="l.settings:MYITERATORHERE_CHANGEME:link_type EQ 'P'"> | |
<mvt:do name="l.settings:MYITERATORHERE_CHANGEME:loadprod" file="g.Module_Library_DB" value="Product_Load_Code(l.settings:MYITERATORHERE_CHANGEME:link_dest, l.settings:MYITERATORHERE_CHANGEME:product) " /> | |
<mvt:do file="g.Module_Feature_URI_UT" name="l.settings:MYITERATORHERE_CHANGEME:link" value="Store_Product_URL(l.settings:MYITERATORHERE_CHANGEME:product NULL)" /> | |
<mvt:elseif expr="l.settings:MYITERATORHERE_CHANGEME:link_type EQ 'C'"> | |
<mvt:do name="l.settings:MYITERATORHERE_CHANGEME:loadcat" file="g.Module_Library_DB" value="Category_Load_Code(l.settings:MYITERATORHERE_CHANGEME:link_dest, l.settings:MYITERATORHERE_CHANGEME:category) " /> | |
<mvt:do file="g.Module_Feature_URI_UT" name="l.settings:MYITERATORHERE_CHANGEME:link" value="Store_Category_URL(l.settings:MYITERATORHERE_CHANGEME:category NULL)" /> | |
<mvt:elseif expr="l.settings:MYITERATORHERE_CHANGEME:link_type EQ 'G'"> | |
<mvt:do name="l.settings:MYITERATORHERE_CHANGEME:loadpage" file= |
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011 | |
* http://benalman.com/ | |
* https://github.com/cowboy/jquery-tiny-pubsub | |
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */ | |
(function($) { | |
var o = $({}); | |
$.subscribe = function() { |
/** | |
* Fluid typography between a min & max font-size and molten leading | |
* calc(minSize + (maxSize - minSize) * ((100vw - minPort) / (maxPort - minPort))); | |
*/ | |
:root { | |
font-size: 100%; | |
} | |
body { | |
font-size: 1em; |