-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #323 from firegento/development
Release 2.5.0
- Loading branch information
Showing
111 changed files
with
154 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
* @author FireGento Team <[email protected]> | ||
* @copyright 2013-2015 FireGento Team (http://www.firegento.com) | ||
* @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) | ||
* @version 2.2.2 | ||
* @since 0.4.0 | ||
*/ | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
* @author FireGento Team <[email protected]> | ||
* @copyright 2013-2015 FireGento Team (http://www.firegento.com) | ||
* @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) | ||
* @version 2.2.2 | ||
* @since 1.1.4 | ||
*/ | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
* @author FireGento Team <[email protected]> | ||
* @copyright 2013-2015 FireGento Team (http://www.firegento.com) | ||
* @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) | ||
* @version 2.2.2 | ||
* @since 1.1.4 | ||
*/ | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
* @author FireGento Team <[email protected]> | ||
* @copyright 2013-2015 FireGento Team (http://www.firegento.com) | ||
* @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) | ||
* @version 2.2.2 | ||
* @since 0.4.0 | ||
*/ | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
* @author FireGento Team <[email protected]> | ||
* @copyright 2013-2015 FireGento Team (http://www.firegento.com) | ||
* @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) | ||
* @version 2.2.2 | ||
* @since 0.1.0 | ||
*/ | ||
|
||
/** | ||
|
@@ -79,9 +77,14 @@ public function getTaxRate() | |
*/ | ||
public function getFormattedTaxRate() | ||
{ | ||
if ($this->getTaxRate() === null | ||
|| $this->getProduct()->getTypeId() == 'bundle' | ||
) { | ||
if ($this->getTaxRate() === null) { | ||
return ''; | ||
} | ||
|
||
if ($this->getProduct()->getTypeId() === 'bundle' | ||
&& $this->getProduct()->getPriceType() == Mage_Bundle_Model_Product_Price::PRICE_TYPE_DYNAMIC) { | ||
// the tax rate for a bundle product with dynamic pricing is undefined | ||
// it cannot be configured in the backend and depends on the respective child products | ||
return ''; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
* @author FireGento Team <[email protected]> | ||
* @copyright 2013-2015 FireGento Team (http://www.firegento.com) | ||
* @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) | ||
* @version 2.2.2 | ||
* @since 0.1.0 | ||
*/ | ||
/** | ||
* Enhanced block for product price display of all products in spite of bundles (got own block!). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
* @author FireGento Team <[email protected]> | ||
* @copyright 2013-2015 FireGento Team (http://www.firegento.com) | ||
* @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) | ||
* @version 2.2.2 | ||
* @since 0.1.0 | ||
*/ | ||
|
||
/** | ||
|
@@ -171,7 +169,7 @@ public function getFormattedTaxRate() | |
public function isIncludingTax() | ||
{ | ||
if (!$this->getData('is_including_tax')) { | ||
$includesTax = Mage::helper('tax')->priceIncludesTax(); | ||
$includesTax = Mage::helper('tax')->getConfig()->getPriceDisplayType(); | ||
$this->setData('is_including_tax', $includesTax); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
* @author FireGento Team <[email protected]> | ||
* @copyright 2013-2015 FireGento Team (http://www.firegento.com) | ||
* @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) | ||
* @version 2.2.2 | ||
* @since 0.1.0 | ||
*/ | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
* @author FireGento Team <[email protected]> | ||
* @copyright 2013-2015 FireGento Team (http://www.firegento.com) | ||
* @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) | ||
* @version 2.2.2 | ||
* @since 0.1.0 | ||
*/ | ||
|
||
/** | ||
|
@@ -57,6 +55,7 @@ public function getAgreements() | |
} | ||
|
||
$this->_addRevocationProductTypesFilter($agreements); | ||
$agreements->setOrder('position', Varien_Data_Collection::SORT_ORDER_ASC); | ||
} | ||
|
||
$this->setAgreements($agreements); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
* @author FireGento Team <[email protected]> | ||
* @copyright 2013-2015 FireGento Team (http://www.firegento.com) | ||
* @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) | ||
* @version 2.2.2 | ||
* @since 0.1.0 | ||
*/ | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
* @author FireGento Team <[email protected]> | ||
* @copyright 2013-2015 FireGento Team (http://www.firegento.com) | ||
* @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) | ||
* @version 2.2.2 | ||
* @since 0.1.0 | ||
*/ | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
* @author FireGento Team <[email protected]> | ||
* @copyright 2013-2015 FireGento Team (http://www.firegento.com) | ||
* @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) | ||
* @version 2.2.2 | ||
* @since 0.1.0 | ||
*/ | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
* @author FireGento Team <[email protected]> | ||
* @copyright 2013-2015 FireGento Team (http://www.firegento.com) | ||
* @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) | ||
* @version 2.2.2 | ||
* @since 0.1.0 | ||
*/ | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
* @author FireGento Team <[email protected]> | ||
* @copyright 2013-2015 FireGento Team (http://www.firegento.com) | ||
* @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) | ||
* @version 2.2.2 | ||
* @since 1.0.5 | ||
*/ | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
* @author FireGento Team <[email protected]> | ||
* @copyright 2013-2015 FireGento Team (http://www.firegento.com) | ||
* @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) | ||
* @version 2.2.2 | ||
* @since 0.1.0 | ||
*/ | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
* @author FireGento Team <[email protected]> | ||
* @copyright 2013-2015 FireGento Team (http://www.firegento.com) | ||
* @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) | ||
* @version 2.2.2 | ||
* @since 0.1.0 | ||
*/ | ||
|
||
/** | ||
|
@@ -33,23 +31,29 @@ class FireGento_MageSetup_Helper_Data extends Mage_Core_Helper_Abstract | |
// Add support for Magento < 1.7 | ||
const XML_PATH_EU_COUNTRIES_LIST = 'general/country/eu_countries'; | ||
|
||
protected static $_shippingCostUrl; | ||
|
||
/** | ||
* Generate URL to configured shipping cost page, or '' if none. | ||
* | ||
* @return string Shipping cost url | ||
*/ | ||
public function getShippingCostUrl() | ||
{ | ||
/** @var $cmsPage Mage_Cms_Model_Page */ | ||
$cmsPage = Mage::getModel('cms/page') | ||
->setStoreId(Mage::app()->getStore()->getId()) | ||
->load(Mage::getStoreConfig('catalog/price/cms_page_shipping')); | ||
if (static::$_shippingCostUrl === null) { | ||
/** @var $cmsPage Mage_Cms_Model_Page */ | ||
$cmsPage = Mage::getModel('cms/page') | ||
->setStoreId(Mage::app()->getStore()->getId()) | ||
->load(Mage::getStoreConfig('catalog/price/cms_page_shipping')); | ||
|
||
if (!$cmsPage->getId() || !$cmsPage->getIsActive()) { | ||
return ''; | ||
if (!$cmsPage->getId() || !$cmsPage->getIsActive()) { | ||
static::$_shippingCostUrl = ''; | ||
} else { | ||
static::$_shippingCostUrl = Mage::getUrl(null, array('_direct' => $cmsPage->getIdentifier())); | ||
} | ||
} | ||
|
||
return Mage::helper('cms/page')->getPageUrl($cmsPage->getId()); | ||
return static::$_shippingCostUrl; | ||
} | ||
|
||
/** | ||
|
@@ -137,6 +141,7 @@ public function getDeliveryTimeFromProduct($product) | |
$deliveryTime = null; | ||
break; | ||
} | ||
|
||
return $deliveryTime; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
* @author FireGento Team <[email protected]> | ||
* @copyright 2013-2015 FireGento Team (http://www.firegento.com) | ||
* @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) | ||
* @version 2.2.2 | ||
* @since 0.2.0 | ||
*/ | ||
|
||
/** | ||
|
Oops, something went wrong.