Tag Archives: cart

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

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

Move mini-cart in the sidebar to the header (or anywhere) in Magento

Posted on 29. Aug, 2008 by Fido .

Hi all – Here is my solution to a question I’ve seen asked many times: How to move the cart sidebar into the header area. You can use this technique to move it anywhere. This is not the only way to do this, but it is a useful one.

Continue Reading