Error After Installing Magento 2 Go to – “D:\xampp\htdocs\mage2\vendor\magento\framework\View\Element\Template\File\”. Open The file name Validator.php Search for “$this->fileDriver->getRealPath“, you will find the similar code. Replace them with… Read More →
Refused to apply style because its MIME type (‘text/html’) is not a supported stylesheet MIME type
April 24, 2019
After installtion magento 2 you can see a error like MIME type not supported. To fix this: Use 2 comment: php bin/magento setup:static-content:deploy -f -s… Read More →
How to Filter Products Based on Attribute Value & Attribute set | magento | Magento 1.9
November 2, 2017
You can follow the code : <?php ob_start(); ini_set(‘max_execution_time’, 0); set_time_limit(0); ignore_user_abort(true); require_once ‘/chroot/home/powerme1/powermedicalsupplies.com/html/app/Mage.php’; Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); $_write = Mage::getSingleton(‘core/resource’)->getConnection(‘core_write’); $_read = Mage::getSingleton(‘core/resource’)->getConnection(‘core_read’); $collection = Mage::getModel(‘catalog/product’)->getCollection()->addAttributeToFilter(‘attribute_set_id’,9)->addAttributeToFilter(‘brand’, array(‘eq’… Read More →
On Magento 1x You can easily edit this area by going path app/design/adminhtml/default/default/template/sales/order/view/ and all of the admin order details content you get from here…. Read More →
Create a event observer after order submit Magento 1x
October 24, 2017
Create a event observer after order submit. Bellow code is need to add in your module path/etc/config.xml if you have already adminhtml tag then just… Read More →
If you have a custom table which has model Mage::getModel(‘mynews/mynews’); then you can easily insert , select , update & delete data from your table… Read More →