This file contains hidden or 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
FileETag none | |
<IfModule mod_expires.c> | |
ExpiresActive on | |
ExpiresDefault "access plus 1 month" | |
ExpiresByType text/html "access" | |
ExpiresByType text/xml "access plus 60 minutes" | |
ExpiresByType text/css "access plus 1 month" | |
ExpiresByType text/plain "access plus 1 month" | |
ExpiresByType text/javascript "access plus 1 month" |
This file contains hidden or 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
<?php | |
$filename = "my-csv-file-".date("Y-m-d").".csv"; | |
ob_start( ini_get('zlib.output_compression')? 'ob_gzhandler' : '' ); | |
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); | |
header("Cache-Control: no-store, no-cache, must-revalidate"); | |
header("Cache-Control: post-check=0, pre-check=0", false); | |
header("Pragma: public"); | |
header("Cache-Control: max-age=0"); |
This file contains hidden or 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
<?php | |
ini_set('display_errors',1); | |
ini_set('error_reporting', E_ALL); | |
header("Cache-Control: no-store, no-cache, must-revalidate"); | |
header("Cache-Control: post-check=0, pre-check=0", false); | |
header("Pragma: no-cache"); | |
// default display mode | |
//$display_mode='formatted'; |
This file contains hidden or 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
<?php | |
$oldpath = "./in/"; | |
$newpath = "./out/"; | |
$dir_iterator = new RecursiveDirectoryIterator($oldpath); | |
$iterator = new RecursiveIteratorIterator($dir_iterator, RecursiveIteratorIterator::SELF_FIRST); | |
$files_all = $files_copied = $files_replaced = 0; |
This file contains hidden or 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
<?php | |
/** | |
* Magento META data populator for us with Mageworx SEO Suite Ultimate. | |
* Copyright Juicy Media Ltd | |
* | |
* Features: | |
* -> wipes META description and title | |
* -> updates META keywords based on product description | |
* | |
* Usage: |
This file contains hidden or 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
diff --git app/code/core/Mage/Core/Model/Store.php app/code/core/Mage/Core/Model/Store.php | |
index 66a94f5..1a146a5 100644 | |
--- app/code/core/Mage/Core/Model/Store.php | |
+++ app/code/core/Mage/Core/Model/Store.php | |
@@ -106,6 +106,12 @@ class Mage_Core_Model_Store extends Mage_Core_Model_Abstract | |
*/ | |
const MEDIA_REWRITE_SCRIPT = 'get.php/'; | |
+ | |
+ /** |
This file contains hidden or 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
diff --git app/code/core/Mage/Paypal/Model/Ipn.php app/code/core/Mage/Paypal/Model/Ipn.php | |
index 730d09b..eb5f0e0 100644 | |
--- app/code/core/Mage/Paypal/Model/Ipn.php | |
+++ app/code/core/Mage/Paypal/Model/Ipn.php | |
@@ -139,8 +139,20 @@ class Mage_Paypal_Model_Ipn | |
$this->_debugData['postback'] = $sReq; | |
$this->_debugData['postback_to'] = $this->_config->getPaypalUrl(); | |
+ /** | |
+ * Array of http headers required by PayPal |
This file contains hidden or 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
<?php | |
define('_JEXEC', 1); | |
define('DS', DIRECTORY_SEPARATOR); | |
if (file_exists(dirname(__FILE__) . '/defines.php')) { | |
include_once dirname(__FILE__) . '/defines.php'; | |
} | |
if (!defined('_JDEFINES')) { |
This file contains hidden or 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
diff --git app/code/core/Mage/Paypal/Model/Cart.php app/code/core/Mage/Paypal/Model/Cart.php | |
index 999d3b8..4d625ca 100644 | |
--- app/code/core/Mage/Paypal/Model/Cart.php | |
+++ app/code/core/Mage/Paypal/Model/Cart.php | |
@@ -281,9 +281,11 @@ class Mage_Paypal_Model_Cart | |
// regular items from the sales entity | |
$this->_items = array(); | |
+ $excludeTaxSum = 0; | |
foreach ($this->_salesEntity->getAllItems() as $item) { |