Monthly Archives: May 2015

  1. Magento: Resize image in custom module in magento

    Magento: Resize image in custom module in magento

    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...

    Read more »
  2. Magento: Category Image Re-size

    Magento: Category Image Re-size

    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());...

    Read more »
  3. Magento: Product Image Re-size with out frame or removing white space

    Magento: Product Image Re-size with out frame or removing white space

    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...

    Read more »
  4. Magento: Displaying Price filter of catgeory or layer filter in magento programmatically

    Magento: Displaying Price filter of catgeory or layer filter in magento programmatically

    If you need to display layer price filter, we can display in 2 type, one is calling default block but issue is some time price will not display if you click price filter or if cache is disabled...

    Read more »
  5. Magento: Get parent category, sub-category and product count

    Magento: Get parent category, sub-category and product count

    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]
    /**...

    Read more »
  6. Magento: Get new products programatically

    Magento: Get new products programatically

    To get new product collection in magento:-

    [php]
    $todayStartOfDayDate = Mage::app()->getLocale()->date()
    ->setTime('00:00:00')
    ->toString(Varien_Date::DATETIME_INTERNAL_FORMAT);...

    Read more »
  7. Magento: How to get all shopping cart items and total

    Magento: How to get all shopping cart items and total

    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();...

    Read more »
  8. Magento: Installer script to remove the customer attribute & data by code

    Magento: Installer script to remove the customer attribute & data by code

    Installer script to remove the customer attribute & data by code.

    [php]
    $setup = Mage::getModel('customer/entity_setup', 'core_setup');

    $attributeId = $setup->getAttributeId('customer'...

    Read more »
  9. Magento: Programatically login to Magento admin section by username

    Magento: Programatically login to Magento admin section by username

    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...

    Read more »
  10. Magneto: Remove cart or quote item by customer ID or Email Address

    Magneto: Remove cart or quote item by customer ID or Email Address

    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...

    Read more »
Posts loader