Category Archives: PHP

Magento: Adding Items to Existing Orders

Modifying existing orders is always going to be a risky task, especially since orders have multiple states and statuses. Be careful when doing anything like this. I recently had a need to add an item to a bunch of orders … Continue reading

Posted in Magento, PHP | 5 Comments

Magento Install: Mysql Error – SQLSTATE[HY000] [2002] No such file or directory

I recently changed up the configuration of my Mac (running 10.6.4) and I was installing a fresh copy of Magento (1.4.1.1) when I ran into the following error when I got to the database credentials: SQLSTATE[HY000] [2002] No such file … Continue reading

Posted in Magento, MySQL, PHP | 14 Comments

Magento: Manually Getting Magento Error Trace

I am working on a module right now that is supposed to email me the details of any errors that happen in Magento (errors that throw the Magento error screen, and output a trace of the error). Getting the error … Continue reading

Posted in Magento, PHP | 2 Comments

Magento: How To Remove The "Position" Sort Option

I had a client ask me today to remove the “Position” option from the toolbar on the category product listing. I realized that there are probably a lot of people that don’t ever utilize position, and therefore it is basically … Continue reading

Posted in Magento, PHP | 32 Comments

Magento: Import Multiple Images for Products Module

Update: If you are using Magento 1.5 or higher, please see my Revised Multiple Image Import Module post I still am confused as to why Magento hasn’t built-in the ability to upload multiple images for each product. After scoping it … Continue reading

Posted in Magento, PHP | 106 Comments

Basecamp API: PHP Class – Version 1.1 Released

Version 1.1 is now released. Please check out the Basecamp PHP Class page for new documentation and download information. There were a lot of changes, new methods (including file attachments), and bug fixes in 1.1. There’s still a lot of … Continue reading

Posted in Basecamp, PHP, Web Apps | 1 Comment

PHP: Enable SOAP with PHP5 on Media Temple's DV 3.5

I started trying to learn Magento’s API today, which requires the use of SOAP. I know that SOAP is a part of PHP5, however, I guess it doesn’t often come enabled on a lot of servers. I have a DV … Continue reading

Posted in PHP | 23 Comments

Basecamp API: PHP Class – Version 1.0 Launched

The time has come to launch version 1.0 of my Basecamp PHP Class. It’s by no means complete, but it does a majority of the main core features. So, instead of sitting on it for a while, I figured that … Continue reading

Posted in Basecamp, PHP, Web Apps | Leave a comment

Basecamp: PHP Class In Progress – Feedback Needed

I have begun working on a Basecamp PHP class (using cURL). I can certainly add in many of the basics, but I would love some feedback as to what YOU would like it to do. So, please write comments with … Continue reading

Posted in PHP, Web Apps | 24 Comments

MySQL & PHP: Convert Strings From All Uppercase to Uppercase Only First Letter of Each Word

I’m not sure if it is possible to make that title much shorter than that… Anyway, I had some old data that I imported to an installation of Magento. All of the product titles were all uppercase, which was quite … Continue reading

Posted in MySQL, PHP | Leave a comment