Monthly Archives: September 2008

Magento: Add Static Block to CMS Page

There is definitely nothing complicated about doing this. Static blocks are a great way to divide up different types of data blocks to make updating content easier. There are just two simple steps to adding a static block to a … Continue reading

Posted in Magento | 17 Comments

Magento: Add Custom Module For Custom Admin Config Options

In my previous post, I showed you how to add instructions to the Short Description on the product add/edit form. While this is useful, if you ever wanted to change the instructions, you would have to open the template file … Continue reading

Posted in Magento | 11 Comments

Magento: Add Instructions to Form Field in Admin Product Add/Edit

I made some custom functionality that can happen with a product’s Short Description. Depending on what is put in that textarea, icons and special product-specific links can be displayed on that product’s view page. It requires a specific format though … Continue reading

Posted in Magento, PHP | 3 Comments

Magento: No Tax for Wholesale Customers

We ran into the need today to not charge tax for wholesale customers. The good news is that no code modifications are needed to accomplish this. All the functionality is already built right into Magento. Here’s a step-by-step process on … Continue reading

Posted in Magento | 3 Comments

Magento: Easily and Quickly Delete All Products

If you have ever tried to delete a large amount of products out of Magento, you’ll realize that it takes forever, and in many cases, you have to do it in small quantities at a time otherwise it will freeze … Continue reading

Posted in Magento, MySQL | 16 Comments

PHP: One Line If Statement (Ternary Operator)

I decided to see if there was a better way to write a simple if statement today, and of course, there was. It uses the Ternary Operator (?:). My if statement today was rather simple. I needed to find out … Continue reading

Posted in PHP | Leave a comment

Mysqli and Object-Oriented PHP

Sometimes it is easy for me to get stuck doing things the way I know how to do it, rather than finding a better, more up-to-date method. I just had a recent post about making multiple connections to mysql, but … Continue reading

Posted in MySQL, PHP | Leave a comment

Magento: Accessing Customer Session

I needed to create some custom shipping functionality within Magento today which would charge wholesale customers $5.00 flat rate, and all other customers got free shipping. This required having to access the customer group number. Wholesale customers are have a … Continue reading

Posted in Magento | 3 Comments

Turn Off Word Wrap in Leopard Terminal

As I said in the post prior to this, I have really been enjoying using Terminal for accessing MySQL databases. I found a problem with it though. If you have a table with a lot of columns, or a column … Continue reading

Posted in Mac OS X, MySQL | 1 Comment

Using MySQL Through The Command Line

One of the most popular ways to view and work with a MySQL database is through a web app called phpMyAdmin. There are many other tools out there that you can use, but why use a tool when you’ve already … Continue reading

Posted in MySQL | 1 Comment