Hey Guys! I have a questions about getting images to display from an "image type" as thumbnail on special created template/page.
Let me explain the setup . . .
I created a page template that is being used to display 30 new current products added to the store. I'm using a toolkit function to make this happen. The toolkit function I am using is the "last" function (#42). Here's an example of the current code I'm using.
The image type or default type name I would like to use for the thumbnails is "main_front_1". I'm not sure of how to get the thumbnails to display in the above code, I've tried the following to no avail :(
I would like to do the same thing for my best sellers or top sellers page. the setup on this page is the same as the above but uses the "bestseller_recent" #149 toolkit function. Here's the code you'll find that it is similar to the above.
If I could also get the code to make image machine work on this page would be great as well. Thanks for reading and all of your help in advance.
- ThePen
Let me explain the setup . . .
I created a page template that is being used to display 30 new current products added to the store. I'm using a toolkit function to make this happen. The toolkit function I am using is the "last" function (#42). Here's an example of the current code I'm using.
Code:
<mvt:item name="toolkit" param="last|pcount|30" /> <mvt:if expr="pcount GT 0"> <mvt:foreach iterator="newproduct" array="new"> <div class="product-item" style="width:25%"> <div class="padding"> <div class="product-details"> <div class="product-thumbnail"> <mvt:if expr="NOT ISNULL l.settings:newproduct:thumbnails"> <a href="&mvt:global:sessionurl;Screen=PROD&Product_Code=&mvta:newproduct:code;&Store_Code=&mvta:store:code;"> <img src="&mvt:newproduct:thumbnails;"/> <mvt:else> <a class="thumbnail-not-available" href="&mvt:global:sessionurl;Screen=PROD&Product_Code=&mvta:newproduct:code;&Store_Code=&mvta:store:code;" title="&mvte:newproduct:name;"> </mvt:if> </a> </div> <div class="product-name"><a href="&mvt:global:sessionurl;Screen=PROD&Product_Code=&mvta:newproduct:code;&Store_Code=&mvta:store:code;">&mvt:newproduct:name;</a></div> <div class="product-price">Price: <span class="bold">&mvt:newproduct:formatted_price;</span></div>
Code:
<mvt:if expr="NOT ISNULL l.settings:newproduct:imagetype:main_front_1"> <img src="&mvt:newproduct:imagetype:main_front_1;"/>
Code:
<mvt:item name="toolkit" param="bestseller|pcount|ALL|8" /> <mvt:if expr="pcount GT 0"> <mvt:foreach iterator="bestsell" array="bestseller"> <div class="product-item" style="width:25%"> <div class="padding"> <div class="product-details"> <div class="product-thumbnail"> <mvt:if expr="NOT ISNULL l.settings:bestsell:thumbnail"> <a href="&mvt:global:sessionurl;Screen=PROD&Product_Code=&mvta:bestsell:code;&Store_Code=&mvta:store:code;"> <img src="&mvte:bestsell:thumbnail;" alt="&mvte:bestsell:name;" /> <mvt:else> <a class="thumbnail-not-available" href="&mvt:global:sessionurl;Screen=PROD&Product_Code=&mvta:bestsell:code;&Store_Code=&mvta:store:code;" title="&mvte:bestsell:name;"> </mvt:if> </a> </div> <div class="product-name"> <a href="&mvt:global:sessionurl;Screen=PROD&Product_Code=&mvta:bestsell:code;&Store_Code=&mvta:store:code;">&mvte:bestsell:name;</a> </div> <div class="product-price"> Price: <span class="bold">&mvte:bestsell:formatted_price;</span> </div>
- ThePen
Comment