0

在我正在处理的网站上http://www.idealtilenyc.com/index.php/lena-test-tile.html

由于某种原因,产品页面没有在 Chrome、Firefox 和 IE 中显示,一切都很好。有谁知道可能出了什么问题?

谢谢你!

这是代码:

<?php $_helper = $this->helper('catalog/output'); ?>
<?php $_product = $this->getProduct(); ?>
<script type="text/javascript">
    var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
</script>
<div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
<div class="product-view">



    <!------------------ SHOWROOM -------------->



    <?php

    $current_category = Mage::registry('current_category');

    if ($current_category->getName() == 'Showroom'): ?>  //this is line 55 

    <div class="product-essential">
    <form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
        <div class="no-display">
            <input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
            <input type="hidden" name="related_product" id="related-products-field" value="" />
        </div>
4

2 回答 2

0

If you have not altered so much on view.phtml, then top 2nd line code will be <?php $_product = $this->getProduct(); ?>

Now, use above object to print name of the product like: <?php echo $_product->getName(); ?>

Hope this will help!

于 2013-09-22T06:09:34.937 回答
0

看起来您的服务器页面内存限制很低。因此,请尝试在 php.ini 文件中增加页面内存限制。设置内存限制,例如 memory_limit = 250M

于 2013-09-21T08:23:49.460 回答