Results 1 to 2 of 2
  1. #1
    Registered User JackITo's Avatar
    Join Date
    Apr 2012
    Posts
    77

    How do I learn the methods that can be accessed for certain objects?

    I have the following code:

    $_productCollection = Mage::getResourceModel('catalog/product_collection')
    ->addAttributeToSelect(array('name', 'price', 'small_image', 'status'), 'inner')
    ->addCategoryFilter(Mage::getModel('catalog/category')->load($catid));
    $_helper = $this->helper('catalog/output');
    foreach ($_productCollection as $_product):
    echo $_product->getProductUrl();
    endforeach

    I want to learn how I discover the methods I can use on an object.

    For example $_product->getProductUrl() is using the method getProductUrl() to get the url, but I need price and have no idea what method calls that. Using a print_r doesn't provide enough info for me to discover what they are. I presume they are in controllers that are located in the MAGE core. I have commerce bug and I have tired looking at: http://docs.magentocommerce.com/ But I find myself lost at times.

  2. #2
    Member
    Join Date
    Aug 2017
    Location
    usa
    Posts
    39
    It is best to use a customer approach, they are really powerful and useful for online marketing

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.