Magento themes and extensions

Magento – Store Information

Share
Posted on September 22nd, 2014 | Posted by admin

Get store data in magento

Mage::app()->getStore();
Store Id
Mage::app()->getStore()->getStoreId();
Store code
Mage::app()->getStore()->getCode();
Website Id
Mage::app()->getStore()->getWebsiteId();
Store Name
Mage::app()->getStore()->getName();
Is Active
Mage::app()->getStore()->getIsActive();
Store Home Url
Mage::app()->getStore()->getHomeUrl();

Magento – Create multiple Sub-Category in few minutes

Share
Posted on September 19th, 2014 | Posted by admin

After log days I am posting something interesting here, we all knows creating category and assigning product to them in Magento is very time consuming

So I came with an solution for this.

First create the list of sub categories in CSV file, in first column with column heading “Category Name” and file name as “category.csv” then run below script

Redirect to Previous Page in Magento After Logout

Share
Posted on September 18th, 2014 | Posted by admin

By default Magento sends a user to a logoutSuccess page after they choose to log out. This is ‘hard-baked’ into the Customer controller’s logout action in the line $this->_redirect('*/*/logoutSuccess');. You can choose to set the Javascript redirect in the template customer/logout.phtml, but a better idea is to bypass the logout success page entirely.

The way to do this is to override the logoutAction() method in the customerController:

Magento – handle ajax call

Share
Posted on September 15th, 2014 | Posted by admin

Creating an ajax request call in magento is quite easy.

All the requests are handled by the controllers in Magento. So Inside the request controllers we need to create a block programmatically which will return a view html output.

Magento uses “block” concept to handle the html output. Blocks are special classes that handles the view section in magento.

Now create the ajax function and send your ajax request to this controller action.

This code will create and render a block in the controller and will return the html output.

Amaze – Responsive Multipurpose Magento theme

Share
Posted on September 13th, 2014 | Posted by admin

Amaze is a responsive multipurpose Magento theme which is fully customizable and suitable for any kind of Magento store on any device. This responsive theme is a general purpose responsive theme which can be highly customized and tailored for any heavy Magento store.

This Magento theme is designed and tested to be 100% responsive so it works & displays flawlessly
on all types of devices including smart phones and tablets.

Page 1 of 18712345»102030...Last »