CMS MADE SIMPLE FORGE

Cart

 

[#8553] Erase cart on FEU Logout

avatar
Created By: Tomáš Havlas (tomas.havlas)
Date Submitted: 2012-10-20 15:58

Assigned To: Robert Campbell (calguy1000)
Resolution: None
State: Open
Summary:
Erase cart on FEU Logout
Detailed Description:
Hello,

I think that content of cart should be erased when user logout. A simple
solution is to create file "event.FrontEndUsers.OnLogout.php" with content:
if( !isset($gCms) ) exit;
$this->EraseCart();

and add/remove event handlers on install/uninstall:
method.install.php: $this->AddEventHandler('FrontEndUsers','OnLogout',false);
method.uninstall.php: $this->RemoveEventHandler('FrontEndUsers','OnLogout');

History