Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aroundSave always set Abandonedcart to Inactive #24

Closed
phupt opened this issue Feb 21, 2017 · 1 comment
Closed

aroundSave always set Abandonedcart to Inactive #24

phupt opened this issue Feb 21, 2017 · 1 comment

Comments

@phupt
Copy link

phupt commented Feb 21, 2017

Line of code: !$this->_objectManager->create('\Ebizmarts\Mandrill\Helper\Data')->isActive($config->getStore()) always return false;

public function aroundSave(\Magento\Config\Model\config $config,\Closure $proceed)
{

    $ret = $proceed();
    
    $sectionId = $config->getSection();
    if($sectionId=='abandonedcart'&&!$this->_objectManager->create('\Ebizmarts\Mandrill\Helper\Data')->isActive($config->getStore()))
    {

        $this->_writer->save(\Ebizmarts\AbandonedCart\Model\Config::ACTIVE,0,$config->getScope(),$config->getScopeId());
    }
    
    return $ret;
    
}
@phupt phupt closed this as completed Feb 21, 2017
@phupt
Copy link
Author

phupt commented Feb 21, 2017

Move to abandoned cart github
ebizmarts/magento2-abandonedcart#9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant