Skip to content

Commit

Permalink
set scope config to store scope (cadencelabs#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed Apr 1, 2020
1 parent 5e523ed commit 8c91676
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,41 +46,41 @@ public function __construct(

public function isVisitorPixelEnabled()
{
return $this->_scopeConfig->getValue('cadence_fbpixel/visitor/enabled');
return $this->_scopeConfig->getValue('cadence_fbpixel/visitor/enabled', ScopeInterface::SCOPE_STORE);
}
public function isConversionPixelEnabled()
{
return $this->_scopeConfig->getValue("cadence_fbpixel/conversion/enabled");
return $this->_scopeConfig->getValue("cadence_fbpixel/conversion/enabled", ScopeInterface::SCOPE_STORE);
}

public function isAddToCartPixelEnabled()
{
return $this->_scopeConfig->getValue("cadence_fbpixel/add_to_cart/enabled");
return $this->_scopeConfig->getValue("cadence_fbpixel/add_to_cart/enabled", ScopeInterface::SCOPE_STORE);
}

public function isAddToWishlistPixelEnabled()
{
return $this->_scopeConfig->getValue('cadence_fbpixel/add_to_wishlist/enabled');
return $this->_scopeConfig->getValue('cadence_fbpixel/add_to_wishlist/enabled', ScopeInterface::SCOPE_STORE);
}

public function isInitiateCheckoutPixelEnabled()
{
return $this->_scopeConfig->getValue('cadence_fbpixel/inititiate_checkout/enabled');
return $this->_scopeConfig->getValue('cadence_fbpixel/inititiate_checkout/enabled', ScopeInterface::SCOPE_STORE);
}

public function isViewProductPixelEnabled()
{
return $this->_scopeConfig->getValue('cadence_fbpixel/view_product/enabled');
return $this->_scopeConfig->getValue('cadence_fbpixel/view_product/enabled', ScopeInterface::SCOPE_STORE);
}

public function isSearchPixelEnabled()
{
return $this->_scopeConfig->getValue('cadence_fbpixel/search/enabled');
return $this->_scopeConfig->getValue('cadence_fbpixel/search/enabled', ScopeInterface::SCOPE_STORE);
}

public function getVisitorPixelId()
{
return $this->_scopeConfig->getValue("cadence_fbpixel/visitor/pixel_id");
return $this->_scopeConfig->getValue("cadence_fbpixel/visitor/pixel_id", ScopeInterface::SCOPE_STORE);
}

/**
Expand Down

0 comments on commit 8c91676

Please sign in to comment.