Esempio n. 1
0
 public function resetAction()
 {
     $params = $this->getRequest()->getParams();
     $config = new Clearcode_Addshoppers_Helper_Config($params['store']);
     $config->setButtonsCode($this->defaultButtons);
     $config->setEnabled(1);
     $config->setActive(0);
     $config->setSocialEnabled(1);
     $config->setOpenGraphEnabled(1);
     $config->setEmail('');
     $config->setPassword('');
     $config->setCategory('');
     $config->setShopId($this->defaultShopId);
     $config->setApiKey('');
     $config->setUrl('');
     $config->setSchemaEnabled(1);
     $config->setPlatform('magento');
     Mage::app()->getCache()->clean();
     $this->redirectBack($params['store']);
 }