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 »

Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

When having trouble with the error: “Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction” or when your place order / order confirmation gets stuck. Fixing the order process getting stuck: According to the Magento Forum, in MySQL, try: TRUNCATE `log_customer`; TRUNCATE `log_quote`; TRUNCATE `log_summary`; TRUNCATE `log_summary_type`; TRUNCATE `log_url`; TRUNCATE `log_url_info`; TRUNCATE `log_visitor`; TRUNCATE `log_visitor_info`; Of course create a

Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction Read More »

Change the ‘add to cart’ button to ‘view product’ in Magento on category page

So you’ve got your webshop with products with different sizes. The ‘add to cart’ button on the category page is sometimes a step too much, because you’ll have to choose a size first. Changing the button to ‘view product’ Changing the button to ‘view product’ would be a better solution. Open the file list.phtml in: /app/design/frontend/default/{yourskin}/template/catalog/product .

Change the ‘add to cart’ button to ‘view product’ in Magento on category page Read More »

Magento – Detect if a customer/user is logged in

Ever wondered if it’s possible enabling special features in phtml for logged in clients? Yes, it’s possible. Just with a simple if/else statement. <?php if ($this->helper(‘customer’)->isLoggedIn()) {     echo “Special content for customers”; } else {     echo “The special content is not visible for you, login first.”; } ?> Now you’re able to display for example your price only

Magento – Detect if a customer/user is logged in Read More »

en_USEnglish
Scroll to Top