Friday, September 21, 2012
Magento : How to change product folder name in media
Rename product folder( media/catalog/product) to any name (like custom_product)
You need to change from all media path ‘product’ to ‘products’ to below listed files.
file_exists(Mage::getBaseDir('media').DS.'catalog'.DS.'product'.DS.$size.DS.$image)
to
file_exists(Mage::getBaseDir('media').DS.'catalog'.DS.'custom_product '.DS.$size.DS.$image)
Replace following code 'catalog/product/' to 'catalog/custom_product/' in following files
Product/Attribute/Frontend/Image.php
Product/Attribute/Media/Image.php
Product/Image.php
Product/Media/Config.php
Entity/Product/Attribute/Frontend/Image.php
You need to change from all media path ‘product’ to ‘products’ to below listed files.
file_exists(Mage::getBaseDir('media').DS.'catalog'.DS.'product'.DS.$size.DS.$image)
to
file_exists(Mage::getBaseDir('media').DS.'catalog'.DS.'custom_product '.DS.$size.DS.$image)
Replace following code 'catalog/product/' to 'catalog/custom_product/' in following files
Product/Attribute/Frontend/Image.php
Product/Attribute/Media/Image.php
Product/Image.php
Product/Media/Config.php
Entity/Product/Attribute/Frontend/Image.php
Labels:
Magento
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
[フレーム]