Tag Archives: tutorial

The start of something great (possibly)..

When I first setup this website, it was mainly for my own benefit – a place to note down annoyances, bug fixes, work-arounds for various issues in the tech world. I’d use it to refer back to (or refer other people to) when I’d been asked to help/offer advise on a particular topic that I’d covered previously.


All that seems to have died off now, all the bugs got fixed, and I’m no longer annoyed (LOL -now there’s a dream). So, in order to make it look like this website is still being updated (since I’ve only posted once this year so far!), I’m going to start a series on Magento module development, offering tutorials, how-to’s, tips and tricks, for developing your own Magento modules with. I’ll cover areas such as;

  • The basics
  • Blocks, Models and Helpers in-depth
  • “Mysql4″
  • Using events and observers
  • The administration area
  • Shipping methods
  • Payment gateways

..and much more. Watch this space for what will probably be the most I’ve ever written in a really long time!

I might offer more than Magento tutorials in the future. If you have a particular topic/subject area you’d like me to cover, get in touch¬†and I’ll see what I can do!

-Dan :)

Compaq CQ60 Display Issues – The Unexpected Part 3

I recently had an unexpected part 3 to this tale the other day, when the display went. Again. But this time, different symptoms. This time, the backlight went. Oh sh*t, replacing LCD panels isn’t exactly cheap, and since the backlight diffusers and CCFL’s are fused to the back of the LCD panel itself, there was no way of replacing the individual unit.

Continue reading “Compaq CQ60 Display Issues – The Unexpected Part 3” »

Adding multiple products to the cart simultaneously in Magento

Some people ask me if it’s possible to do what some other sites do, allowing you to check a box next to a product on a listing page, and then add all selected items to the cart in one go. This is possible in Magento, it’s just not built in. There’s a few ways you can do this. You can either make an ajax call using a button against each product, which fires off a GET request to the server to add. This method will most likely return the HTML for the cart, and since we’re not interested in the response, said HTML can be discarded.

Continue reading “Adding multiple products to the cart simultaneously in Magento” »

Magento Discount Rules – Buy X Get Lowest Priced Item

I figured out today that the discount/promotion rules in Magento aren’t exactly obvious, nor straight forward to apply. If you don’t have the logical mind of a programmer, setting up rules for products that only meet certain criteria can be a tricky one. Take this example:

Buy 4 for 3 on any product in [this] category.

Sounds simple, no? Actually, no. Continue reading “Magento Discount Rules – Buy X Get Lowest Priced Item” »

Adding shipping costs to the cart automatically in Magento

I’ve come across a handful of sites now that either do (or want to) automatically add a default shipping charge to the cart when it’s created or updated. As I had a bit of trouble finding a method for this, I thought I’d post my exact method here for usefulness and future reference.

In order to get this working, you need a module which hooks into the event ‘sales_quote_save_before’. We’ll use the namespace BTS.

Continue reading “Adding shipping costs to the cart automatically in Magento” »