We use cookies to make your experience better. To comply with the new e-Privacy directive, we need to ask for your consent to set the cookies. Learn more.
Monthly Archives: May 2015
- May 25, 2015 13
In this article I'll discuss how to resize image in custom module in Magento.
First step is Open your module "helper/data.php" and paste the below code in your...
- May 24, 2015 2
We don't have any function to re-size the category image, but we can use this code for category image resize
[php]
$_category=Mage::getModel('catalog/category')->load($categoryId());... - May 24, 2015 11
When we re-size product image we will get white space in border, so we can remove that white space when product image is re-sized
Use this code to re-size the product image with out...
- May 21, 2015 1
Here is a quick and complete code to load parent category from current category page and to get sub categories of parent category along with their product count.
[html]
/**... - May 16, 2015 10
In this article I'll talk about how to get all shopping cart items and total in Magento Shopping Cart. lets move on to the point.
[php]
$items = Mage::getSingleton('checkout/session')->getQuote()->getAllItems();... - May 16, 2015 11
Installer script to remove the customer attribute & data by code.
[php]
$setup = Mage::getModel('customer/entity_setup', 'core_setup');$attributeId = $setup->getAttributeId('customer'...
- May 15, 2015 3
Programatically Auto login to Magento admin section by username
Create a PHP file with below script and access in the URL
You will be automatically logged in to admin section...
- May 15, 2015 6
Script to remove the shopping cart / quote items of the customer using customer ID or customer Email.
Create a PHP file with below script and upload it into root folder of the Magento...
- May 15, 2015 26
[php]
$wysiwygConfig = Mage::getSingleton('cms/wysiwyg_config')->getConfig(array('add_variables' => true, 'add_widgets' => true, 'files_browser_window_url' =>... - May 15, 2015 6
Display subcategories of the current category if it has sub categories.
If it doesn't have the sub categories then display parent category with its sub categories.
Category...