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

Looking for some requests / feedback

Posted on 19. Oct, 2008 by Fido .

Hi all -
We have had a very busy couple of weeks, which has resulted in less than normal posts here!
We want to thank you all for your kind words and feedback.
I would like to ask you, the readers, to take minute to make some general requests on what kinds of tutorials you would like to [...]

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

Welcome (again!) – exploremagento.com

Posted on 01. Oct, 2008 by Fido .

Here is my new version of getfido.net – We have undergone a redesign, a new domain and new hosting!
I hope you enjoy the improvements of this blog as I have – I find it much more easier on the eyes along with easier to read.
Additionally, anyone who is interested in professional services for Magento can [...]

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

Fix add to cart (redirect to homepage) bug

Posted on 12. Sep, 2008 by Fido .

Some people have run into a bug (apparently since version 1.1.3) where (not matter the settings in the backend) the users were getting redirected to the home page after they added a product to the cart.

Naturally this won’t be what most people want. (There is the option in the backend to set “After adding a product redirect to shopping cart” to ‘Yes’ or ‘No’ but this bug is ignoring this).

Continue Reading