Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    7

    Post How to rewrite blocks?

    How to rewrite blocks?

  2. #2
    Senior Member schwa's Avatar
    Join Date
    Mar 2011
    Location
    Chengdu, Sichuan, China
    Posts
    427
    What do you mean by blocks?
    My name is Linda Chow, I am running a small online clothing store where you can find and shop sweet Lolita dress, Gothic Lolita dress and many other lolita accessories | My New Store: Cheap Latex Clothing

  3. #3
    Registered User
    Join Date
    Apr 2011
    Posts
    8
    For this you need to create following files as explained in the following example:
    Example:
    Company name: Coreover
    Module Name: Catalog

    File path: app\code\local\Coreover\Catalog\etc\config.xml
    Config.xml file:
    <?xml version="1.0"?>
    <config>
    .............

    <global>
    <blocks>
    <catalog>
    <rewrite>
    <product_list_toolbar>Coreover_Catalog_Block_Produ ct_List_Toolbar</product_list_toolbar>
    </rewrite>
    </catalog>
    </blocks>
    ..............
    </global>
    ............
    </config>


    File Path: app\code\local\Coreover\Catalog\Block\Product\List \Toolbar.php

    Php file for your module :

    <?php
    class Coreover_Catalog_Block_Product_List_Toolbar extends Mage_Catalog_Block_Product_List_Toolbar {

    //Your Code for rewriting functions

    }
    ?>
    Last edited by mtthwsmith8; 10-29-2013 at 08:33 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.