Monthly Archive for March, 2010

Magento 1.4 and TBT Enhanced Grid 1.2

If you have just upgraded to Magento 1.4.0.1 and installed the latest TBT enhanced grid version 1.2 and you are encountering an error regarding the PDO::quote expecting a String instead of an object, here is the solution:

1) Open up app\code\community\TBT\Enhancedgrid\Block\Catalog\Product\Grid.php

2) Goto line 171 and find
private function loadColumnOptions($attr_code) {
$attr = Mage::getModel(’eav/entity_attribute’)->loadByCode(’catalog_product’, $attr_code);
if(sizeof($attr->getData()) > 0) {
if($attr->getFrontendInput() == ’select’) {
$values = Mage::getResourceModel(’eav/entity_attribute_option_collection’)
->setAttributeFilter($attr->getId())
->setStoreFilter($this->_getStore()->getId(), false)

the bold code is what you need to add because the store filter takes the store ID instead of the store object. What happens on the backend is Magento basically takes the value and makes it part of an SQL statement so an object doesn’t really make sense.

Hope this helps anyone stuck with this issue.

Funny Viral Video (Tackfilm)

Had a big laugh out of this video. Try it out at http://en.tackfilm.se/

You upload your photo and voila! See yourself in an inspiring video.

Looking for GWT developers

I have a friend looking for a GWT developer in Singapore. If you know of anyone, or think you are skilled in this area. Please post a comment below and I will get back to you.