Hi guys,
I am trying to go live with our webstore, but I am in need of some NitroScript functions that are not available in the “Customizing Your Webstore with NitroScript.pdf”. Nor are these functions present in my template’s code…
I am attempting to implement a product image showcase feature on our ‘Product Page’. The design provided to us uses functions like:
{ns:getProductImage} - Returns an <img> tag with ‘align=“left”’ and other attributes/values that are messing up my mojo…
product[‘has_enlarged_images’]
product[‘has_image_views’]
{ifThereAre additionalviews}
{additionalview[‘link’]} - Returns a javascript function to change the image of the current product image slider
{additionalview[‘thumbnail_image’]} - I need the additional view’s ‘default size’ image, not the thumbnail
{additionalview[‘name’]}
What I need is the product image’s url(s) and the additional view’s url(s) as a string. No compiled tags or links. Just urls.
Inevitably, I will need additional functions, but I do not desire to undergo paid training. I am familiar with object-oriented programming. I simply need a reference sheet of some kind that has a complete list of functions that can be used in my webstore.
Does anybody know where little ol’ me can find such a magic sheet of awesomeness? Any help would be greatly appreciated!
Thanks in advance!
So essentially, this is the HTML the design outputs:
<div id="product-image-table">
<div id="product-image-wrap" class="center-img">
<a href="/product_images/18/4301/large-antec-vsk3000e-matx-case.jpg" class="popupBoxImages">
<img class="image" alt="ANTEC VSK3000E MATX CASE" title="ANTEC VSK3000E MATX CASE" src="/product_images/18/4301/antec-vsk3000e-matx-case.jpg" id="productphoto" name="productphoto" align="left" border="0">
<script> var arrProductImages = []; var originalProductImage = 'antec-vsk3000e-matx-case.jpg';arrProductImages.push({ href: getProductImageSource('large')});arrProductImages.push({ href: getProductImageSource('largedefault2')});arrProductImages.push({ href: getProductImageSource('largedefault3')});arrProductImages.push({ href: getProductImageSource('largedefault4')});originalProductImage = 'antec-vsk3000e-matx-case.jpg';
</script>
</a>
</div>
<p id="productviews">
<a href="javascript:changeProductPhotoView('','antec-vsk3000e-matx-case.jpg')">
<img src="/product_images/18/4301/thumb-antec-vsk3000e-matx-case.jpg" alt="" border="0" align="absmiddle" style="height:70px;">
</a>
<a href="javascript:changeProductPhotoView('default2');">
<img src="/product_images/18/4301/thumbdefault2-antec-vsk3000e-matx-case.jpg" alt="" border="0" align="absmiddle" style="height:70px;">
</a>
<a href="javascript:changeProductPhotoView('default3');">
<img src="/product_images/18/4301/thumbdefault3-antec-vsk3000e-matx-case.jpg" alt="" border="0" align="absmiddle" style="height:70px;"></a>
<a href="javascript:changeProductPhotoView('default4');">
<img src="/product_images/18/4301/thumbdefault4-antec-vsk3000e-matx-case.jpg" alt="" border="0" align="absmiddle" style="height:70px;"></a>
</p>
</div>
But I need the NitroScript to output this:
<div class="display-container">
<div class="display-wrap">
<a href="/product_images/18/4301/large-antec-vsk3000e-matx-case.jpg">
<img src="/product_images/18/4301/antec-vsk3000e-matx-case.jpg" />
</a>
</div>
<ul class="display-thumbs elastislide-list">
<li>
<a href="#">
<img src="/product_images/18/4301/antec-vsk3000e-matx-case.jpg" data-largeimg="/product_images/18/4301/large-antec-vsk3000e-matx-case.jpg" />
</a>
</li>
<li>
<a href="#">
<img src="/product_images/18/4301/default2-antec-vsk3000e-matx-case.jpg" data-largeimg="/product_images/18/4301/largedefault2-antec-vsk3000e-matx-case.jpg" />
</a>
</li>
<li>
<a href="#">
<img src="/product_images/18/4301/default3-antec-vsk3000e-matx-case.jpg" data-largeimg="/product_images/18/4301/largedefault3-antec-vsk3000e-matx-case.jpg" />
</a>
</li>
<li>
<a href="#">
<img src="/product_images/18/4301/default4-antec-vsk3000e-matx-case.jpg" data-largeimg="/product_images/18/4301/largedefault4-antec-vsk3000e-matx-case.jpg" />
</a>
</li>
<li>
<a href="#">
<img src="/product_images/18/4301/antec-vsk3000e-matx-case.jpg" data-largeimg="/product_images/18/4301/large-antec-vsk3000e-matx-case.jpg" />
</a>
</li>
<li>
<a href="#">
<img src="/product_images/18/4301/default2-antec-vsk3000e-matx-case.jpg" data-largeimg="/product_images/18/4301/largedefault2-antec-vsk3000e-matx-case.jpg" />
</a>
</li>
</ul>
</div>