Magento Expert Forum - Improve your Magento experience

Results 1 to 2 of 2

How to get magento product detail from product ID?

  1. #1

  2. #2
    Administrator david's Avatar
    Join Date
    Nov 2012
    Posts
    261
    Thanks
    22
    Thanked 42 Times in 34 Posts

    Thumbs up

    You can do like this:

    PHP Code:

    <?php

    load
    ($productid); //getting product object for particular product id 
    echo $_product->getShortDescription(); //product's short description
    echo $_product->getDescription(); // product's long description
    echo $_product->getName(); //product name
    echo $_product->getPrice(); //product's regular Price
    echo $_product->getSpecialPrice(); //product's special Price
    echo $_product->getProductUrl(); //product url
    echo $_product->getImageUrl(); //product's image url
    echo $_product->getSmallImageUrl(); //product's small image url
    echo $_product->getThumbnailUrl(); //product's thumbnail image url    

    ?>

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •