magento displays all prices of items

WBOY
Release: 2016-07-25 09:09:43
Original
980 people have browsed it
magento 是一个非常著名的php开发的电子商务平台
  1. $product= Mage::getModel('catalog/product')->load(product_id);
  2. $price = $product->getPrice();
  3. $webprice = $product->getwebprice();
  4. $specialprice = ($_product->getSpecialPrice());
  5. if($specialprice==$price)
  6. {?>
  7. Price $
  8. Regular Price:
  9. $
  • Web Special:
  • $
  • 复制代码


    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template