Richard Bermudez

Mar 2 '10

Product View Page Featured Products Fix

Looks like there are a few people having the same issue I was having with Magento regarding the “Warning: PDO::quote() expects parameter 1 to be string…” error after updating to 1.4. Have no fear! There is a quick solution if you check the block code for the list Magento has created.

  1. Navigate to app/code/core/Mage/Catalog/Block/Product/List.php (There is a proper way to do this by over-riding the function using app/code/local directory but I’m assuming this will be fixed in the next release)
  2. On line 65 you will see:
    // if this is a product view page
    if (Mage::registry('product')) {
    	// get collection of categories this product is associated with
    	$categories = Mage::registry('product')->getCategoryCollection()
    		->setPage(1, 1)
    		->load();
    	// if the product is associated with any category
    	if ($categories->count()) {
    		// show products from this category
    		$this->setCategoryId(current($categories->getIterator()));
    	}
    } 
  3. Remove this block of code
  4. Voila. It’s working

It looks like the logic behind this code is to display products associated with the current product category. Not sure where they were going with this but in my case it wasn’t needed.

Tags: Magento 1.4

Feb 27 '10

Smartphone Application Development

As of last Friday, I’m a proud new owner of the Droid by Motorola. The constant battle with my old phone service and phone needed to end. I’m sorry Helio, err Virgin Mobile, but the Ocean 2 is like an infant in comparison to the Droid. From the incredibly crisp touch screen, to the plethera of brilliant applications, (using the tumblroid app as we speak) It’s safe to say this device is my new toy.

Browsing through the various applications of the Droid, i noticed that there are quite a few applications in the market that I probably could have developed when I was 10 years old. This got me thinking, maybe I could do it! So, with a little bit a research, I discovered that my hunch was correct and as a web developer I will be perfectly capable of developing applications. Basic knowledge of HTML, Javascript, and CSS is all that is required to get you on your way to developing these rich applications . It’s very uplifting to hear that web development can be transitioned to smartphone application development. It means that my career path is a vital part to the future of technology and I might not have to work for McDonalds! (no offense to employees of McDonalds, that’s a vital part of my eating habits).

I’m feeling anxious to be part of this relatively new wave of development and I soon hope to have a “Hello World” displayed on my Droid.

Tags: Tumblroid

Feb 24 '10

About Me

Hi I’m Richard and I’m 23 years young. If you don’t know me, I can only describe myself as a person who goes through life without direction and enjoys every minute of it. One minute I’m working at a steel mill driving a forklift alongside toothless coworkers and the next minute I’m in an upscale office building developing websites with next generation innovators of the web. The life I live has more twists and turns then any roller coaster and there is no stopping it or any regrets.

Now that you know that I don’t have a 5 year plan or a daily task list, let me elaborate about what it is that I actually do that would possibly lead me to creating a blog. The web. The web is genuinly the only thing I live, eat, and breath and would soon perish if I was to be torn away from it. As general as “The web” sounds, I cannot dwindle it down any further as I enjoy every inch of it (yes, even Japanese Seizure Robots!!!).

As a developer/designer/project manger/more/more (I wear hats) at a local web agency and never leaving my laptop (without even eating a lunch in most cases), I can say, without a doubt, the web has evolved, and is evolving at an exponential rate. With more powerful browser rendering engines, HTML5 and CSS3 knocking at our doorstep; we can only expect to see great things immerse from the catacombs of the web.

With that said, my goal is to provide myself and possibly others a detailed overview of my journey through my passion.

Tags: web development richard bermudez japanese seizure robots rendering engines HTML5 CSS3