Home  >  Article  >  Backend Development  >  magento displays all prices of items

magento displays all prices of items

WBOY
WBOYOriginal
2016-07-25 09:09:43978browse
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:
  • $
  • 复制代码


    Statement:
    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