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 »

BTW verhoging 21 procent doorvoeren in Magento (dutch)

Het kan de meeste mensen inmiddels niet ontgaan zijn, per 1 oktober 2012 zal er een BTW verhoging ingaan van 19 naar 21 procent. Vervelend daarbij is dat er nogal wat onduidelijkheden zijn. Aangezien ik zelf verstand heb van het webwinkel pakket Magento, probeer ik in dit artikel alle onduidelijkheden omtrent het nieuwe BTW tarief

BTW verhoging 21 procent doorvoeren in Magento (dutch) Read More »

Extra fee for Shopping Cart AND Catalog Cart Price Rules in Magento – Negative discount

This article is incomplete and the solution might not work! Ever wondered wether it would be possible creating a negative discount? This article describes how to create a negative shopping cart price rule. By default, Magento doesn’t accept negative price rule discount values: We have to add some changes through the core in Magento conform the article:

Extra fee for Shopping Cart AND Catalog Cart Price Rules in Magento – Negative discount Read More »

en_USEnglish
Scroll to Top