Sharing is helping.

We offer you this space to share your knowledge about Magento and learn from our experienced customers.


    Home Forums Theme Forum HelloUno Product details page problem Reply To: Product details page problem

    #6530

    Anonymous

    Thanks a lot to both of you for looking into this.Actually, we are also uploading the same template to another website, just to test, as the other one has an older version of magento. I’ll let you know the results of that one.
    Here is the error report, as per your request.

    Thanks for all your help in this matter.

    Regards,
    Prem

    —————————– start error report ————————

    <?php
    /**
    * Magento
    *
    * NOTICE OF LICENSE
    *
    * This source file is subject to the Academic Free License (AFL 3.0)
    * that is bundled with this package in the file LICENSE_AFL.txt.
    * It is also available through the world-wide-web at this URL:
    * http://opensource.org/licenses/afl-3.0.php
    * If you did not receive a copy of the license and are unable to
    * obtain it through the world-wide-web, please send an email
    * to [email protected] so we can send you a copy immediately.
    *
    * DISCLAIMER
    *
    * Do not edit or add to this file if you wish to upgrade Magento to newer
    * versions in the future. If you wish to customize Magento for your
    * needs please refer to http://www.magentocommerce.com for more information.
    *
    * @category design_default
    * @package Mage
    * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
    * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
    */

    /**
    * Product view template
    *
    * @see Mage_Catalog_Block_Product_View
    * @see Mage_Review_Block_Product_View
    */
    ?>
    <?php
    $_helper = $this->helper(‘catalog/output’);
    $_product = $this->getProduct();
    ?>
    <div class=”padder-product”>
    <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>
    <form action=”<?php echo $this->getAddToCartUrl($_product) ?>” method=”post” id=”product_addtocart_form”<?php if($_product->getOptions()): ?> enctype=”multipart/form-data”<?php endif; ?>>
    <div class=”product-img-box”>
    <?php echo $this->getChildHtml(‘media’) ?>
    </div>

    <div class=”product-info-box”>
    <h3 class=”product-name”><?php echo $_helper->productAttribute($_product, $this->htmlEscape($_product->getName()), ‘name’) ?></h3>

    <?php if ($this->canEmailToFriend()): ?>
    helper(‘catalog/product’)->getEmailToFriendUrl($_product) ?>”><?php echo $this->__(‘Email to a Friend’) ?>
    <?php endif; ?>

    <?php echo $this->getReviewsSummaryHtml($_product, false, true)?>

    <fieldset class=”no-display”>
    <input type=”hidden” name=”product” value=”<?php echo $_product->getId() ?>” />
    <input type=”hidden” name=”related_product” id=”related-products-field” value=”" />
    </fieldset>
    <?php echo $this->getChildHtml(‘alert_urls’) ?>
    <?php echo $this->getChildHtml(‘product_type_data’) ?>
    <?php echo $this->getChildHtml(‘tierprices’) ?>

    <?php if (!$this->hasOptions()):?>
    <div class=”add-to-boxes”>
    <?php if($_product->isSaleable()): ?>
    <?php echo $this->getChildHtml(‘addtocart’) ?>
    <?php endif; ?>
    <?php echo $this->getChildHtml(‘addto’) ?>
    </div>
    <?php else:?>
    <?php echo $this->getChildHtml(‘addto’) ?>
    <?php endif; ?>

    <?php if ($_product->getShortDescription()):?>
    <h4 class=”border-head”><?php echo $this->__(‘Quick Overview’) ?></h4>
    <div class=”short-description”><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), ‘short_description’) ?></div>
    <?php endif;?>

    <?php echo $this->getChildHtml(‘other’);?>

    <?php if ($_product->isSaleable() && $this->hasOptions()):?>
    <?php echo $this->getChildChildHtml(‘container1′, ”, true, true) ?>
    <?php endif; ?>
    </div>
    <div class=”clear”></div>
    <?php if ($_product->isSaleable() && $this->hasOptions()):?>
    <?php echo $this->getChildChildHtml(‘container2′, ”, true, true) ?>
    <?php endif; ?>
    </form>
    <script type=”text/javascript”>
    var productAddToCartForm = new VarienForm(‘product_addtocart_form’);
    productAddToCartForm.submit = function() {
    if(this.validator.validate()) {
    this.form.submit();
    }
    }.bind(productAddToCartForm);
    </script>
    <div class=”product-collateral”>
    <?php foreach ($this->getChildGroup(‘detailed_info’, ‘getChildHtml’) as $alias => $html):?>
    <div class=”box-collateral <?php echo “box-{$alias}”?>”>
    <?php if ($title = $this->getChildData($alias, ‘title’)):?>
    <h2><?php echo $this->escapeHtml($title); ?></h2>
    <?php endif;?>
    <?php echo $html; ?>
    </div>
    <?php endforeach;?>
    <?php echo $this->getChildHtml(‘upsell_products’) ?>
    <?php echo $this->getChildHtml(‘product_additional_data’) ?>
    </div>
    </div>

    <?php echo $this->getChildHtml(‘info_tabs’) ?></div>