Magento programmatically add product to cart with custom options

Sometimes, clients requirements exceed the defaults built into the Magento. We need to add products into cart programmatically in controller. Below is the code which you can use to add product to cart. Here is examples of how to add magento simple, grouped, bundle and configurable products with custom options to checkout cart page by programmatically. I […]

Magento High Level Architecture

Magento is split up into three code pools. 1. Core Contains core modules developed by Magento. 2. Community The location of third party modules (extensions) that are packaged and released. 3. Local Installation specific modules, customization and overrides. How does the framework interact with the various codepools? Magento High Level Architecture and module Conflicts To […]

Magento design patterns types with examples

What is a design pattern exactly? To quote Wikpedia: In software engineering, a design pattern is a general reusable solution to a commonly occurring problem within a given context in software design. A design pattern is a reusable solution to a common problem. That is as perfect a description. The list of design pattern Which […]

Overriding magento block model helper and controller

Due to many reasons it’s a bad habit and bad programming if core files are modified and it’s not recommended at all. Therefore Magento brought in an excellent way how to override/overwrite those files. We override Magento core classes to update/modify the core functionalities according to our need. We can directly makes changes in the […]

How do I show Magento products on a non-Magento page?

This is an often requested feature. There are a number of ways to do it too. You could create a listener to publish a category of products to static HTML whenever a category changes.You could run a cron script or other scheduled task to run some Magento code to export a category of products to […]

How do I hide the price of products before they go into the cart or if a person is not logged in Magento?

There are two places where the prices are formatted for display to the end user. The catalog (category view, and product view) and the cart. On the cart, one method is used for showing all the prices, including sub-total, tax totals, and the grand total, so it can be handled separately from the catalog’s price […]