18th May2012

Should you use WordPress or Drupal? WordPress 3 vs Drupal 7

by admin

I have written an article on this subject before (Should you use WordPress or Drupal?), that was in January of 2010, now as you know a year and a half in web technologies is an eternity, back then no one (ok almost no one :) ), would dare to say that WordPress is a functional CMS, and very few would use Drupal for a basic blog. Since then, both systems evolved and released major version upgrade releases, to say the least, some things have changed! And that i believe warrants a rewrite on this subject, that every web developer faces from time to time, should i choose the simplicity of WordPress or extendability and ease of development of Drupal (albeit a steeper learning curve)?

Let’s start by looking what major changes were introduced in WordPress:
WordPress 3 moved away from being a blogging system, where the only types of content you could add were posts and pages to Content Management (CMS), where all of a sudden you could create Custom Post Types and Custom Taxonomies. They have claimed that they became a “full content management system” years ago, but until the 3.0 release it was more through the custom plugins and themes, and none of it in the core…
They also made the dashboard more sleek, added more hooks for developers added new default theme called Twenty Ten (Twenty Eleven was released since), new media drag and drop image uploader and made many improvements in the appearance area: custom menu’s, header and background are some visible ones…

what major changes were introduced in Drupal:

  • Improved administrative user interface
  • Flexible content and custom fields (CCK is now part of core)
  • Better theming with Render API
  • Basic Image support is now in the core
  • and many more small improvements here and there…

To summarize all of the above WordPress UI became even sleeker, but made some major steps as well to be more of a competitor to Drupal as a CMS, but they didn’t go far enough, if you want to add custom content types and fields you need a plugin (kind of CCK in Drupal 6). Where they totally are missing out though is having a free plugin (yes there is a paid views plugin) to generate the output of those custom posts, fields and taxonomies. Just imagine Drupal not having Views module!

Looking at the steps that Drupal took, while don’t bring it close to the sleekness of UI of WordPress, but they did finally realize that if they want to attract anyone without engineering degree in computer science they will need to focus on administrative interface UI, to make it simpler to use. A major aspect that Drupal is still missing is a well integrated WYSIWYG Editor with integrated Media Upload like WordPress. And yes i know it could be done through custom modules, but that would be the biggest step forward in this area that Drupal could make.

So, taking into account all of the above my answer is not so much different from what it was a year and a half ago, Drupal UI is where WordPress was 5 Years ago, but at the same time WordPress CMS functionality is where Drupal was 5 years ago…

If you are a designer looking to create a blog or a corporate brochure-ware type of website pick WordPress i doubt you will regret it. If you are a Developer who needs a multifunctional site with e-commerce components, community components and / or forum and a blog etc. or just a lot of business logic that needs to process data behind the scenes you should pick Drupal. Anything in between – flip a coin! (suggested by Elie Kochman here ).

What is your process for deciding to use WordPress or Drupal?

29th Feb2012

Drupal Archive Tree Module

by admin
If you ever needed to create a blog fro your client running Drupal, you can’t help to wish certain aspects of WordPress would be part of Drupal. Undeniably one of those items is archive. Now granted WordPress has many widget extensions to make the archive look many different ways, the problem is, in Drupal there is no basic to base it on… 

So recently i had a client who wanted to have an accordion archive tree for their website. they were using Drupal 7 and the previous developer after struggling with it for a while just gave up…

My first inclination was to just write it into the theme, but them mentioning that they plan to swap themes for different seasons, made this not sustainable solution. So i decided to create a custom PHP block, that way we could reuse it in any theme.

Archive Block

As you could see from the code we are using the ui.accordion from the  jQuery UI which since Drupal 7 release is being included in the core.

Then my curiosity coupled with the fact that i had few more similar projects lined up won me over. I wanted to see if i could make it into Drupal module.

And “surprise” i have created the module learning few things along the way and breaking some drupal rules along the way… So here is how i have done it:

Step 1: create .info file, here is mine: (archive_accordion.info)

Step 2: Now that info file is created lets create the module file:(archive_accordion.module)

If you will look at the last part of the code above, you will notice that there is a reference to views api. the reason is that i also built a view that goes with it. (This was the easiest part, as all i had todo is export the view to code.) So here is the 3rd file in the folder (archive_accordion.views_default.inc)

Hope you enjoyed this brief tutorial, if you have any questions or suggestions please feel free to leave a comment.

Complete code: Archive Accordion Module
Archive Accordion Module

03rd Nov2011

Ubercart free order with recurring billing product

by admin

In working on a recent project we encountered a problem. The client wanted the ubercart to have certain functions, namely:

  • Recurring billing
  • Coupon codes up to and including 100% off

No rocket science right? It wasn’t that easy to make it work though, we needed three modules:

You probably understand the need for the first two, but why do we need the last one? When you shop online and are told you are getting a 100% coupon, and then on the last step of checkout are asked for Credit card details, it sure looks suspicious, and could turn away a lot of customers. The solution to that is to tell Ubercart that when order total is less the one cent, there is a different payment method that is to replace the credit card method. This is where this module comes in. Here is how the module creator summarized it:

“The UC Free Order Payment Method module works in conjunction with the payment checkout pane using the order total preview to present a “Free order” payment method to customers when their order total drops to $0.00 or less. By default, this method will be hidden with Javascript and displayed only when appropriate. Server side verification of an order total on checkout form submission is used to prevent customers from gaming the system.”

And it does work great, except when you have a recurring item in the cart, at which point Ubercart acts confused, on one side it has the free order method saying that since you have a $0 order you should use the “free payment method”, on the other end is the recurring payment module saying since this order has recurring product, you should use one of the payment methods (like paypal wps) that support recurring billing. The solution we came up with was to extend the free payment method to support the recurring billing. You could download the extended version of this module bellow.

The development was sponsored by Levia IT. The developers who worked on this are:

Free Order plus Recurring billing
Free Order plus Recurring billing
09th Sep2011

Module to remove the address select from Ubercat Checkout

by admin

I was recently working on a website where the process required to have the address select drop-down fields not appear on the ubercart checkout page  so i wrote this small module.

I saw other people ask how to-do it, so here is your answer.

Remove Ubercart Address Select field
Remove Ubercart Address Select field

Please let mew know if it helped you. :)

03rd Mar2011

Virtual Merchant – Ubercart/Drupal Integration

by admin

I have recently had a client who already has a Drupal/Ubercart powered e-commerce website. The client though had an issue, the current payment processor only had an offsite processing for credit cards which meant that the client was using some percentage of potential customers because of an extra step in the checkout process.

We started looking for a new payment processor, and there are a few options we were looking at, Virtual Merchant was one of them. So we started looking if they are compatible with Ubercart. And to my surprise there was even no mention of either Drupal or Ubercart in the list of supported shopping carts.

So if you are (like we were not so long ago) looking if Virtual Merchant is compatible with Ubercart, serach no longer, you have found the answer, YES THEY ARE.

If you need help with integration Virtual Merchant or any other payment processor into a Drupal / Ubercart website, we certainly could help you.

P.S. here is the link to the Virtual Merchant Drupal module https://drupal.org/project/virtualmerchant

Pages:12»