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 | |
| require 'app/Mage.php'; | |
| Mage::app('admin'); | |
| $resource = Mage::getSingleton('core/resource'); | |
| /* @var $resource Mage_Core_Model_Resource */ | |
| $conn = $resource->getConnection('core_write'); | |
| /* @var $conn Varien_Db_Adapter_Interface */ |
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 | |
| /** | |
| class required this modul: | |
| https://github.com/integer-net/Autoshipping | |
| */ | |
| class Custom_Module_Helper_Eu_Shipment | |
| extends Mage_Core_Helper_Abstract | |
| { |
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 | |
| if(php_sapi_name() != 'cli') | |
| { | |
| die('only via cli'); | |
| } | |
| require 'app/Mage.php'; | |
| umask(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 | |
| /* | |
| * @copyright Copyright (c) 2013 by ESS-UA. | |
| */ | |
| /** | |
| * Configures the store settings to match account settings and order information | |
| */ | |
| class Ess_M2ePro_Model_Magento_Quote_Store_Configurator |
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
| #!/bin/bash | |
| # combine mozjpeg and jpegoptim | |
| # you have to build https://github.com/mozilla/mozjpeg first | |
| # path = /opt/mozjpeg | |
| # ~# find . -iname "*.jp*g" -type f -exec jpegcompress "{}" \; | |
| if [ -z "$1" ]; then | |
| echo "is empty" | |
| exit; |
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 | |
| if(php_sapi_name() != 'cli') | |
| { | |
| echo "only for cli!"; | |
| exit; | |
| } | |
| require 'app/Mage.php'; | |
| Mage::app('admin'); |
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 | |
| class Custom_MyModule_Helper_Search | |
| extends Mage_CatalogSearch_Helper_Data | |
| { | |
| public function getSearchableDataFromCategory($productId, $storeId) | |
| { | |
| $result = array(); | |
| $default = Mage::app()->getStore($storeId)->getRootCategoryId(); | |
| $adapter = Mage::getSingleton('core/resource')->getConnection('core_read'); |
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 | |
| class Observer | |
| { | |
| /** | |
| * mageEvent: <controller_action_predispatch_checkout_cart_add> | |
| * | |
| */ | |
| public function addDisableValidatFromKey(Varien_Event_Observer $observer) | |
| { | |
| $controller = $observer->getControllerAction(); |
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
| Creates an Trivial Repository for OE 2.2 Based on Data from http://git.opendreambox.org/ | |
| while creating the repository there will be a new folder "../signed". | |
| I need this folder, so i do not double sign a package. |
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
| <script type="text/javascript"> | |
| Product.Config.prototype.fillSelect = function(element){ | |
| var attributeId = element.id.replace(/[a-z]*/, ''); | |
| var options = this.getAttributeOptions(attributeId); | |
| this.clearSelect(element); | |
| element.options[0] = new Option('', ''); | |
| element.options[0].innerHTML = this.config.attributes[attributeId].label + ' <?php echo $this->__('Choose') ?>'; | |
| var prevConfig = false; | |
| if(element.prevSetting){ |