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 6468919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T05:56:06+00:00 2026-05-25T05:56:06+00:00

Hopefully somebody can help me with this one as I’m a bit confused. I’m

  • 0

Hopefully somebody can help me with this one as I’m a bit confused.

I’m trying to reverse engineer the product chooser widget so that I can trigger it off a button in the front end. I’m making progress, albeit slow.

One thing that is confusing me though is one of the lines of code in the container.phtml file:

getTreeHtml() ?>

I just cant seem to see where this ‘getTreeHtml’ method is. I’ve looked in the template’s associated block, the block that that inherits from, and all the way up the object hierarchy. I’ve also done a text search on the whole of the Magento directory but this method doesnt appear anywhere… Am I missing something here?

Grateful for any help,
Ian

  • 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-05-25T05:56:06+00:00Added an answer on May 25, 2026 at 5:56 am

    Its a non-declared field accessor (a ‘magic’ method). Whenever you call a setField(value) or getField() on a Varien_Object without really declaring this methods (they don’t exist in the class), Varien_Object checks its $this->data array for a entry with a ‘field’ key. If such an entry exists it returns/sets the $this->data[‘field’] value.

    The method is used in your Widget. Check out the file:

    ./Mage/Adminhtml/controllers/Catalog/Product/WidgetController.php:

    Somewhere in it you can find this call:

    setTreeHtml($categoriesTree->toHtml())

    As you can see, the value is set in the controller, and later can be read in the template.

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

Sidebar

Related Questions

Hello stackoverflow friends! Hopefully somebody here can help me with this! I've looked all
Hopefully somebody can help me with this.. or at least point me in the
This one is fairly complex, hopefully I can make this clear enough for somebody
hopefully somebody can help me with this query. I need to list all 200
Hopefully somebody can help me out here. I'm working within an embedded ActionScript2 and
hopefully somebody can help The table structure is as follows: tblCompany: compID compName tblOffice:
Greetings guys, hopefully somebody has fresher eyes and can help me pinpoint the problem
Hopefully I can explain this to where someone might understand it enough to help
Hopefully somebody can point me to something that could help. What I'm doing is
I'll describe what I'm trying to do, and hopefully, somebody can tell me what

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.