03rd Nov2011

Ubercart free order with recurring 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

12th Mar2010

Couple of things I learned while creating sites in Drupal part 2

by admin

As i am continuing to create sites in Drupal i of course continue to learn of new Drupal ways to accomplish them and make them better. Sometimes even going back to sites of our previous clients and adding a module or two that i just found out existed, and think would benefit them.

On one of the sites i recently worked we bumped into a very puzzling problem the site looked and worked fine in (you guessed it) Firefox, Chrome and Safari but for some reason was totally messed up in Internet Explorer 7. Don’t get me wrong i am not surprised when i see a site having alignment problems in IE this is a known thing, but here it was as if it didn’t see half the CSS at all!

After hours and hours of trying to figure out and nail down the problem, checking the HTML for possibility of any unclosed tags and the like, removing a variety of JavaScript files and removing CSS stylesheets one by one (there were 32 of them). We were able to figure it out the HTML, JavaScript and CSS were all valid, the problem was that Internet Explorer reads maximum 30 CSS stylesheets, and since we had 32 of them, the last two were just ignored. Yes i know 30 stylesheets sounds like a lot but if you ever worked on a Drupal website you will know its not hard to get there: 5 default Drupal CSS files, another 5 from your theme plus every second module you add to your site like UberCart ads one or two of them you are at thirty already. Thats probably one of the reasons Drupal has “Optimize CSS files” option in the performance section of your Admin menu.

Once i started optimizing the site i found few more useful tools and modules to get you there. You probably already know what firebug is and used this popular add-on for Firefox, there is one more add-on that makes the optimization work much easier “Page Speed by Google”. They will show how well you page performs and give you optimization tips. Following the tips i found that there are some good Drupal modules that could help you follow the tips. For example:

  • CSS GZIP module – this module will gzip your aggregated css files
  • JavaScript Aggregator – minifies the JavaScript using JSMin
  • Boost provides static page caching for Drupal enabling a very significant performance and scalability boost for sites that receive mostly anonymous traffic

Another useful tool for optimizing your page is CSS sprites. CSS sprite combines multiple background images into a single image. This technique makes web pages faster because it reduces the number of downloads per page. This step should be done at the design level, but it could be done later you will just spend little more time doing it.

If you liked this post you might want to read the first part.

Do you have any useful things you would want to share? Feel free to do so in the comments. Did you enjoy reading this post? Then share it by clicking the “share this post” button bellow.

04th Feb2010

Drupal Hacks – How to add a custom login box into your Drupal theme

by admin

Login BoxI just did a guest post on lichtman.ca please read it there.

03rd Jan2010

Should you use WordPress or Drupal?

by admin

I spend most of my working days working with Drupal so it’s no surprise that my first blog post on my site was about Drupal. You probably noticed though, that my blog runs on WordPress. I knew someone will point it out to me and ask me why, and i got this question today from a friend of mine. So i decided to write a blog post about the general difference between WordPress and Drupal, and when you should choose one or another.

WordPress:

lets start with an excerpt from the WordPress.org site:

WordPress started as just a blogging systems, but has evolved to be used as full content management system and so much more through the thousands of plug-ins, widgets, and themes, WordPress is limited only by your imagination. (And tech chops.)

Now my thought based on experience and observation:

WordPress is an excellent system to use when creating a website that lets you quickly get your thoughts out on the web, but while it is often used as a blog, it can be configured to work in many other interesting ways as well. I have used it several times with clients that are brand new to the Internet and having a website, yet they can pick this system up and use it quicker than the other two (Drupal or Joomla). Since WP is already developed to work as a blog, though, it can be setup to do so without any hesitation. Comments are already built into the system, as well as pinging services, multiple blogger profiles, track-backs and more. Most of the time nothing needs to be done to those systems either, because they already work the way that the user would want them to.
WordPress, however, is not to be used for everything.

