• http://www.mindinventory.com/magento.php Magento Ecommerce

    The ten concepts is very important for magento developers should know and that apply to develop website.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
    • http://www.kingletas.com Luis Tineo

      Love it! Anything I can do to help…

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      VN:F [1.9.22_1171]
      Rating: 0 (from 0 votes)
  • http://twitter.com/magento_tutoria Magento Tutorial

    I totally agree with you. These ten concepts are very important and they help me a lot in my job.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  • http://www.yireo.com/ Yireo

    Nice. If only the developers who don’t care about concepts could read this blog :)

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
    • http://www.kingletas.com Luis Tineo

      Wow, Yireo thank you so much, hearing this from one of the companies that inspired me means I am definitely doing something good.

      Thank you for stopping by

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      VN:F [1.9.22_1171]
      Rating: 0 (from 0 votes)
  • Luca

    very usefull code:

    $collection = Mage::getModel(‘catalog/product’)->getCollection();
    $collection->addAttributeToSelect(‘brand’);

    foreach ($collection as $product){
    echo $product->getData(‘brand’);
    }

    From which store it takes brand’s value? From admin (id=0)?
    What have i to add to load for example brand’s value from store id = 1?

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
    • Luis Tineo

      Hey Luca,

      That code will load the product collection from the default store. You can set the store you want to get products from in the collection by using the setStore method

      VA:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      VA:F [1.9.22_1171]
      Rating: 0 (from 0 votes)
  • Roshan Lal

    Nice article :)

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  • http://www.mindinventory.com/hire-magento-developers.php hire magento developer

    Magento is a event driven application, which indicates that it uses the viewer style a lot, Magento’s execution of the style design could use some excellent refactoring but they still sustain a record of all the experts and Magento informs all of them instantly of any condition changes.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  • Parvej Vohra

    My expectation
    after reading the article are fulfilled.Thanks for sharing such a wonderful
    post.for more knowledge- https://www.facebook.com/hiremagentodeveloper

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  • George

    Just a note:

    The bellow code:

    foreach ($collection as $product){
    $product->load($product->getId()); //say what!?!!?
    echo $product->getBrand();
    }

    if you try and run it on a store with lots of products, magento will try to create an object for each of the items that match the query. And with your setup, it will pull al products that are in the store. So all those objects, magento will try to put them into the memory :-). It is always a good idea to setPageSize(limit number of Products here)

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
    • Luis Tineo

      Hey George,

      That piece of code is listed as bad code – this is what I consider the correct way to do it:

      $collection = Mage::getModel(‘catalog/product’)->getCollection();
      $collection->addAttributeToSelect(‘brand’);

      foreach ($collection as $product){
      echo $product->getData(‘brand’);
      }

      Now you are right, if you have too many products, it would be good to limit the amount of products either by sizes or by types, either way when working with Collections & Resource collections in Magento is always good to think the same way you would if you were working with SQL directly

      VA:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      VA:F [1.9.22_1171]
      Rating: 0 (from 0 votes)
  • http://myvietnam-visa.com/ vietnamvisa

    Great post!

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  • http://magentodeveloper.org/ Hire Magento Developer

    Good job. I appreciate the way you explain it all. IF you are going to hire a magneto developer must take their test as if he/she able to cover the given points he/she is the expertise and will deliver a good result. Good points.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  • web design orlando

    My
    expectation after reading the article are fulfilled.Thanks for sharing such a
    wonderful post.for more knowledge-

    web design orlando

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  • http://www.qbht.com/ HaroldWestbrook

    My
    expectation after reading the article are fulfilled.Thanks for sharing such a
    wonderful post.for more knowledge-

    website design dubai

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  • http://itharagroup.com/ LillyBracey

    My
    expectation after reading the article are fulfilled.Thanks for sharing such a
    wonderful post.for more knowledge-

    Jogging track

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  • Danny alfonzo Viana perez

    Hi all, I am creating a module for a Sex shop in magento 1.8.1, this module is just a warning that the page content is for over 18 years, I have everything ready exept capture the event when run the page home, and then routed to the path /age-verification, then when you accept that you are of age to save a cookie for 24 hours not to display verification during that time, I have everything ready but do not know how to use the Observe , what would be the event I look for?

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  • Surbhi Sheth

    Great information for developer! Appreciate your sharing on years of your developing experience; can be certainly helpful to both novice & experienced Magento developer in order to make the most powerful Magento store with enhanced quality & features suitable to various eCommerce enterprises and users’ requirements.

    Features explained on Zend Technology added to Magento’s functions are really worthwhile to know for any of the Magento developers! Cheers!

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
Back to top
mobile desktop