I have almost succeeded in implementing an add to cart on extended info pages without popups. I do this with some simple coding and customvar. But need to pick up Section ID to make cart work.
Where can I find it?
Where can I find it?
Displaying SID on each page In Actinic / Advanced / Custom Properties, create a property called:- SHOWSID In Design / Options / Site Defaults / Properties, click the "+" and select SHOWSID. Set its value to 1, Uncheck "Searchable" and check "Use as CUSTOMVAR". Go to Design / Text / Goto / Phase -1, ID 2281 and right click the entry and select Zoom. change the line <INPUT TYPE=HIDDEN NAME="SID" VALUE="%s"> to <INPUT TYPE=HIDDEN NAME="SID" id="SID" VALUE="%s"> OK out. Edit Act_ProductBody.html and look for the line NETQUOTEVAR:BOTTOMSECTIONSEPARATOR Insert the following code immediately above it:- <script language="JavaScript"> <!-- Show Section ID if ( 0CUSTOMVAR:SHOWSID && document.getElementById("SID") ) document.write('SID: ' + document.getElementById("SID").value); //--> </script> This will now display the Section ID at the bottom of every product page. That's all patching done. Now preview your site (V7's live preview is fine) and at the bottom of every product page you should see something like:- (if using XP-SP2 you may need to allow the display of active content) SID: 2 You can turn off the display of "SID: n" on every page by going to Design / Options / Site Defaults / Properties and setting SHOWSID to 0. Likewise if you add several new sections then just temporarily set SHOWSID to 1 to see what's new.
Comment