While i know there are e-commerce sites powered by WordPress, people have had little success (its there, just not much) using WordPress as a shopping cart. The reason that WordPress was created, was to put the keys of starting your own websites in everyones hand, take for instance their famed five minutes install. But by doing it they stripped it to the bare minimum, which in turn now stops people keep people from wanting to customize it to do things that are much more advanced. It is supposed to be used as built, out of the box, because any modification that you give to it may very well cause it to break. You will find many users of WP complaining that it is not developer friendly and rightfully so, because there will be countless times in your journey to that great website that an upgrade released by the WP developers causes your entire site to simply disappear, or for those modifications that you made previously to no longer even exist.

WordPress Pros:

  • Simple to use – No need for modifications
  • Excellent for blogging or sharing thoughts in a sequential manner
  • Even the most elderly of users can get the hang of it quickly

WordPress Cons

  • Not very developer friendly
  • The community seems to like to complain much more that the Drupal community for example
  • Upgrades, while they are extremely easy to do, sometimes bring more bugs than fixes, and the more plugins you have the bigger the chance of it happening

Drupal

If you are the type of person who would rather hand-code the content of your pages than use a WYSIWYG Editor, or if you enjoy tweaking the code that makes up the framework of a website, then Drupal is probably for you. This advanced content management system, sometimes more closely resembles a developer platform than a traditional CMS. Its not to say that only developers can use the system though, but to say that they will feel more at home here than in the other two. Interestingly, being more developer friendly does not automatically make it more user friendly in fact the developer has to work hard to make it that way if they need the end-product to do so.

There are dozens of more functions that can be used to develop in Drupal than in WordPress. Every single node has its own set of commands and tags that can be placed elsewhere to manipulate the function of the site, and this makes for a very intense experience (whether or not you know what you are doing). For those that are not so developer-minded, this can be the trial of their lives, but for people who live in code well, they can literally get lost developing some very cool websites.

Now, Drupal websites can act and function in some pretty cool ways, but Drupal has the problem that it just doesn’t look that great (at least not withoput long hours of work…). I have seen very few websites built in Drupal that look and feel as good as they function. Not that they don’t exist they are just few compared to the other ones. And the problem is not that its not themable, take for example a site we made (in conjunction with U2R1media) for Amaravati a gorgeous site but we spent probably almost twice the time on the theming as on functionality. So the problem is just the opposite its very themable and customizable, but out of the box it looks like a site back from nineties, and theming has extremely steep learning curve. You can especially see this in the theme directory on the Drupal.org website, where there are dozens of these themes built to prove the exact point I just made. It’s a shame really, because with all of the development advancements the software has, it would almost be perfect with a stronger usability and design interface. It has made huge improvements with the core 6.x but more is needed and according to what i have read and saw about Drupal core 7.x they are putting a lot of effort into this area, but we will have to wait until it’s first stable release is out and then  some time until all the important modules have their stable releases out the door.

Drupal Pros

  • Extremely developer friendly.
  • Strong community to help discern the dozens (hundreds) of functions, modules and patches available.
  • Can be used to create some really awesome websites that can outperform a majority of other sites out there.
  • Scales as no other system would

Drupal Cons

  • Not very designer and user-friendly. It’s hard for someone with little code knowledge to make the leaps required to do the very cool things that Drupal is becoming known for.
  • Themes for Drupal has been a huge case of fail (until recently). Probably because it has been developers, not designers, that are making the themes.
  • Getting a Drupal website published could cost you more time, and thus more money, than WordPress.
  • While WordPress could be hosted on a very cheap hosting, Drupal needs an access to a lot of RAM.

How Secure is it to use open source CMS

Drupal was all over the news a couple of month ago when WhiteHouse.gov remade their website in Drupal, it was definitely a vote of confidence in  in Drupal’s security by a site thats one of the most targeted by hackers in the world. Now while WordPress was not chosen by the White House, it’s known that BlackBerry is considered a brand of secure communications, so much so that even the President of United States Barack Obama was permitted by his security team to have one, and when they recently remade their Inside BlackBerry blog they used WordPress. So as far as Security is concerned, i would say it should not be on top of your list if you create in either one of the systems.

What do you consider to be the pros and cons of each system? Do you disagree with any of the remarks i made about them? please feel free to leave a comment.

Pages:12»