I'm trying to trace some code in TemplateMonster_FeaturedProduct extension inside Block. I've found the following line of code:

$numberPerView = (int)$this->getNumberPerView();

I searched for getNumberPerView() in the block and in all classes block extends but I cannot find it.

So where is the function and how the block uses it?

  • 2
    I don't know this extension, but based on the information provided my first guess would be that they are using the magic getter/setter in Magento. So getNumberPerView() is the same as getData('number_per_view'). I would check for either setNumberPerView() or setData('number_per_view') and see if you have any luck there. – rain2o Apr 11 at 11:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.