Category Coding Tipps

Dropshipping possibilities in Magento

Approximately in every third Magento project that I am doing I get the request to implement some kind of Dropshipping. That’s why I want to give a short overview of how to handle that with Magento. What is Dropshipping? Dropshipping is a kind of E-Commerce business where the merchant offers products in his online shop without having the products in his inventory. If a customer orders some of these products a so-called purchase order is made and the dropshipping partner will ship the items for the merchant.

MySQL: The innodb_file_per_table misconception

Mistakes in the conception phase of a project often pay off in a far far later point in time. This also applies for the setting innodb_file_per_table in MySQL. Prio to MySQL 5.6 this option is disabled by default which leads to one huge ibdata1 file being created on your machine for all your databases. The problem with this is that the space allocated on your disk can never be freed again.

When should I start using Magento 2?

Finally it’s time for a new blog post as the last one about the interesting ShopTechBlog episode is dated a while back. Today I want to raise some pro and contra arguments for upgrading to Magento 2 or starting a new project with the new release of Magento E-Commerce. This is by no means a complete list but just some of my thoughts on this topic. First of all we have 2 scenarios to look at:

Why should I do a Magento upgrade?

Today I was asked by a client if he should upgrade his Magento 1.5.1.0 store to the latest Magento Community Edition 1.9.1.1. As this question arises more than often I would like to emphasize some arguments for doing the upgrade. Of course this is question cannot be answered in general because it depends on many factors like level of customization, budget, known issues in the workflow, etc. 1. Security Security is always a good argument, especially if one has seen the latest severe Magento security issues (e.

Available Magento Code Sniffer rulesets

Basically I recommend following the PSR-2 standard for Coding Style Guidelines in Magento projects. Verifying your coding styles makes sense in any case – whether you are working in a large team of developers or as a freelancer for several clients. Agreeing to one common coding standard and following the rules improves readability and comparability. But as we all know Magento has some quirks that do not fit very well this standard (like underscore class names, underscore prefixed variables, etc.

The Magento totals sort order hell

Yesterday I had an interesting problem in a Magento community installation of one of my clients: After the deinstallation of the Unirgy_GiftCert extension the total values subtotal, tax and grand_total were totally messed up. That means sums without tax were shown as grand_total and subtotal whereas it was configured totally different. After some debugging action I found out that incorrect dependencies for the total models were the cause for this issue (the sort order did change because of the uninstallation of the gift certificate extension):

How to reduce spam messages sent via Magento contact form without using Captchas

A lot of my clients complain about the fact that they receive lots of spam messages via the Magento contact and review forms. Basically in most of these cases I recommend using professional services like Akismet and an appropriate Magento extension which effectively reduce the amount of spam messages to a minimum. (I don’t want to mention Captchas because I do not want to loose potential customers ;-) But there are also some simple code modifications that can easily be made in a couple of hours by yourself, e.

Magento 1.9: Downloadable Products cannot be created (German localization)

In Magento 1.9 there is a JavaScript error on the product page in the backend that prohibits adding links to downloadable products when using the default German localization that ships with this Magento version. The root cause for this problem is the file app/locale/de_DE/Mage_Media.csv which somehow contains an additional line break at the end of the file: "This content requires last version of Adobe Flash Player. <a href="http://">Get Flash</a>","Dieser Inhalt erfordert die neueste Version des Adobe Flash Players.

Some Magento Extension recommendations

I am often asked by my clients what Magento Extensions I can recommend for their shop. Thats why I created a (probably incomplete) list of Magento extensions that I regularly use in my Magento projects: Extension Category My comments WYSIWYG Editor Redactor Administration, Must-Have Mage Setup Administration, Must-Have quickly adapt your Magento Store to German Market incl.

Some overseen Magento performance tipps

Disable Mage_Reports logging for simple page views (use external analytics tools instead) Disable unused (core) modules, e.g. Mage_Poll, Mage_Tag, Mage_Rss, Mage_Wishlist, Mage_XmlConnect, Find_Feed, Mage_Authorizenet (Pay attention to all side effects, e.g. when deactivating Mage_Wishlist the customer detail view in admin won’t work any longer in CE 1.7) Disable Magento file logging in production (or at least set up log rotating) Implement block caching for navigation bar / product lists / …