Getting started with Magento eCommerce platform doesn’t mean your site is safe and secure. Despite the fact that Magento is the most robust content management system for eCommerce websites, you can’t take its security lightly. You need to take serious measures to combat the security and hacking issues for your web store. In fact, the […]
Everyone knows there are admin interface to create categories, but if you want to create a category programmatically. Using Magento’s catalog/category model we can create a Magento category via a program. You have to set category title and Url key in order to show in the frontend. Magento creates category programmatically Here I’ve attached the […]
Getting customer details, there is handy function out there in Magento to achieve this. When working with Magento it’s very common that you need this information. So we are discussing how to get customer details in Magento. Follow the below steps Get customer Id from session in Magento
$customer = Mage::getSingleton('customer/session')->getCustomer();
$customerId = $customer->getId();
Using the $customerId we can load […]
Magento one of the robust ecommerce platform ever built in PHP and serving thousands of online shops. So you probably aware of Magento store you setup will not have 100% things that suit your need. But don’t worry Magento e-commerce have a solution for that, in the form of extensions. You will get thousands of […]
How to override Magento controller, must be a good practice whenever we want to add/update a new functionality to current Magento controller functions. Why overriding controllers? Controller is the entry point for any incoming request in Magento. To handle this Magento declares numerous functions in the Controller file mainly called actions. Suppose you want to […]
How to get categories for a product in Magento, use the below snippet code anywhere in the magneto.
Magento’s default contact us form page URL is a little bit awkward as its says http://yourdomain.om/contacts. We can change this easily by creating a small module. Step 1 Create a file in app/etc/modules/Namespace_Contacts.xml Step 2 Create the config file in app/code/local/Namespace/Contacts/etc/config.xml That’s it upload the files and clear the cache. Yea the default Magento url […]
Magento data models are giving great flexibility for the data processing. We don’t need to touch the complex SQL statements because of this feature. This often gives really quick development speed and accuracy more over a bulletproof approach. But several situations it much needed to execute a direct SQL query in order to update some […]
To do this, go to System => Configuration => Catalog => Catalog => Search Engine Optimization and set “Use categories path for product URL’s” to “no”.
If you need to redirect to external urls in Magento you have to use
. There are similar method uses in Magento to redirect to another Magento internal path.
$path would be an internal module/controller/action/param1/param1value page