Re: Image Machine and Using Toolkit Functions to display an Image type
Hey Bill,
I'm still having trouble with this, I feel like I'm using the wrong entity for the images url . . . because the frame for the image is popping up but the image for the product isn't showing. Here's the code I have so far, please tell me where I should tweak.
The foreach for "newpoduct" is confusing me I think because I don't know what entities to place in the "img" tag, etc. and make it work with the customimagec toolkit and making those work together.
Thanks for all of your help Bill . . . sorry I'm not understanding this . . . Please view my code below. Thanks.
<mvt:item name="html_profile" />
<head>
<title>&mvt:store:name;: New Stuff</title>
<base href="&mvt:global:basehref;" />
<mvt:item name="head" param="css_list" />
<mvt:item name="head" param="head_tag" />
</head>
<body class="newstuff">
<div id="site-container">
<div id="topBar"><mvt:item name="navbar" /></div>
<header><mvt:item name="hdft" param="global_header" /></header>
<div id="breadcrumbs"><mvt:item name="breadcrumbs" /></div>
<div id="content-container">
<aside><mvt:item name="category_tree" /></aside>
<div id="main-content">
<div id="page-header"><mvt:item name="hdft" param="header" /></div>
<h1>New Stuff <span class="red">Bucket</span></h1>
<mvt:item name="toolkit" param="last|pcount|30" />
<mvt:if expr="pcount GT 0">
<mvt:foreach iterator="newproduct" array="new">
<mvt:item name="toolkit" param="customimagec|ipath|l.all_settings:newproduc t:code||150|150|" />
<div class="product-item" style="width:25%">
<div class="padding">
<div class="product-details">
<mvt:if expr="g.ipath AND (NOT ISNULL l.settings:toolkitadditionalimages[1]:generated:image)">
<div class="product-thumbnail">
<a href="&mvt:global:sessionurl;Screen=PROD&Product_C ode=&mvta:newproduct:code;&Store_Code=&mvta:store: code;" title="&mvte:newproduct:name;">
<img src="&mvt:global:imageroot;&mvte:global:session:ca che:productimagecustomfields:productimage:imagedat a[1]:image:image;">
</a>
</div>
</mvt:if>
<div class="product-name">
<a href="&mvt:global:sessionurl;Screen=PROD&Product_C ode=&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>
<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields :msrp">
<mvt:item name="toolkit" param="math_subtract|difference|&mvt:category_list ing:products[1]:customfield_values:customfields:msrp;|l.all_setti ngs:product:price" />
<mvt:item name="toolkit" param="currencyformat|formatted_savings|difference " />
<div class="product-savings">Savings: &mvt:global:formatted_savings;&mvt:global:differen ce;</div>
</mvt:if>
<mvt:if expr="l.settings:product:inv_active">&mvt:product: inv_long;<br></mvt:if>
<mvt:if expr="l.settings:product:quantity EQ 0">
<mvt:else>
<div class="product-quantity">Quantity in Basket:
<span class="italic">&mvt:product:quantity;</span>
</mvt:if>
</div>
</div>
</div>
</mvt:foreach>
</mvt:if>
<div id="page-footer"><mvt:item name="hdft" param="footer" /></div>
</div>
</div>
<div id="bottom-wrap"></div>
<mvt:item name="hdft" param="global_footer" />
</div>
</body>
</html>
Hey Bill,
I'm still having trouble with this, I feel like I'm using the wrong entity for the images url . . . because the frame for the image is popping up but the image for the product isn't showing. Here's the code I have so far, please tell me where I should tweak.
The foreach for "newpoduct" is confusing me I think because I don't know what entities to place in the "img" tag, etc. and make it work with the customimagec toolkit and making those work together.
Thanks for all of your help Bill . . . sorry I'm not understanding this . . . Please view my code below. Thanks.
<mvt:item name="html_profile" />
<head>
<title>&mvt:store:name;: New Stuff</title>
<base href="&mvt:global:basehref;" />
<mvt:item name="head" param="css_list" />
<mvt:item name="head" param="head_tag" />
</head>
<body class="newstuff">
<div id="site-container">
<div id="topBar"><mvt:item name="navbar" /></div>
<header><mvt:item name="hdft" param="global_header" /></header>
<div id="breadcrumbs"><mvt:item name="breadcrumbs" /></div>
<div id="content-container">
<aside><mvt:item name="category_tree" /></aside>
<div id="main-content">
<div id="page-header"><mvt:item name="hdft" param="header" /></div>
<h1>New Stuff <span class="red">Bucket</span></h1>
<mvt:item name="toolkit" param="last|pcount|30" />
<mvt:if expr="pcount GT 0">
<mvt:foreach iterator="newproduct" array="new">
<mvt:item name="toolkit" param="customimagec|ipath|l.all_settings:newproduc t:code||150|150|" />
<div class="product-item" style="width:25%">
<div class="padding">
<div class="product-details">
<mvt:if expr="g.ipath AND (NOT ISNULL l.settings:toolkitadditionalimages[1]:generated:image)">
<div class="product-thumbnail">
<a href="&mvt:global:sessionurl;Screen=PROD&Product_C ode=&mvta:newproduct:code;&Store_Code=&mvta:store: code;" title="&mvte:newproduct:name;">
<img src="&mvt:global:imageroot;&mvte:global:session:ca che:productimagecustomfields:productimage:imagedat a[1]:image:image;">
</a>
</div>
</mvt:if>
<div class="product-name">
<a href="&mvt:global:sessionurl;Screen=PROD&Product_C ode=&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>
<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields :msrp">
<mvt:item name="toolkit" param="math_subtract|difference|&mvt:category_list ing:products[1]:customfield_values:customfields:msrp;|l.all_setti ngs:product:price" />
<mvt:item name="toolkit" param="currencyformat|formatted_savings|difference " />
<div class="product-savings">Savings: &mvt:global:formatted_savings;&mvt:global:differen ce;</div>
</mvt:if>
<mvt:if expr="l.settings:product:inv_active">&mvt:product: inv_long;<br></mvt:if>
<mvt:if expr="l.settings:product:quantity EQ 0">
<mvt:else>
<div class="product-quantity">Quantity in Basket:
<span class="italic">&mvt:product:quantity;</span>
</mvt:if>
</div>
</div>
</div>
</mvt:foreach>
</mvt:if>
<div id="page-footer"><mvt:item name="hdft" param="footer" /></div>
</div>
</div>
<div id="bottom-wrap"></div>
<mvt:item name="hdft" param="global_footer" />
</div>
</body>
</html>
Comment