Dojo Widgets: Converting to AMD

Ajax, Dojo, dojo-widgets, Javascript

A few years ago, I created gpDojoGallery – a Dojo image gallery widget. I was recently asked whether I had a AMD-ified version of the widget. I have been doing a lot of Drupal and Magento projects lately (with a heavy dose of jQuery) and I haven’t worked with Dojo in quite a while, so I had never heard of AMD (Asynchronous Module Definition). After some quick googling, I learned that Dojo is not the only library that uses AMD, so I decided to convert my gpDojoGallery widget to the AMD format in order to better understand it.

Continue reading

Checkout My New Site - T-shirts For Geeks

Standardizing jQuery in Magento Extensions and Themes

Ajax, E-commerce, JQuery, Magento

I’m not that familiar with Prototype (Magento’s default Javascript library), so I use jQuery with most of the Magento extensions that I create. Although I use $.noConflict to avoid conflicts with Prototype and other jQuery versions, there are times when multiple versions of jQuery are loaded. This generally causes Javascript errors with either my extension or another extension/theme that is loaded on the page (depending upon which is loaded first).

To avoid conflicts for future Magento theme and extension developers, I created the jQuery Update extension. Similar to Drupal’s jQuery Update module, this extension will standardize the use of jQuery and jQuery UI within Magento.

Continue reading

Checkout My New Site - T-shirts For Geeks

Magento Extension: Responsive Menu

E-commerce, Magento

In a previous post, I discussed the Responsive Menu jQuery Plugin. Since it’s creation, I have integrated the plugin with CodeIgniter and Drupal. I also used this plugin on DevoutGeek.com. When I first integrated the Responsive Menu plugin with Devout Geek, I only added it to the menu template file. I recently took the time to create a Magento extension. The video below displays how to set up (and use) the extension. The Responsive Menu extension for Magento can be downloaded from DevoutGeek.com or Magento Connect.

Checkout My New Site - T-shirts For Geeks

Magento Extension: Configurable Products Utilities

E-commerce, Magento

In a previous post, I discussed the Configurable Colors Magento Extension. I just completed a new Extension that builds upon Configurable Colors – Configurable Products Utilities. The Configurable Products Utilities extension allows the store owner to easily create and delete configurable associated products in bulk. This tool was created for those who have grown weary of spending 15-30 minutes inputting the associated products for each configurable product. With this tool, creating these products can be completed in a matter of minutes – including the image uploads.

The Configurable Products Utilities extension also integrates the Configurable Colors extension that I created a few months ago. It enables the store owner to create color swatches for configurable products. Swatches can be made using HTML color names, Hex Values, Classes, or images. The Configurable Products Utilities extension also controls the display of the thumb and large images. The sizes for these images can be set in the Admin Panel. The Configurable Products Utilities extension also comes with an image zoom component. The size of the zoom image is also configurable.

The video below displays setting up and using the Configurable Products Utilities extension. The extension can be purchased on DevoutGeek.com. I’m working on a few more Magento extensions, so stay tuned.

Checkout My New Site - T-shirts For Geeks

Creating a Magento Extension that uses a jQuery Plugin

Ajax, API's, E-commerce, JQuery, Magento, plugins

While developing the DevoutGeek.com site, I created a number of Magento extensions. The first extension that I created was Configurable Colors. This extension creates color swatches in place of the color drop-down for configurable products. I created a jQuery plugin to display the color swatches and make ajax calls to the extensions controller method to display the relevant images. Through a bit of trial and error, I learned a great deal about creating Magento extensions (and incorporating jQuery into them).

There are many articles that discuss how to create Magento extensions, so this post discusses how to incorporate a jQuery plugin into the extension. For information on how to create an extension, read this.

Continue reading

Checkout My New Site - T-shirts For Geeks

Magento Extension: Configurable Colors

E-commerce, Magento

I created a few Magento Extensions while working on DevoutGeek.com, The first one that I created was Configurable Colors. Configurable Colors is an extension that enables you to create color swatches for Configurable Products. You can create swatches using HTML Color Names, Hex values, and images. This extension also comes with image zoom. Below is a video that demonstrates the use of Configurable Colors.

Checkout My New Site - T-shirts For Geeks

Using Responsive Menus with CodeIgniter

Ajax, Codeigniter, JQuery, plugins

In a previous post (A jQuery Responsive Menu Plugin), I discussed how to use the gpResponsiveMenu jQuery plugin to create responsive menus. While developing the plugin, I tested the options with CodeIgniter (I use CodeIgniter for my demo site). I had to make minor changes to the CodeIgniter navigation in order to use the plugin.

Continue reading

Checkout My New Site - T-shirts For Geeks

Changing the Column Count for Magento’s Grid List

E-commerce, Magento

One of the final design updates for DevoutGeek.com was change the column count for the main category pages only. I’m using Magento’s 1-column layout (no sidebar) for the sub-category pages (and category pages that do not have sub categories). These pages display 3 columns of products, but I want the main category pages to display 2 columns of products because I am using a 2-column layout (left sidebar) and I do not have enough room for 3 columns.

Continue reading

Checkout My New Site - T-shirts For Geeks