Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8007709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:55:11+00:00 2026-06-04T17:55:11+00:00

Trying to extend a model for a custom extension. Simple enough…but rewrite doesnt seem

  • 0

Trying to extend a model for a custom extension. Simple enough…but rewrite doesnt seem to be working.

i want to rewrite the following model, located in a module in the community code folder:

Belvg_Stores_Model_State

With my own, located in a module in the local code folder:

Myco_Storelocator_Model_State

Here is the config xml from Myco_Storelocator. The block rewrite is working…the state rewrite is not.

<?xml version="1.0"?>
<config>

<global>
    <modules>
        <myco_storelocator>
            <version>0.1.0</version>
        </myco_storelocator>
    </modules>
    <blocks>
        <storelocator><class>Myco_Storelocator_Block</class></storelocator>
        <stores>
            <rewrite>
                    <front>Myco_Storelocator_Block_Front</front>
            </rewrite>
        </stores>
    </blocks>
    <models>
        <stores>
            <rewrite>
                <state>Myco_Storelocator_Model_State</state>
            </rewrite>
        </stores>
    </models>
</global>   
<frontend>
  <layout>   
        <updates>   
            <storelocator>   
                <file>storelocator.xml</file>   
            </storelocator>   
        </updates>   
    </layout>
</frontend>   
</config>

Thanks for the help…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T17:55:14+00:00Added an answer on June 4, 2026 at 5:55 pm

    Needed to add the following to the relevant model rewrite…same as the block rewrite section:

    <storelocator><class>Myco_Storelocator_Model</class></storelocator>
    

    …doh.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm trying to recreate the MVC model of their simple example but i'm having
Am trying to construct a simple update query in my model class Model_DbTable_Account extends
I'm trying to extend JButton with Clojure, but I ran into a problem when
I'm trying to extend the SPL ArrayObject but I've hit a little snag. Using
A bit of background... I'm trying to create a custom auth backend and extend
Basically, I'm trying to do something like this: Person = Backbone.Model.extend({ validate: { ...
I'm trying to extend ActiveRecord with the custom validation method validate_as_email so i could
I'm trying to extend a few of my model classes to an Asset class.
I trying to extend UIButton but I keep getting a EXC_BAD_ACCESS, inside the initializer
I was trying to extend user profile. I founded a few solutions, but the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.