Subscribe To RSS Feed


Mike D's SharpBlog

Just another Sharpdot weblog

Magento: Import Multiple Images or Remove Images durring Batch Import

- Tuesday, March 2nd, 2010 -

This article will detail how to adjust the Magento Batch Import (Dataflow) to allow uploading multiple gallery images, and also how to add a way to remove all images during Import/Update.
These are the accompaning files: (Please reference this file if you have any quetion about the code examples below. The WYSIWYG editor was messing things [...]

Magento: Customer Desired Delivery Date Module

- Monday, February 22nd, 2010 -

This Magento Module allows you to add a date picker to the checkout process, which the customer can use to input a desired delivery date. There is minimal setup required. You will need to add the supplied code to your template pages in order to display the date-picker on the checkout process and add one [...]

Magento Error: You cannot define a correlation name … more than once.

- Thursday, February 4th, 2010 -

This will be a short post about an error I ran into when messing around with the Magento “Toolbar” that is displayed for search results and on category pages. I decided that i needed to extend the toolbar block in-order to achieve some custom functionality that a client needed. Then I noticed that when I [...]

Magento: Can’t edit/add Categories

- Wednesday, October 28th, 2009 -

I recently ran into a problem with not being able to edit or even add a new category on a Magento site. I was upgrading a site and was working on the Development installation. I had changed the site name from something like “localsite.com” to “localsiteUpgrade.com”.
All of the sudden I could not edit categories. The [...]

Magento: Problems/Errors after upgrade to 1.3.x with the Flat Catalog

- Friday, October 23rd, 2009 -

I recently decided to upgrade a Magento Site from version 1.2.1 to version 1.3.2.4 and the upgrade went smoothly, so I thought. When trying to enable the new caching features(Flat products and Categories) added in ver 1.3, I was unable to build the flat catalog for the categories and products. I kept getting “Flat Catalog [...]

Transfering Magento Database

- Wednesday, April 8th, 2009 -

I have Had a few problems when transfering a Magento database. Usually when pushing a development site to Production. Importing the database sometimes throws foreign key constraint errors. What I have found is that if you use phpmyadmin to export the database you need to check the box next to disable foreign key checks. Then [...]

Magento: Getting product attributes values and labels

- Monday, April 6th, 2009 -

I have found that it is very useful to be able to get attributes from the system and use them in places other than a products category page. I always forget the exact syntax to use so, this is going to be my unofficial cheat sheet.
This is how to get a drop down lists options. [...]

Magento – module not working on unix/linux server

- Thursday, March 19th, 2009 -

I am writing this more as a reminder to my self and anyone else who makes a module for magento. I created a module and it was working fine locally on my windows machine. When I uploaded the site to a unix/linux server the module seemed to stop functioning correctly. Here was the problem:
I had [...]

Magento: error message – Notice: Undefined index: 0 app/code/core/Mage/Core/Model/Mysql4/Config.php on line 92

- Tuesday, March 17th, 2009 -

The Quick resolution to this problem it to move the database command line, and not use phpmyadmin. If you just need to fix your database keep reading.
I was moving a installation to a production server and was getting this error message: Notice: Undefined index: 0 in app/code/core/Mage/Core/Model/Mysql4/Config.php on line 92. It took alot of searching to [...]

Magento: Adding a static block to a view file (AKA: phtml file)

- Wednesday, March 11th, 2009 -

In magetnto you can add static blocks that you have created to pages using the layout xml files and adding code there. There is plenty of documentation on this method, but what if you want to call the static block from a view (view files generally end in .phtml). Well this is how I have [...]