Verschlagwortet: Magento

Magento: Validation of new gTLDs

At this moment it is not possible to validate the new global domain names (gTLDs) in Magento. Neither it is possible to use the new domain names in frontend nor in backend. Magento uses...

Magento: Performance-Optimierung bei Kategorie-Ansicht

Folgender Code kann die Performance von Kategorie-Ansichten enorm beschleunigen, denn diese kann besonders bei Bundle-Products ziemlich schlecht sein. Steigerungen von 400% konnte ich messen. Mage/Catalog/Block/Product/List.php protected function _construct() { $this->addData(array('cache_lifetime' => false)); } public...

Magento: Get resized catalog thumbnail image

My solution for generating a resized thumbnail image is to overwrite the  model class of catalog. Here my xml file: <?xml version="1.0"?> <config> <global> <models> <catalog> <rewrite> <category>YOURMODULE_SUBMODULE_Model_Catalog_Category</category> </rewrite> </catalog> </models> </global> </config> The...

Magento: Resize image

The original path is: path/to/magento/media/blog/<imagename> The path of the resized image is: path/to/magento/media/blog/resized/<imagename> public function resizeImg($fileName, $width, $height = null) { $folderURL = Mage::getBaseDir(Mage_Core_Model_Store::URL_TYPE_MEDIA). DS .'blog'. DS; $basePath = $folderURL . $fileName; $newPath =...