So i've been lurking around looking for a solution to be able to use Juicebox but i'm not sure if i can. We need to be able to interject the image URL's externally via javascript or something.. we have a structure of images based off of SKU and an image count So if the image URL's are generated how could they be put in the a "ConfigURL" or just be used straight from the java script.
Our solution is within Channeladvisor and would produce the image URL's like this.. or how ever..
<script type="text/javascript">
myThumbs = new Array ("%%SELECTCASE(LENGTH({{USMBBASE}})>0,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{USMBBASE}},"_01.jpg"), CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_01.jpg"))%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=2,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_02.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=2, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_02.jpg"),{{IMG-COUNT}} >=2,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_02.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=4,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_04.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=4, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_04.jpg"),{{IMG-COUNT}} >=4,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_04.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=5,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_05.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=5, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_05.jpg"),{{IMG-COUNT}} >=5,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_05.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=6,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_06.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=6, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_06.jpg"),{{IMG-COUNT}} >=6,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_06.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=7,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_07.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=7, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_07.jpg"),{{IMG-COUNT}} >=7,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_07.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=8,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_08.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=8, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_08.jpg"),{{IMG-COUNT}} >=8,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_08.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=9,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_09.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=9, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_09.jpg"),{{IMG-COUNT}} >=9,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_09.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=10,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_10.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=10, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_10.jpg"),{{IMG-COUNT}} >=10,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_10.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=11,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_11.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=11, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_11.jpg"),{{IMG-COUNT}} >=11,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_11.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=12,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_12.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=12, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_12.jpg"),{{IMG-COUNT}} >=12,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_12.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=13,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_13.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=13, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_13.jpg"),{{IMG-COUNT}} >=13,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_13.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=14,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_14.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=14, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_14.jpg"),{{IMG-COUNT}} >=14,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_14.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=15,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_15.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=15, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_15.jpg"),{{IMG-COUNT}} >=15,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_15.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=16,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_16.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=16, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_16.jpg"),{{IMG-COUNT}} >=16,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_16.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=17,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_17.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=17, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_17.jpg"),{{IMG-COUNT}} >=17,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_17.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=18,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_18.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=18, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_18.jpg"),{{IMG-COUNT}} >=18,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_18.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=19,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_19.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=19, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_19.jpg"),{{IMG-COUNT}} >=19,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_19.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=20,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_20.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=20, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_20.jpg"),{{IMG-COUNT}} >=20,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_20.jpg"),"")%%");
myPix = new Array ("%%SELECTCASE(LENGTH({{USMBBASE}})>0,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{USMBBASE}},"_01.jpg"), CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_01.jpg"))%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=2,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_02.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=2, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_02.jpg"),{{IMG-COUNT}} >=2,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_02.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=4,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_04.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=4, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_04.jpg"),{{IMG-COUNT}} >=4,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_04.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=5,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_05.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=5, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_05.jpg"),{{IMG-COUNT}} >=5,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_05.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=6,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_06.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=6, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_06.jpg"),{{IMG-COUNT}} >=6,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_06.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=7,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_07.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=7, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_07.jpg"),{{IMG-COUNT}} >=7,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_07.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=8,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_08.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=8, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_08.jpg"),{{IMG-COUNT}} >=8,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_08.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=9,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_09.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=9, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_09.jpg"),{{IMG-COUNT}} >=9,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_09.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=10,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_10.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=10, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_10.jpg"),{{IMG-COUNT}} >=10,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_10.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=11,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_11.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=11, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_11.jpg"),{{IMG-COUNT}} >=11,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_11.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=12,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_12.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=12, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_12.jpg"),{{IMG-COUNT}} >=12,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_12.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=13,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_13.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=13, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_13.jpg"),{{IMG-COUNT}} >=13,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_13.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=14,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_14.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=14, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_14.jpg"),{{IMG-COUNT}} >=14,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_14.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=15,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_15.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=15, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_15.jpg"),{{IMG-COUNT}} >=15,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_15.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=16,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_16.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=16, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_16.jpg"),{{IMG-COUNT}} >=16,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_16.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=17,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_17.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=17, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_17.jpg"),{{IMG-COUNT}} >=17,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_17.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=18,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_18.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=18, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_18.jpg"),{{IMG-COUNT}} >=18,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_18.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=19,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_19.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=19, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_19.jpg"),{{IMG-COUNT}} >=19,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_19.jpg"),"")%%","%%SELECTCASE(LENGTH({{USMBBASE}})>0 AND {{IMG-COUNT}} >=20,CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{USMBBASE}},LENGTH({{USMBBASE}})-4),"_20.jpg"),Contains(TOLOWER({{IMGPARENT}}),"true") AND {{IMG-COUNT}} >=20, CONCATENATE("http://www.affordabletool.com/images/products_hires/",LEFT({{ITEMSKU}},LENGTH({{ITEMSKU}})-4),"_20.jpg"),{{IMG-COUNT}} >=20,CONCATENATE("http://www.affordabletool.com/images/products_hires/",{{ITEMSKU}},"_20.jpg"),"")%%");
</script>
These are business rules up to 20 images.. so for instance this SKU USMB-AYP-340BP-002 has an image count of 7 so these business rules would pull back this
So i can mess with the business rules to interject < > or what ever but from there how could i get it to work with Juicebox with one instance of the jbcore and the config would be in the script..