Module error message: MediabrowserUtility is not defined

If you install a custom module in Magento it could lack the TinyMce Mediabrowser. You get the following message then: error: error in [unknown object].fireEvent(): event name: open_browser_callback error message: MediabrowserUtility is not defined How to fix this? Quick fix In /app/design/adminhtml/default/default/layout/YOURMODULE.xml add: 1 js_cssprototype/windows/themes/default.css js_cssprototype/windows/themes/magento.css lib/prototype/windows/themes/magento.css Or change to Long solution (may not work) […]

Module error message: MediabrowserUtility is not defined Read More »

IWD Checkout refresh review after payment selection

With the IWD onestep checkout plugin, there’s a free method for one step checkouts. Though it still has a problem when you want to select a payment method, because it doesn’t refresh the review summary. This is feature is vital for payment methods that add service fee. Thanks to this plugin I found a code

IWD Checkout refresh review after payment selection Read More »

Add an image field in your admin plugin (by example AW Blog)

Add an image field to plugins like AW Blog Edit in /app/code/community/AW/Blog/Block/Manage/Blog/Edit/Tab/Form.php $fieldset->addField(‘filename’, ‘file’, array( ‘label’ => Mage::helper(‘blog’)->__(‘Image’), ‘required’ => false, ‘name’ => ‘filename’, ‘after_element_html’ => ‘Formaat 125 x 118 pixels’, )); Edit in /app/code/community/AW/Blog/controllers/Manage/BlogController.php after: public function saveAction() { if ($data = $this->getRequest()->getPost()) { Add: if(isset($_FILES[‘filename’][‘name’]) && $_FILES[‘filename’][‘name’] != ”) { try { /*

Add an image field in your admin plugin (by example AW Blog) Read More »

Table rates shipping based on price AFTER DISCOUNT – Magento

Magento has quite a big bug which enables the shipping module to calculate shipping costs without discount or shipping rules (if they are applied). It cost me hours to find a workaround, so if you use it, I’d really appreciate it if you refer to this blog. How I fixed it Go to: /app/code/local/Mage/Shipping/Model/Carrier/Tablerate.php Add

Table rates shipping based on price AFTER DISCOUNT – Magento Read More »

Magento import multiple images in dataflow csv/xml

Sometimes it’s really annoying that Magento only supports one image per product. On the Magento Commerce forum a solution is found: Now, what you need to do is open the file app/code/core/Mage/Catalog/Model/Convert/Adapter/Product.php and go to around line 773 and find $addedFilesCorrespondence = $mediaGalleryBackendModel->addImagesWithDifferentMediaAttributes( $product, $arrayToMassAdd, Mage::getBaseDir(‘media’) . DS . ‘import’, false, false ); and paste the following code right after it if (isset($importData[‘media_gallery’]) && !empty($importData[‘media_gallery’])) {

Magento import multiple images in dataflow csv/xml Read More »

Magento place order slow [FIXED]

The Magento “place order” step can take up to a minute. With thanks to this site I figured out how to fix slow checkouts. Step 1 Find the file app/code/core/Mage/Rss/etc/config.xml and uncomment/remove: <sales_order_save_after> <observers> <notifystock> <class>rss/observer</class> <method>salesOrderItemSaveAfterNotifyStock</method> </notifystock> </observers> </sales_order_save_after> <sales_order_save_after> <observers> <ordernew> <class>rss/observer</class> <method>salesOrderItemSaveAfterOrderNew</method> </ordernew> </observers> </sales_order_save_after> Step 2 Find the file app/code/core/Mage/Downloadable/etc/config.xml and uncomment/remove: <!–sales_order_item_save_commit_after> <observers>

Magento place order slow [FIXED] Read More »

sqlstate 23000 integrity constraint violation 1048 column ‘value’ cannot be null magento

How to solve the problem ‘sqlstate 23000 integrity constraint violation 1048 column ‘value’ cannot be null magento’? This problem is quite hard to identificate, because it’s hard to seek the right column ‘value’. Here is what I did in order to find out the problem. Start the import process and see on which record number

sqlstate 23000 integrity constraint violation 1048 column ‘value’ cannot be null magento Read More »

Scroll to Top