Exemplo n.º 1
0
 public function salesharingAction()
 {
     $params = $this->getRequest()->getParams();
     $config = new Clearcode_Addshoppers_Helper_Config($params['store']);
     $enable = isset($params['config']['sales_sharing_enable']) ? 1 : 0;
     $config->setSalesSharingEnabled($enable);
     $config->setPopupTitle($params['config']['popup_title']);
     $config->setShareImage($params['config']['image_share']);
     $config->setShareUrl($params['config']['url_share']);
     $config->setShareTitle($params['config']['title_share']);
     $config->setShareDescription($params['config']['description_share']);
     Mage::app()->getCache()->clean();
     $this->redirectBack($params['store']);
 }