Tag Archives: magento customization

UPS shipping method and products with no weight

Posted on 16. Mar, 2010 by Fido .

Magento, where art thou documentation? Where art thou support for community code and problem solutions?
Laments to the nature of Varien’s views “Open Source” aside, the UPS shipping module has one glaring bug: The UPS API doesn’t handle weights of zero (or, perhaps, as I havent verified this, Magento’s UPS module code doesn’t properly take into [...]

Continue Reading

Changing Product Tabs from JavaScript to CSS

Posted on 07. Jul, 2009 by coolbluelogo .

With themes based off the Modern Theme, product information tabs are buried under JavaScript. This is awful for SEO. Converting these to CSS allows the Search Engines to index more information on the product pages. This article will tell you how to do that and improve the Search Engine friendliness of your Magento site!

Continue Reading

Adding and removing javascript / css when and where you need it

Posted on 19. Feb, 2009 by Fido .

Adding and removing javascript and css is handled separately within Magento. CSS is added in the usual fashion, where you have a <link rel=”stylesheet”… />. However, any included javascript (unless linked to “by hand” from a theme’s skin) is pulled via a php files which reads through the “js” folder in the root directory (root/js/index.php is responsible for this).

That is all well and good for Magento. The real question is how we, as developers, add these items when we need them. How you as a developer add css or javascript is, luckily, handled the same.

In this post, we will show how to add and remove javascript and css to a CMS page (and anywhere else) that you may need.

Continue Reading

Bestseller module (with Toolbar!) – Magento 1.2.1

Posted on 07. Feb, 2009 by Fido .

How many people were disappointed to install Magento’s test data and find out that the home page “Best sellers” was just pain HTML placed into the CMS home page? I certainly was one of those people. That’s why I decided to create a Bestseller Module that was dynamic and harnessed the power of Magento’s built in features. This post shows you the code and gives and explanation of what is happening.

Continue Reading

Run Magento Code Outside of Magento

Posted on 03. Nov, 2008 by Fido .

Hi All -
Finally time for a new post! (Something I’m surprised I haven’t covered yet).
This post will inform you on how to run Magento code outside of Magento. All you need is to have access to Magento’s ‘app/Mage.php‘ file.

This will be handy code for a few things:

  • Integration with 3rd party items – shared sessions, or just shared themes
  • Ajax calls – although not the preferred solutions for Ajax calls, it is a quick and easy one

Continue Reading

Some custom Blocks to help you show products

Posted on 07. Oct, 2008 by Fido .

I have a few custom blocks I’ve written / copied and tweaked from various posts on Magento’s forums. I noticed they are pretty universal in how they grab, filter and return a product collection to be used in various template files (.phtml files). The blocks below should all work from List.phtml (app\design\frontend\default\default\template\catalog\product\list.phtml).

Continue Reading

How to override a Magento core block class

Posted on 17. Sep, 2008 by Fido .

This tutorial will show you the proper method for overriding a Mage core class. This will work for Block and Model classes. Controllers are a slightly different story and for another tutorial.

Some discussion on breadcrumbs: I will be overriding the Core file: app/code/core/Mage/Catalog/Block/Breadcrumbs.php (which I will call [Breadcrumbs-B]). This file is not to be confused with the block: app/code/core/Mage/Page/Block/Html/Breadcrumbs.php (which I will call [Breadcrumbs-A]).

Continue Reading

Create a simple custom module

Posted on 11. Sep, 2008 by Fido .

Part of customizing Magento is, of course, creating custom Modules. These allow you to inject functionality anywhere, whether in a “static” block fashion that’s more than static, or a shipping/payment module, or large module to do something as large as integrating a 3rd party system (or multiple systems).

There are many things custom Modules can do, from editing your Database, to handling module upgrades to overriding classes (Blocks, Controllers, Models) … and more!

Continue Reading

Editing the Magento Navigation

Posted on 04. Sep, 2008 by Fido .

This is not a comprehensive example (I didn’t write out an example of editing the navigation myself … yet) – but I will point out where the files are that you need to edit the top and left navigation.

Continue Reading

Moving / Removing Callouts on the left / right columns

Posted on 03. Sep, 2008 by Fido .

I recently answered a question on the magento forums about how to remove the callout images in the right / left columns.

This is a pretty easy task, but finding them required a small bit of digging (as usual).

Continue Reading