resetGetCartOpen SiteCatalyst Plug-in

The resetGetCartOpen plug-in looks for an instance of the purchase event and then allows the scOpen event to be set again if a new shopping cart is created. This should be used with the getCartOpen plug-in.

Plug-in Prototype
s.resetGetCartOpen();

Example
The plug-in is used with the s.events call.

s.events=s.resetGetCartOpen();

Code

/*
 * Plugin: resetGetCartOpen
 */
s.resetGetCartOpen=new Function("" +"var s=this,t=new
Date,e=s.events?s.events:'';t.setTime(t.getTime()+"
+"10000);if(e.indexOf('purchase')>-1){if(s.c_r('s_scOpen')||e.indexOf"
+"('scOpen')>-1){if(!s.c_w('s_scOpen','',t)){s.c_w('s_scOpen','',0);}"
+"}}return e");