Auto Update for SearchSpring Images/ Any other searchspring things
<head>
<mvt:if expr="g.start">
<mvt:if expr="l.settings:all_products:page_links:current_page EQ l.settings:all_products:page_links:last_page">
<title>&mvt:all_products:total_prod_count; Products Updated</title>
<mvt:else>
<title>&mvt:global:Offset; of &mvt:all_products:total_prod_count;</title>
</mvt:if>
<mvt:if expr="l.settings:all_products:page_links:current_page NE l.settings:all_products:page_links:last_page">
<meta http-equiv="refresh" content="0;URL='&mvt:global:sessionurl;Screen=&mvt:global:Screen;&&mvte:all_products:page_links:next_link_params;&start=&mvt:global:start;'" />
</mvt:if>
<mvt:else>
<title>Auto Update for SearchSpring Customfields</title>
</mvt:if>
</head>
<mvt:item name="all_products" />
<mvt:if expr="l.settings:all_products:page_links:last_page GT 1">
<mvt:if expr="ISNULL g.start">
<a href="&mvt:global:sessionurl;Screen=&mvt:global:Screen;&start=1">Start Auto Update for Products.</a><br />
This will update the following custom fields:<br />
<ul>
<li>ss_image</li>
<ul>
<li>If there is a main image, it will pass through the cropped verison. (255x333)</li>
<li>If there is no main image, it will use the full size image vs. the thumbnail</li>
</ul>
<li>gd_star</li>
<ul>
<li>This will update the Glendale Stars (written to customfield)</li>
</ul>
</ul>
</mvt:if>
<div style="display:none;">
<span class="page-links-title">Page(s):</span>
<span class="page-links-container">
<mvt:if expr="l.settings:all_products:page_links:current_page NE 1">
<a href="&mvt:global:sessionurl;Screen=&mvt:global:Screen;&&mvte:all_products:page_links:prev_link_params;&start=&mvt:global:start;" class="page-links-previous"><</a>
</mvt:if>
<mvt:if expr="l.settings:all_products:page_links:current_page NE l.settings:all_products:page_links:last_page">
<a href="&mvt:global:sessionurl;Screen=&mvt:global:Screen;&&mvte:all_products:page_links:next_link_params;&start=&mvt:global:start;" class="page-links-next" id="page-links-next">></a>
</mvt:if>
</span>
</div>
</mvt:if>
<mvt:if expr="g.start">
<mvt:if expr="l.settings:all_products:page_links:current_page EQ l.settings:all_products:page_links:last_page">
COMPLETE<br/><br/>
<mvt:else>
<h1>&mvt:global:Offset; Products Updated out of &mvt:all_products:total_prod_count;</h1>
</mvt:if>
<mvt:foreach iterator="product" array="all_products:products">
<mvt:if expr="l.settings:product:imagetypes:main">
<mvt:item name="customfields" param="Write_Product_Code( l.settings:product:code, 'ss_image', l.settings:product:imagetypes:main )" />
<mvt:else>
<mvt:item name="customfields" param="Write_Product_Code( l.settings:product:code, 'ss_image', l.settings:product:image )" />
</mvt:if>
<mvt:item name="customfields" param="Write_Product_Code( l.settings:product:code, 'gd_star', l.settings:product:gd_ratings:rating )" />
<mvt:item name="gd_ratings" param="stars" />
</mvt:foreach>
</mvt:if>