Hi
As it says in the title. Does any know if it is possible to link recent viewed products to ext info page.
Elliott
As it says in the title. Does any know if it is possible to link recent viewed products to ext info page.
Elliott
<actinic:block if="%3cactinic%3avariable%20name%3d%22IsStoreFrontPage%22%20%2f%3e" > <actinic:block php="true"> $handle = fopen('pid-xinfo.js', 'w'); fwrite($handle, "var xl=new Object();"); <actinic:block type="EntireSectionList"> <actinic:block type="ProductList"> <actinic:block if="%3cactinic%3avariable%20name%3d%22IsPopUpPageGenerated%22%20%2f%3e"> fwrite($handle, "xl['<actinic:variable name="ProductID"/>']='<actinic:variable name="ExtendedInfoPageName" encoding="perl" selectable="false" />';"); </actinic:block> </actinic:block> </actinic:block> fclose($handle); </actinic:block> </actinic:block> <script type="text/javascript" src="pid-xinfo.js"></script>
<a _HREF_=
<a onclick="if(xl['_PID_'])this.href=xl['_PID_'];" _HREF_=
<actinic:variable name="SearchResultsList" />
<span id="allsearchresults"> <actinic:variable name="SearchResultsList" /> </span> <script type="text/javascript"> function gotoextended(anc){ var bits = anc.href.match(/.*\#(.*)/); // extract anchor if ( bits != null ) { var pid = unescape(bits[1].substring(1).replace(/_/g,'%')); // convert anchor into product ID if ( xl[pid] ) anc.href = xl[pid]; // if Ext Info page, go to it } return true; } // add an onclick to all search results links that looks for the extended info page var slinks = document.getElementById('allsearchresults').getElementsByTagName('A'); for (var i=0; i<slinks.length; i++) { slinks[i].onclick = function(){gotoextended(this);}; } </script>
Comment