/** * Retrieve Wee tax attribute codes * * @param null|string|bool|int|Store $store * @param bool $forceEnabled * @return array */ public function getWeeeTaxAttributeCodes($store = null, $forceEnabled = false) { if (!$forceEnabled && !$this->weeeConfig->isEnabled($store)) { return []; } if ($this->_allAttributes === null) { $this->_allAttributes = $this->_attributeFactory->create()->getAttributeCodesByFrontendType('weee'); } return $this->_allAttributes; }
/** * Retrieve Wee tax attribute codes * * @param bool $forceEnabled * @return array */ public function getWeeeTaxAttributeCodes($forceEnabled = false) { if (!$forceEnabled && !$this->weeeConfig->isEnabled()) { return array(); } if (is_null($this->_allAttributes)) { $this->_allAttributes = $this->_attributeFactory->create()->getAttributeCodesByFrontendType('weee'); } return $this->_allAttributes; }
/** * Check if fixed taxes are used in system * * @param null|string|bool|int|Store $store * @return bool */ public function isEnabled($store = null) { return $this->_weeeConfig->isEnabled($store); }
/** * Display FPT row in subtotal or not * * @return bool */ public function isIncludedInSubtotal() { return $this->weeeConfig->isEnabled() && $this->weeeConfig->includeInSubtotal(); }