Bem vindo ao brockdev.com, não seja tímido compartilhe suas duvidas e conhecimento. :D

Atributo ao lado do produto

luizstyle Usuário
editado November 2013 em Atributos
Boa Tarde!
Tenho uma loja de calçados e criei o atributo "numeros", ja modifiquei de dropdown para ícones (Conforme tutorial que Alessandra me passou), porém, os numeros ficam logo abaixo do produto, como segue na loja:

www.differenze.com.br/magento

Gostaria de saber qual arquivo altero para colocar o atributo "numeros" ao lado do produto.


Obrigado!

Comentários

  • Alessandra Moderador Global
    Olá Luiz!
    Poderia postar aqui no fórum o conteúdo do seu view.phtml?

    app/design/frontend/SeuTema/default/template/catalog/product
  • disse:

    Olá Luiz!
    Poderia postar aqui no fórum o conteúdo do seu view.phtml?

    app/design/frontend/SeuTema/default/template/catalog/product

    segue abaixo alessandra:

    <?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 license@magentocommerce.com 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
    * @package base_default
    * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.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'); ?>
    <?php
    $_product = $this->getProduct();
    $bundledProduct = false;
    if($_product->getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_BUNDLE){
    $bundledProduct = true;
    }
    ?>
    <?php
    $productpage_collateral = MAGE::helper('ThemeOptions')->getThemeOptions('productpage_collateral');
    $productpage_pagelayout = MAGE::helper('ThemeOptions')->getThemeOptions('productpage_pagelayout');

    switch ($productpage_pagelayout) {
    case 'productpage_extralarge':
    $leftcol = 'grid_12';
    $rightcol = 'grid_12';
    $rightcol_inner = 'grid_9';
    $rightcol_inner2 = 'grid_3';
    break;
    case 'productpage_large':
    $leftcol = 'grid_3';
    $rightcol = 'grid_9';
    $rightcol_inner = 'grid_6';
    $rightcol_inner2 = 'grid_3';
    break;
    case 'productpage_medium':
    $leftcol = 'grid_4';
    $rightcol = 'grid_8';
    $rightcol_inner = 'grid_5';
    $rightcol_inner2 = 'grid_3';
    break;
    case 'productpage_small':
    $leftcol = 'grid_5';
    $rightcol = 'grid_7';
    $rightcol_inner = 'grid_4';
    $rightcol_inner2 = 'grid_3';
    break;
    default:
    $leftcol = 'grid_4';
    $rightcol = 'grid_8';
    $rightcol_inner = 'grid_5';
    $rightcol_inner2 = 'grid_3';
    break;
    }
    ?>
    <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<?php if($bundledProduct == true){echo ' bundle-product';} if($_product->getData('special_price')!=''){echo ' special-price-inc';} ?>\">
    <div class=\"product-essential\">
    <?php echo MAGE::helper('ThemeOptions')->prevnext($_product) ?>

    <div class=\"<?php echo $leftcol .' '. $productpage_pagelayout; ?> alpha product-img-box\">
    <?php echo $this->getChildHtml('media'); ?>
    </div>

    <div class=\"<?php echo $rightcol; ?> <?php if($productpage_pagelayout == 'productpage_extralarge'){echo 'alpha ';} ?>omega product-shop\">

    <?php if($this->getChildHtml('product_custom_2')): ?>
    <div class=\"<?php echo $rightcol_inner; ?> alpha\">
    <?php endif; ?>

    <?php if((($_product->isSaleable() && $this->hasOptions()) and $this->getChildChildHtml('container1', '', true, true)) or !($_product->isSaleable() && $this->hasOptions())): ?>
    <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>
    <?php endif; ?>

    <div class=\"product-name\">
    <h2><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></h2>
    </div>

    <div class=\"product-box\">
    <?php echo $this->getReviewsSummaryHtml($_product, false, true)?>
    <?php echo $this->getChildHtml('product_type_data'); ?>
    <?php if ($_product->isAvailable()): ?>
    <p class=\"availability in-stock\"><span><?php echo $this->__('In stock') ?></span></p>
    <?php else: ?>
    <p class=\"availability out-of-stock\"><span><?php echo $this->__('Out of stock') ?></span></p>
    <?php endif; ?>
    <div class=\"clear\"></div>

    <div class=\"clear\"></div>
    </div>
    <?php echo $this->getChildHtml('alert_urls') ?>

    <?php $optionsAvailability = false; if($_product->isSaleable() && $this->hasOptions()){$optionsAvailability = true;}?>

    <?php if ($_product->getShortDescription()):?>
    <div class=\"short-description\">
    <div class=\"std\"><h2><?php echo $this->__('Details:') ?></h2><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?></div>
    </div>
    <?php endif;?>

    <?php if ($_product->isSaleable() && $this->hasOptions()):?>
    <div class=\"bundled-price\">
    <?php echo $this->getChildHtml('product_type_data'); ?>
    </div>
    <?php echo $this->getChildChildHtml('container1', '', true, true) ?>
    <?php endif;?>

    <?php echo $this->getChildHtml('extrahint') ?>


    <?php if (!$this->hasOptions() or $bundledProduct == true):?>
    <div class=\"product-type-block\">
    <div class=\"indent\">
    <div class=\"add-to-box\">
    <?php if($_product->isSaleable()): ?>
    <?php echo $this->getChildHtml('addtocart') ?>
    <?php endif; ?>
    </div>
    <?php echo $this->getChildHtml('extra_buttons') ?>
    <?php echo $this->getChildHtml('addto') ?>
    <?php if ($this->canEmailToFriend()): ?>
    <p class=\"email-friend\"><span></span><a href=\"<?php echo $this->helper('catalog/product')->getEmailToFriendUrl($_product) ?>\"><?php echo $this->__('Email to a Friend') ?></a></p>
    <?php endif; ?>
    <div class=\"clear\"></div>
    </div>
    </div>
    <?php endif; ?>

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

    <?php // Predefined Static Block
    if ($static_html = $this->getChildHtml('product_custom')):
    echo '<div class=\"product-custom\">'.$static_html.'</div>';
    endif; ?>

    <?php echo $this->getTierPriceHtml() ?>


    <?php if((($_product->isSaleable() && $this->hasOptions()) and $this->getChildChildHtml('container1', '', true, true)) or !($_product->isSaleable() && $this->hasOptions())): ?>
    </form>
    <?php endif; ?>

    <?php if($this->getChildHtml('product_custom_2')): ?>
    </div>
    <?php endif; ?>

    <?php if($this->getChildHtml('product_custom_2')): ?>
    <div class=\"<?php echo $rightcol_inner2; ?> omega\">
    <?php // Predefined Static Block
    if ($static_html = $this->getChildHtml('product_custom_2')):
    echo '<div class=\"product-custom-2\">'.$static_html.'</div>';
    endif; ?>
    </div>
    <?php endif; ?>

    </div>
    <div class=\"clear\"></div>
    <div class=\"product-collateral\"<?php if ($productpage_collateral == 'collateral_accordion') echo \" id='collateral-accordion'\"; ?>>
    <?php if ($productpage_collateral == 'collateral_tabs'):
    echo $this->getChildHtml('info_tabs');
    else:
    foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?>
    <?php if ($title = $this->getChildData($alias, 'title')):?>
    <h2><?php echo $this->escapeHtml($title); ?></h2>
    <?php endif;?>
    <?php echo $html; ?>
    <?php endforeach;
    echo $this->getChildHtml('upsell_products');
    echo $this->getChildHtml('product_additional_data');
    endif; ?>
    </div>
    <?php if ($_product->isSaleable() && $this->hasOptions()):?>
    <?php if (($_product->isSaleable() && $this->hasOptions()) and !$this->getChildChildHtml('container1', '', true, true)): ?>
    <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>
    <div class=\"bundled-price\">
    <?php echo $this->getChildHtml('product_type_data'); ?>
    </div>
    <?php endif; ?>
    <?php echo $this->getChildChildHtml('container2', '', true, true) ?>
    <?php if (($_product->isSaleable() && $this->hasOptions()) and !$this->getChildChildHtml('container1', '', true, true)): ?>
    </form>
    <?php endif; ?>
    <?php endif; ?>
    <?php echo $this->getChildHtml('catalog.product.related');?>

    <script type=\"text/javascript\">
    //<![CDATA[
    var productAddToCartForm = new VarienForm('product_addtocart_form');
    productAddToCartForm.submit = function(button, url) {
    if (this.validator.validate()) {
    var form = this.form;
    var oldUrl = form.action;

    if (url) {
    form.action = url;
    }
    var e = null;
    try {
    this.form.submit();
    } catch (e) {
    }
    this.form.action = oldUrl;
    if (e) {
    throw e;
    }

    if (button && button != 'undefined') {
    button.disabled = true;
    }
    }
    }.bind(productAddToCartForm);

    productAddToCartForm.submitLight = function(button, url){
    if(this.validator) {
    var nv = Validation.methods;
    delete Validation.methods['required-entry'];
    delete Validation.methods['validate-one-required'];
    delete Validation.methods['validate-one-required-by-name'];
    if (this.validator.validate()) {
    if (url) {
    this.form.action = url;
    }
    this.form.submit();
    }
    Object.extend(Validation.methods, nv);
    }
    }.bind(productAddToCartForm);
    //]]>
    </script>
    </div>

    <?php // Predefined Static Block
    if ($static_html = $this->getChildHtml('above_product_collateral')):
    echo '<div class=\"above-product-collateral\">'.$static_html.'</div>';
    endif; ?>

    <?php // Predefined Static Block
    if ($static_html = $this->getChildHtml('product_banners')):
    echo '<div class=\"product-banners\">'.$static_html.'</div>';
    endif; ?>
    <div class=\"review-title\">
    <h2><?php echo $this->__('Reviews'); ?></h2>
    </div>
    <?php echo $this->getChildHtml('product.info.review_list'); ?>

    </div>
  • Alessandra Moderador Global
    Luiz, faça o seguinte:

    1º - Procure o seguinte código:
    <?php echo $this->getChildChildHtml('container1', '', true, true) ?>


    E substitua por esse:
    <?php echo $this->getChildChildHtml('container2', '', true, true) ?>


    2º - Procure o seguinte código:

    <?php echo $this->getChildChildHtml('container2', '', true, true) ?>


    E substitua por esse:

    <?php echo $this->getChildChildHtml('container1', '', true, true) ?>


    Ou seja, você vai inverter esses dois códigos no seu view.phtml.
    ;)
  • thiagothomaz Moderador Global
    Se eu entendi bem seu problema, não seria bem mais simples você colocar esse atributo numero em um elemento html como uma <span> ou <div> e o produto em outro elemento então alinhar os elementos html um do lado do outro com css utilizando float: left; ?

    O mais "difícil" é ter as informações na sua view tendo isso tente separar bem e colocar no elementos html adequados então coloque os elementos aonde quiser.
    Thiago Thomaz
    Arquiteto de Software
    http://www.thiagothomaz.com
  • disse:

    Luiz, faça o seguinte:

    1º - Procure o seguinte código:

    &lt;?php echo $this-&gt;getChildChildHtml('container1', '', true, true) ?&gt;


    E substitua por esse:
    &lt;?php echo $this-&gt;getChildChildHtml('container2', '', true, true) ?&gt;


    2º - Procure o seguinte código:

    &lt;?php echo $this-&gt;getChildChildHtml('container2', '', true, true) ?&gt;


    E substitua por esse:

    &lt;?php echo $this-&gt;getChildChildHtml('container1', '', true, true) ?&gt;


    Ou seja, você vai inverter esses dois códigos no seu view.phtml.
    ;)

    Alessandra,
    Assim não funcionou :/
  • disse:

    Se eu entendi bem seu problema, não seria bem mais simples você colocar esse atributo numero em um elemento html como uma <span> ou <div> e o produto em outro elemento então alinhar os elementos html um do lado do outro com css utilizando float: left; ?

    O mais "difícil" é ter as informações na sua view tendo isso tente separar bem e colocar no elementos html adequados então coloque os elementos aonde quiser.


    Então thiago.
    O problema é que não sei onde tenho que mexer para colocar isso.
    Não sei quais arquivos posso modificar.
  • Alessandra Moderador Global
    Estava vendo aqui e o seu tema possui dois view.phtml, um quando o ajax está habilitado e outro quando não está habilitado.
    Esse outro view.phtml fica em app/design/frontend/SeuTema/default/template/ajax/catalog/product, talvez ele esteja sendo usado para "construir" a página do seu produto.
  • Alessandra Moderador Global
    Tenho duas observações quanto ao seu tema:

    1ª - O botão comprar deveria aparecer uma vez só nos produtos configuráveis, para consertar isso, no seu view.phtml, substitua a seguinte linha:

    &lt;?php if (!$this-&gt;hasOptions() or $bundledProduct == false):?&gt;


    Por essa:

    &lt;?php if (!$this-&gt;hasOptions()):?&gt;


    2ª - Não precisa trocar a ordem daqueles códigos que eu falei, basta recortar o código:

    &lt;?php echo $this-&gt;getChildChildHtml('container2', '', true, true) ?&gt;


    E colar abaixo do outro:

    &lt;?php echo $this-&gt;getChildChildHtml('container1', '', true, true) ?&gt;
  • disse:

    Tenho duas observações quanto ao seu tema:

    1ª - O botão comprar deveria aparecer uma vez só nos produtos configuráveis, para consertar isso, no seu view.phtml, substitua a seguinte linha:

    &lt;?php if (!$this-&gt;hasOptions() or $bundledProduct == false):?&gt;


    Por essa:

    &lt;?php if (!$this-&gt;hasOptions()):?&gt;


    2ª - Não precisa trocar a ordem daqueles códigos que eu falei, basta recortar o código:

    &lt;?php echo $this-&gt;getChildChildHtml('container2', '', true, true) ?&gt;


    E colar abaixo do outro:

    &lt;?php echo $this-&gt;getChildChildHtml('container1', '', true, true) ?&gt;

    Alessandra,
    Fiz o que me pediu e agora o comprar aparece um vez somente.

    O arquivo view.phtml que mudei foi o do ajax mesmo para poder funcionar.

    Eu gostaria de colocar a opção de numeração e o "comprar" do lado do produto, eles estão aparecendo abaixo.

    Olha como ficou.

    Obrigado
  • Alessandra Moderador Global
    Luiz, você recortou aquele código que eu citei:
    &lt;?php echo $this-&gt;getChildChildHtml('container2', '', true, true) ?&gt;


    E colou abaixo do:
    &lt;?php echo $this-&gt;getChildChildHtml('container1', '', true, true) ?&gt;


    ?
  • disse:

    Luiz, você recortou aquele código que eu citei:

    &lt;?php echo $this-&gt;getChildChildHtml('container2', '', true, true) ?&gt;


    E colou abaixo do:
    &lt;?php echo $this-&gt;getChildChildHtml('container1', '', true, true) ?&gt;


    ?
    Sim Alessandra.
    Viu como esta aparecendo?
  • Alessandra Moderador Global
    Vi sim, poderia postar seu view.phtml alterado para eu verificar?
  • disse:

    Vi sim, poderia postar seu view.phtml alterado para eu verificar?

    Aqui esta alessandra.
    O que funcionou é o da pasta ajax. O outro não deu nenhum efeito ao ser alterado

    &lt;?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 license@magentocommerce.com 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
    * @package base_default
    * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.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
    */
    ?&gt;
    &lt;?php $_helper = $this-&gt;helper('catalog/output'); ?&gt;
    &lt;?php
    $_product = $this-&gt;getProduct();
    $bundledProduct = false;
    if($_product-&gt;getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_BUNDLE){
    $bundledProduct = true;
    }
    ?&gt;
    &lt;?php
    $productpage_collateral = MAGE::helper('ThemeOptions')-&gt;getThemeOptions('productpage_collateral');
    $productpage_pagelayout = MAGE::helper('ThemeOptions')-&gt;getThemeOptions('productpage_pagelayout');

    switch ($productpage_pagelayout) {
    case 'productpage_extralarge':
    $leftcol = 'grid_12';
    $rightcol = 'grid_12';
    $rightcol_inner = 'grid_9';
    $rightcol_inner2 = 'grid_3';
    break;
    case 'productpage_large':
    $leftcol = 'grid_3';
    $rightcol = 'grid_9';
    $rightcol_inner = 'grid_6';
    $rightcol_inner2 = 'grid_3';
    break;
    case 'productpage_medium':
    $leftcol = 'grid_4';
    $rightcol = 'grid_8';
    $rightcol_inner = 'grid_5';
    $rightcol_inner2 = 'grid_3';
    break;
    case 'productpage_small':
    $leftcol = 'grid_5';
    $rightcol = 'grid_7';
    $rightcol_inner = 'grid_4';
    $rightcol_inner2 = 'grid_3';
    break;
    default:
    $leftcol = 'grid_4';
    $rightcol = 'grid_8';
    $rightcol_inner = 'grid_5';
    $rightcol_inner2 = 'grid_3';
    break;
    }
    ?&gt;
    &lt;script type=\"text/javascript\"&gt;
    var optionsPrice = new Product.OptionsPrice(&lt;?php echo $this-&gt;getJsonConfig() ?&gt;);
    &lt;/script&gt;
    &lt;div id=\"messages_product_view\"&gt;&lt;?php echo $this-&gt;getMessagesBlock()-&gt;getGroupedHtml() ?&gt;&lt;/div&gt;
    &lt;div class=\"product-view&lt;?php if($bundledProduct == true){echo ' bundle-product';} if($_product-&gt;getData('special_price')!=''){echo ' special-price-inc';} ?&gt;\"&gt;
    &lt;div class=\"product-essential\"&gt;
    &lt;?php echo MAGE::helper('ThemeOptions')-&gt;prevnext($_product) ?&gt;

    &lt;div class=\"&lt;?php echo $leftcol .' '. $productpage_pagelayout; ?&gt; alpha product-img-box\"&gt;
    &lt;?php echo $this-&gt;getChildHtml('media') ?&gt;
    &lt;/div&gt;

    &lt;div class=\"&lt;?php echo $rightcol; ?&gt; &lt;?php if($productpage_pagelayout == 'productpage_extralarge'){echo 'alpha ';} ?&gt;omega product-shop\"&gt;

    &lt;?php if($this-&gt;getChildHtml('product_custom_2')): ?&gt;
    &lt;div class=\"&lt;?php echo $rightcol_inner; ?&gt; alpha\"&gt;
    &lt;?php endif; ?&gt;

    &lt;?php if((($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and $this-&gt;getChildChildHtml('container1', '', true, true)) or !($_product-&gt;isSaleable() && $this-&gt;hasOptions())): ?&gt;
    &lt;form action=\"&lt;?php echo $this-&gt;getSubmitUrl($_product) ?&gt;\" method=\"post\" id=\"product_addtocart_form\"&lt;?php if($_product-&gt;getOptions()): ?&gt; enctype=\"multipart/form-data\"&lt;?php endif; ?&gt;&gt;
    &lt;div class=\"no-display\"&gt;
    &lt;input type=\"hidden\" name=\"product\" value=\"&lt;?php echo $_product-&gt;getId() ?&gt;\" /&gt;
    &lt;input type=\"hidden\" name=\"related_product\" id=\"related-products-field\" value=\"\" /&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;div class=\"product-name\"&gt;
    &lt;h2&gt;&lt;?php echo $_helper-&gt;productAttribute($_product, $_product-&gt;getName(), 'name') ?&gt;&lt;/h2&gt;
    &lt;/div&gt;

    &lt;div class=\"product-box\"&gt;
    &lt;?php echo $this-&gt;getReviewsSummaryHtml($_product, false, true)?&gt;
    &lt;?php echo $this-&gt;getChildHtml('product_type_data'); ?&gt;
    &lt;?php if ($_product-&gt;isAvailable()): ?&gt;
    &lt;p class=\"availability in-stock\"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('In stock') ?&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;?php else: ?&gt;
    &lt;p class=\"availability out-of-stock\"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Out of stock') ?&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;?php endif; ?&gt;
    &lt;div class=\"clear\"&gt;&lt;/div&gt;

    &lt;div class=\"clear\"&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildHtml('alert_urls') ?&gt;

    &lt;?php $optionsAvailability = false; if($_product-&gt;isSaleable() && $this-&gt;hasOptions()){$optionsAvailability = true;}?&gt;

    &lt;?php if ($_product-&gt;getShortDescription()):?&gt;
    &lt;div class=\"short-description\"&gt;
    &lt;div class=\"std\"&gt;&lt;h2&gt;&lt;?php echo $this-&gt;__('Details:') ?&gt;&lt;/h2&gt;&lt;?php echo $_helper-&gt;productAttribute($_product, nl2br($_product-&gt;getShortDescription()), 'short_description') ?&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;?php endif;?&gt;

    &lt;?php if ($_product-&gt;isSaleable() && $this-&gt;hasOptions()):?&gt;
    &lt;div class=\"bundled-price\"&gt;
    &lt;?php echo $this-&gt;getChildHtml('product_type_data'); ?&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildChildHtml('container1', '', true, true) ?&gt;
    &lt;?php endif;?&gt;

    &lt;?php echo $this-&gt;getChildHtml('extrahint') ?&gt;


    &lt;?php if (!$this-&gt;hasOptions()):?&gt;
    &lt;div class=\"product-type-block\"&gt;
    &lt;div class=\"indent\"&gt;
    &lt;div class=\"add-to-box\"&gt;
    &lt;?php if($_product-&gt;isSaleable()): ?&gt;
    &lt;?php echo $this-&gt;getChildHtml('addtocart') ?&gt;
    &lt;?php endif; ?&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildHtml('extra_buttons') ?&gt;
    &lt;?php echo $this-&gt;getChildHtml('addto') ?&gt;
    &lt;?php if ($this-&gt;canEmailToFriend()): ?&gt;
    &lt;p class=\"email-friend\"&gt;&lt;span&gt;&lt;/span&gt;&lt;a href=\"&lt;?php echo $this-&gt;helper('catalog/product')-&gt;getEmailToFriendUrl($_product) ?&gt;\"&gt;&lt;?php echo $this-&gt;__('Email to a Friend') ?&gt;&lt;/a&gt;&lt;/p&gt;
    &lt;?php endif; ?&gt;
    &lt;div class=\"clear\"&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;?php echo $this-&gt;getChildHtml('other');?&gt;

    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('product_custom')):
    echo '&lt;div class=\"product-custom\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;

    &lt;?php echo $this-&gt;getTierPriceHtml() ?&gt;


    &lt;?php if((($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and $this-&gt;getChildChildHtml('container1', '', true, true)) or !($_product-&gt;isSaleable() && $this-&gt;hasOptions())): ?&gt;
    &lt;/form&gt;
    &lt;?php endif; ?&gt;

    &lt;?php if($this-&gt;getChildHtml('product_custom_2')): ?&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;?php if($this-&gt;getChildHtml('product_custom_2')): ?&gt;
    &lt;div class=\"&lt;?php echo $rightcol_inner2; ?&gt; omega\"&gt;
    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('product_custom_2')):
    echo '&lt;div class=\"product-custom-2\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;/div&gt;
    &lt;div class=\"clear\"&gt;&lt;/div&gt;
    &lt;div class=\"product-collateral\"&lt;?php if ($productpage_collateral == 'collateral_accordion') echo \" id='collateral-accordion'\"; ?&gt;&gt;
    &lt;?php if ($productpage_collateral == 'collateral_tabs'):
    echo $this-&gt;getChildHtml('info_tabs');
    else:
    foreach ($this-&gt;getChildGroup('detailed_info', 'getChildHtml') as $alias =&gt; $html):?&gt;
    &lt;?php if ($title = $this-&gt;getChildData($alias, 'title')):?&gt;
    &lt;h2&gt;&lt;?php echo $this-&gt;escapeHtml($title); ?&gt;&lt;/h2&gt;
    &lt;?php endif;?&gt;
    &lt;?php echo $html; ?&gt;
    &lt;?php endforeach;
    echo $this-&gt;getChildHtml('upsell_products');
    echo $this-&gt;getChildHtml('product_additional_data');
    endif; ?&gt;
    &lt;/div&gt;
    &lt;?php if ($_product-&gt;isSaleable() && $this-&gt;hasOptions()):?&gt;
    &lt;?php if (($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and !$this-&gt;getChildChildHtml('container1', '', true, true)): ?&gt;
    &lt;form action=\"&lt;?php echo $this-&gt;getSubmitUrl($_product) ?&gt;\" method=\"post\" id=\"product_addtocart_form\"&lt;?php if($_product-&gt;getOptions()): ?&gt; enctype=\"multipart/form-data\"&lt;?php endif; ?&gt;&gt;
    &lt;div class=\"no-display\"&gt;
    &lt;input type=\"hidden\" name=\"product\" value=\"&lt;?php echo $_product-&gt;getId() ?&gt;\" /&gt;
    &lt;input type=\"hidden\" name=\"related_product\" id=\"related-products-field\" value=\"\" /&gt;
    &lt;/div&gt;
    &lt;div class=\"bundled-price\"&gt;
    &lt;?php echo $this-&gt;getChildHtml('product_type_data'); ?&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;
    &lt;?php echo $this-&gt;getChildChildHtml('container2', '', true, true) ?&gt;
    &lt;?php if (($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and !$this-&gt;getChildChildHtml('container1', '', true, true)): ?&gt;
    &lt;/form&gt;
    &lt;?php endif; ?&gt;
    &lt;?php endif; ?&gt;
    &lt;?php echo $this-&gt;getChildHtml('catalog.product.related');?&gt;

    &lt;script type=\"text/javascript\"&gt;
    //&lt;!&#91;CDATA&#91;
    var productAddToCartForm = new VarienForm('product_addtocart_form');
    productAddToCartForm.submit = function(button, url) {
    if (this.validator.validate()) {
    var form = this.form;
    var oldUrl = form.action;
    if (url) {
    form.action = url;
    }
    var e = null;
    // Start of our new ajax code
    if (!url) {
    url = jQuery('#product_addtocart_form').attr('action');
    }

    url = url.replace(\"checkout/cart\",\"ajax/index\"); // New Code
    var data = jQuery('#product_addtocart_form').serialize();
    data += '&isAjax=1';
    jQuery('#ajax_loader').show();
    try {
    jQuery.ajax( {
    url : url,
    dataType : 'json',
    type : 'post',
    data : data,
    success : function(data) {
    jQuery('#ajax_loader').hide();
    if(data.status == 'ERROR'){
    alert(data.message);
    }else{
    if(jQuery('.top-cart')){
    jQuery('.top-cart').replaceWith(data.sidebar);
    }
    /* if(jQuery('.header .links')){
    jQuery('.header .links').replaceWith(data.toplink);
    } */
    }
    jQuery('body').append('&lt;div class=\"add-to-cart-success\"&gt;' + data.message +' &lt;a href=\"&lt;?php echo $this-&gt;getUrl('checkout/cart'); ?&gt;\"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Go to Shopping Cart') ?&gt;&lt;/span&gt;&lt;/a&gt;&lt;a href=\"#\" class=\"btn-remove\"&gt;&nbsp;&lt;/a&gt;&lt;/div&gt;');
    setTimeout(function () {jQuery('.add-to-cart-success').slideUp(500)}, 5000);
    jQuery('.add-to-cart-success a.btn-remove').click(function(){
    jQuery(this).parent().slideUp(500);
    return false;
    })
    }
    });
    } catch (e) {
    }
    // End of our new ajax code
    this.form.action = oldUrl;
    if (e) {
    throw e;
    }
    }
    }.bind(productAddToCartForm);

    productAddToCartForm.submitLight = function(button, url){
    if(this.validator) {
    var nv = Validation.methods;
    delete Validation.methods&#91;'required-entry'&#93;;
    delete Validation.methods&#91;'validate-one-required'&#93;;
    delete Validation.methods&#91;'validate-one-required-by-name'&#93;;
    if (this.validator.validate()) {
    if (url) {
    this.form.action = url;
    }
    this.form.submit();
    }
    Object.extend(Validation.methods, nv);
    }
    }.bind(productAddToCartForm);
    //&#93;&#93;&gt;
    &lt;/script&gt;
    &lt;/div&gt;

    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('above_product_collateral')):
    echo '&lt;div class=\"above-product-collateral\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;

    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('product_banners')):
    echo '&lt;div class=\"product-banners\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;
    &lt;div class=\"review-title\"&gt;
    &lt;h2&gt;&lt;?php echo $this-&gt;__('Reviews'); ?&gt;&lt;/h2&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildHtml('product.info.review_list'); ?&gt;

    &lt;/div&gt;
  • Alessandra Moderador Global
    Fiz um teste aqui e funcionou, colocando o código:
    &lt;?php echo $this-&gt;getChildChildHtml('container2', '', true, true) ?&gt;


    Logo abaixo de:
    &lt;?php echo $this-&gt;getChildChildHtml('container1', '', true, true) ?&gt;


    Tem certeza que você moveu o código correto?
    Veja como ficou o arquivo completo:

    &lt;?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 license@magentocommerce.com 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
    * @package base_default
    * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.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
    */
    ?&gt;
    &lt;?php $_helper = $this-&gt;helper('catalog/output'); ?&gt;
    &lt;?php
    $_product = $this-&gt;getProduct();
    $bundledProduct = false;
    if($_product-&gt;getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_BUNDLE){
    $bundledProduct = true;
    }
    ?&gt;
    &lt;?php
    $productpage_collateral = MAGE::helper('ThemeOptions')-&gt;getThemeOptions('productpage_collateral');
    $productpage_pagelayout = MAGE::helper('ThemeOptions')-&gt;getThemeOptions('productpage_pagelayout');

    switch ($productpage_pagelayout) {
    case 'productpage_extralarge':
    $leftcol = 'grid_12';
    $rightcol = 'grid_12';
    $rightcol_inner = 'grid_9';
    $rightcol_inner2 = 'grid_3';
    break;
    case 'productpage_large':
    $leftcol = 'grid_3';
    $rightcol = 'grid_9';
    $rightcol_inner = 'grid_6';
    $rightcol_inner2 = 'grid_3';
    break;
    case 'productpage_medium':
    $leftcol = 'grid_4';
    $rightcol = 'grid_8';
    $rightcol_inner = 'grid_5';
    $rightcol_inner2 = 'grid_3';
    break;
    case 'productpage_small':
    $leftcol = 'grid_5';
    $rightcol = 'grid_7';
    $rightcol_inner = 'grid_4';
    $rightcol_inner2 = 'grid_3';
    break;
    default:
    $leftcol = 'grid_4';
    $rightcol = 'grid_8';
    $rightcol_inner = 'grid_5';
    $rightcol_inner2 = 'grid_3';
    break;
    }
    ?&gt;
    &lt;script type=\"text/javascript\"&gt;
    var optionsPrice = new Product.OptionsPrice(&lt;?php echo $this-&gt;getJsonConfig() ?&gt;);
    &lt;/script&gt;
    &lt;div id=\"messages_product_view\"&gt;&lt;?php echo $this-&gt;getMessagesBlock()-&gt;getGroupedHtml() ?&gt;&lt;/div&gt;
    &lt;div class=\"product-view&lt;?php if($bundledProduct == true){echo ' bundle-product';} if($_product-&gt;getData('special_price')!=''){echo ' special-price-inc';} ?&gt;\"&gt;
    &lt;div class=\"product-essential\"&gt;
    &lt;?php echo MAGE::helper('ThemeOptions')-&gt;prevnext($_product) ?&gt;

    &lt;div class=\"&lt;?php echo $leftcol .' '. $productpage_pagelayout; ?&gt; alpha product-img-box\"&gt;
    &lt;?php echo $this-&gt;getChildHtml('media') ?&gt;
    &lt;/div&gt;

    &lt;div class=\"&lt;?php echo $rightcol; ?&gt; &lt;?php if($productpage_pagelayout == 'productpage_extralarge'){echo 'alpha ';} ?&gt;omega product-shop\"&gt;

    &lt;?php if($this-&gt;getChildHtml('product_custom_2')): ?&gt;
    &lt;div class=\"&lt;?php echo $rightcol_inner; ?&gt; alpha\"&gt;
    &lt;?php endif; ?&gt;

    &lt;?php if((($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and $this-&gt;getChildChildHtml('container1', '', true, true)) or !($_product-&gt;isSaleable() && $this-&gt;hasOptions())): ?&gt;
    &lt;form action=\"&lt;?php echo $this-&gt;getSubmitUrl($_product) ?&gt;\" method=\"post\" id=\"product_addtocart_form\"&lt;?php if($_product-&gt;getOptions()): ?&gt; enctype=\"multipart/form-data\"&lt;?php endif; ?&gt;&gt;
    &lt;div class=\"no-display\"&gt;
    &lt;input type=\"hidden\" name=\"product\" value=\"&lt;?php echo $_product-&gt;getId() ?&gt;\" /&gt;
    &lt;input type=\"hidden\" name=\"related_product\" id=\"related-products-field\" value=\"\" /&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;div class=\"product-name\"&gt;
    &lt;h2&gt;&lt;?php echo $_helper-&gt;productAttribute($_product, $_product-&gt;getName(), 'name') ?&gt;&lt;/h2&gt;
    &lt;/div&gt;

    &lt;div class=\"product-box\"&gt;
    &lt;?php echo $this-&gt;getReviewsSummaryHtml($_product, false, true)?&gt;
    &lt;?php echo $this-&gt;getChildHtml('product_type_data'); ?&gt;
    &lt;?php if ($_product-&gt;isAvailable()): ?&gt;
    &lt;p class=\"availability in-stock\"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('In stock') ?&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;?php else: ?&gt;
    &lt;p class=\"availability out-of-stock\"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Out of stock') ?&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;?php endif; ?&gt;
    &lt;div class=\"clear\"&gt;&lt;/div&gt;

    &lt;div class=\"clear\"&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildHtml('alert_urls') ?&gt;

    &lt;?php $optionsAvailability = false; if($_product-&gt;isSaleable() && $this-&gt;hasOptions()){$optionsAvailability = true;}?&gt;

    &lt;?php if ($_product-&gt;getShortDescription()):?&gt;
    &lt;div class=\"short-description\"&gt;
    &lt;div class=\"std\"&gt;&lt;h2&gt;&lt;?php echo $this-&gt;__('Details:') ?&gt;&lt;/h2&gt;&lt;?php echo $_helper-&gt;productAttribute($_product, nl2br($_product-&gt;getShortDescription()), 'short_description') ?&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;?php endif;?&gt;

    &lt;?php if ($_product-&gt;isSaleable() && $this-&gt;hasOptions()):?&gt;
    &lt;div class=\"bundled-price\"&gt;
    &lt;?php echo $this-&gt;getChildHtml('product_type_data'); ?&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildChildHtml('container1', '', true, true) ?&gt;
    &lt;?php echo $this-&gt;getChildChildHtml('container2', '', true, true) ?&gt;
    &lt;?php endif;?&gt;

    &lt;?php echo $this-&gt;getChildHtml('extrahint') ?&gt;


    &lt;?php if (!$this-&gt;hasOptions()):?&gt;
    &lt;div class=\"product-type-block\"&gt;
    &lt;div class=\"indent\"&gt;
    &lt;div class=\"add-to-box\"&gt;
    &lt;?php if($_product-&gt;isSaleable()): ?&gt;
    &lt;?php echo $this-&gt;getChildHtml('addtocart') ?&gt;
    &lt;?php endif; ?&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildHtml('extra_buttons') ?&gt;
    &lt;?php echo $this-&gt;getChildHtml('addto') ?&gt;
    &lt;?php if ($this-&gt;canEmailToFriend()): ?&gt;
    &lt;p class=\"email-friend\"&gt;&lt;span&gt;&lt;/span&gt;&lt;a href=\"&lt;?php echo $this-&gt;helper('catalog/product')-&gt;getEmailToFriendUrl($_product) ?&gt;\"&gt;&lt;?php echo $this-&gt;__('Email to a Friend') ?&gt;&lt;/a&gt;&lt;/p&gt;
    &lt;?php endif; ?&gt;
    &lt;div class=\"clear\"&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;?php echo $this-&gt;getChildHtml('other');?&gt;

    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('product_custom')):
    echo '&lt;div class=\"product-custom\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;

    &lt;?php echo $this-&gt;getTierPriceHtml() ?&gt;


    &lt;?php if((($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and $this-&gt;getChildChildHtml('container1', '', true, true)) or !($_product-&gt;isSaleable() && $this-&gt;hasOptions())): ?&gt;
    &lt;/form&gt;
    &lt;?php endif; ?&gt;

    &lt;?php if($this-&gt;getChildHtml('product_custom_2')): ?&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;?php if($this-&gt;getChildHtml('product_custom_2')): ?&gt;
    &lt;div class=\"&lt;?php echo $rightcol_inner2; ?&gt; omega\"&gt;
    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('product_custom_2')):
    echo '&lt;div class=\"product-custom-2\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;/div&gt;
    &lt;div class=\"clear\"&gt;&lt;/div&gt;
    &lt;div class=\"product-collateral\"&lt;?php if ($productpage_collateral == 'collateral_accordion') echo \" id='collateral-accordion'\"; ?&gt;&gt;
    &lt;?php if ($productpage_collateral == 'collateral_tabs'):
    echo $this-&gt;getChildHtml('info_tabs');
    else:
    foreach ($this-&gt;getChildGroup('detailed_info', 'getChildHtml') as $alias =&gt; $html):?&gt;
    &lt;?php if ($title = $this-&gt;getChildData($alias, 'title')):?&gt;
    &lt;h2&gt;&lt;?php echo $this-&gt;escapeHtml($title); ?&gt;&lt;/h2&gt;
    &lt;?php endif;?&gt;
    &lt;?php echo $html; ?&gt;
    &lt;?php endforeach;
    echo $this-&gt;getChildHtml('upsell_products');
    echo $this-&gt;getChildHtml('product_additional_data');
    endif; ?&gt;
    &lt;/div&gt;
    &lt;?php if ($_product-&gt;isSaleable() && $this-&gt;hasOptions()):?&gt;
    &lt;?php if (($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and !$this-&gt;getChildChildHtml('container1', '', true, true)): ?&gt;
    &lt;form action=\"&lt;?php echo $this-&gt;getSubmitUrl($_product) ?&gt;\" method=\"post\" id=\"product_addtocart_form\"&lt;?php if($_product-&gt;getOptions()): ?&gt; enctype=\"multipart/form-data\"&lt;?php endif; ?&gt;&gt;
    &lt;div class=\"no-display\"&gt;
    &lt;input type=\"hidden\" name=\"product\" value=\"&lt;?php echo $_product-&gt;getId() ?&gt;\" /&gt;
    &lt;input type=\"hidden\" name=\"related_product\" id=\"related-products-field\" value=\"\" /&gt;
    &lt;/div&gt;
    &lt;div class=\"bundled-price\"&gt;
    &lt;?php echo $this-&gt;getChildHtml('product_type_data'); ?&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;?php if (($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and !$this-&gt;getChildChildHtml('container1', '', true, true)): ?&gt;
    &lt;/form&gt;
    &lt;?php endif; ?&gt;
    &lt;?php endif; ?&gt;
    &lt;?php echo $this-&gt;getChildHtml('catalog.product.related');?&gt;

    &lt;script type=\"text/javascript\"&gt;
    //&lt;!&#91;CDATA&#91;
    var productAddToCartForm = new VarienForm('product_addtocart_form');
    productAddToCartForm.submit = function(button, url) {
    if (this.validator.validate()) {
    var form = this.form;
    var oldUrl = form.action;
    if (url) {
    form.action = url;
    }
    var e = null;
    // Start of our new ajax code
    if (!url) {
    url = jQuery('#product_addtocart_form').attr('action');
    }

    url = url.replace(\"checkout/cart\",\"ajax/index\"); // New Code
    var data = jQuery('#product_addtocart_form').serialize();
    data += '&isAjax=1';
    jQuery('#ajax_loader').show();
    try {
    jQuery.ajax( {
    url : url,
    dataType : 'json',
    type : 'post',
    data : data,
    success : function(data) {
    jQuery('#ajax_loader').hide();
    if(data.status == 'ERROR'){
    alert(data.message);
    }else{
    if(jQuery('.top-cart')){
    jQuery('.top-cart').replaceWith(data.sidebar);
    }
    /* if(jQuery('.header .links')){
    jQuery('.header .links').replaceWith(data.toplink);
    } */
    }
    jQuery('body').append('&lt;div class=\"add-to-cart-success\"&gt;' + data.message +' &lt;a href=\"&lt;?php echo $this-&gt;getUrl('checkout/cart'); ?&gt;\"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Go to Shopping Cart') ?&gt;&lt;/span&gt;&lt;/a&gt;&lt;a href=\"#\" class=\"btn-remove\"&gt;&nbsp;&lt;/a&gt;&lt;/div&gt;');
    setTimeout(function () {jQuery('.add-to-cart-success').slideUp(500)}, 5000);
    jQuery('.add-to-cart-success a.btn-remove').click(function(){
    jQuery(this).parent().slideUp(500);
    return false;
    })
    }
    });
    } catch (e) {
    }
    // End of our new ajax code
    this.form.action = oldUrl;
    if (e) {
    throw e;
    }
    }
    }.bind(productAddToCartForm);

    productAddToCartForm.submitLight = function(button, url){
    if(this.validator) {
    var nv = Validation.methods;
    delete Validation.methods&#91;'required-entry'&#93;;
    delete Validation.methods&#91;'validate-one-required'&#93;;
    delete Validation.methods&#91;'validate-one-required-by-name'&#93;;
    if (this.validator.validate()) {
    if (url) {
    this.form.action = url;
    }
    this.form.submit();
    }
    Object.extend(Validation.methods, nv);
    }
    }.bind(productAddToCartForm);
    //&#93;&#93;&gt;
    &lt;/script&gt;
    &lt;/div&gt;

    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('above_product_collateral')):
    echo '&lt;div class=\"above-product-collateral\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;

    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('product_banners')):
    echo '&lt;div class=\"product-banners\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;
    &lt;div class=\"review-title\"&gt;
    &lt;h2&gt;&lt;?php echo $this-&gt;__('Reviews'); ?&gt;&lt;/h2&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildHtml('product.info.review_list'); ?&gt;

    &lt;/div&gt;
  • disse:

    Fiz um teste aqui e funcionou, colocando o código:

    &lt;?php echo $this-&gt;getChildChildHtml('container2', '', true, true) ?&gt;


    Logo abaixo de:
    &lt;?php echo $this-&gt;getChildChildHtml('container1', '', true, true) ?&gt;


    Tem certeza que você moveu o código correto?
    Veja como ficou o arquivo completo:

    &lt;?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 license@magentocommerce.com 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
    * @package base_default
    * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.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
    */
    ?&gt;
    &lt;?php $_helper = $this-&gt;helper('catalog/output'); ?&gt;
    &lt;?php
    $_product = $this-&gt;getProduct();
    $bundledProduct = false;
    if($_product-&gt;getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_BUNDLE){
    $bundledProduct = true;
    }
    ?&gt;
    &lt;?php
    $productpage_collateral = MAGE::helper('ThemeOptions')-&gt;getThemeOptions('productpage_collateral');
    $productpage_pagelayout = MAGE::helper('ThemeOptions')-&gt;getThemeOptions('productpage_pagelayout');

    switch ($productpage_pagelayout) {
    case 'productpage_extralarge':
    $leftcol = 'grid_12';
    $rightcol = 'grid_12';
    $rightcol_inner = 'grid_9';
    $rightcol_inner2 = 'grid_3';
    break;
    case 'productpage_large':
    $leftcol = 'grid_3';
    $rightcol = 'grid_9';
    $rightcol_inner = 'grid_6';
    $rightcol_inner2 = 'grid_3';
    break;
    case 'productpage_medium':
    $leftcol = 'grid_4';
    $rightcol = 'grid_8';
    $rightcol_inner = 'grid_5';
    $rightcol_inner2 = 'grid_3';
    break;
    case 'productpage_small':
    $leftcol = 'grid_5';
    $rightcol = 'grid_7';
    $rightcol_inner = 'grid_4';
    $rightcol_inner2 = 'grid_3';
    break;
    default:
    $leftcol = 'grid_4';
    $rightcol = 'grid_8';
    $rightcol_inner = 'grid_5';
    $rightcol_inner2 = 'grid_3';
    break;
    }
    ?&gt;
    &lt;script type=\"text/javascript\"&gt;
    var optionsPrice = new Product.OptionsPrice(&lt;?php echo $this-&gt;getJsonConfig() ?&gt;);
    &lt;/script&gt;
    &lt;div id=\"messages_product_view\"&gt;&lt;?php echo $this-&gt;getMessagesBlock()-&gt;getGroupedHtml() ?&gt;&lt;/div&gt;
    &lt;div class=\"product-view&lt;?php if($bundledProduct == true){echo ' bundle-product';} if($_product-&gt;getData('special_price')!=''){echo ' special-price-inc';} ?&gt;\"&gt;
    &lt;div class=\"product-essential\"&gt;
    &lt;?php echo MAGE::helper('ThemeOptions')-&gt;prevnext($_product) ?&gt;

    &lt;div class=\"&lt;?php echo $leftcol .' '. $productpage_pagelayout; ?&gt; alpha product-img-box\"&gt;
    &lt;?php echo $this-&gt;getChildHtml('media') ?&gt;
    &lt;/div&gt;

    &lt;div class=\"&lt;?php echo $rightcol; ?&gt; &lt;?php if($productpage_pagelayout == 'productpage_extralarge'){echo 'alpha ';} ?&gt;omega product-shop\"&gt;

    &lt;?php if($this-&gt;getChildHtml('product_custom_2')): ?&gt;
    &lt;div class=\"&lt;?php echo $rightcol_inner; ?&gt; alpha\"&gt;
    &lt;?php endif; ?&gt;

    &lt;?php if((($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and $this-&gt;getChildChildHtml('container1', '', true, true)) or !($_product-&gt;isSaleable() && $this-&gt;hasOptions())): ?&gt;
    &lt;form action=\"&lt;?php echo $this-&gt;getSubmitUrl($_product) ?&gt;\" method=\"post\" id=\"product_addtocart_form\"&lt;?php if($_product-&gt;getOptions()): ?&gt; enctype=\"multipart/form-data\"&lt;?php endif; ?&gt;&gt;
    &lt;div class=\"no-display\"&gt;
    &lt;input type=\"hidden\" name=\"product\" value=\"&lt;?php echo $_product-&gt;getId() ?&gt;\" /&gt;
    &lt;input type=\"hidden\" name=\"related_product\" id=\"related-products-field\" value=\"\" /&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;div class=\"product-name\"&gt;
    &lt;h2&gt;&lt;?php echo $_helper-&gt;productAttribute($_product, $_product-&gt;getName(), 'name') ?&gt;&lt;/h2&gt;
    &lt;/div&gt;

    &lt;div class=\"product-box\"&gt;
    &lt;?php echo $this-&gt;getReviewsSummaryHtml($_product, false, true)?&gt;
    &lt;?php echo $this-&gt;getChildHtml('product_type_data'); ?&gt;
    &lt;?php if ($_product-&gt;isAvailable()): ?&gt;
    &lt;p class=\"availability in-stock\"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('In stock') ?&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;?php else: ?&gt;
    &lt;p class=\"availability out-of-stock\"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Out of stock') ?&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;?php endif; ?&gt;
    &lt;div class=\"clear\"&gt;&lt;/div&gt;

    &lt;div class=\"clear\"&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildHtml('alert_urls') ?&gt;

    &lt;?php $optionsAvailability = false; if($_product-&gt;isSaleable() && $this-&gt;hasOptions()){$optionsAvailability = true;}?&gt;

    &lt;?php if ($_product-&gt;getShortDescription()):?&gt;
    &lt;div class=\"short-description\"&gt;
    &lt;div class=\"std\"&gt;&lt;h2&gt;&lt;?php echo $this-&gt;__('Details:') ?&gt;&lt;/h2&gt;&lt;?php echo $_helper-&gt;productAttribute($_product, nl2br($_product-&gt;getShortDescription()), 'short_description') ?&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;?php endif;?&gt;

    &lt;?php if ($_product-&gt;isSaleable() && $this-&gt;hasOptions()):?&gt;
    &lt;div class=\"bundled-price\"&gt;
    &lt;?php echo $this-&gt;getChildHtml('product_type_data'); ?&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildChildHtml('container1', '', true, true) ?&gt;
    &lt;?php echo $this-&gt;getChildChildHtml('container2', '', true, true) ?&gt;
    &lt;?php endif;?&gt;

    &lt;?php echo $this-&gt;getChildHtml('extrahint') ?&gt;


    &lt;?php if (!$this-&gt;hasOptions()):?&gt;
    &lt;div class=\"product-type-block\"&gt;
    &lt;div class=\"indent\"&gt;
    &lt;div class=\"add-to-box\"&gt;
    &lt;?php if($_product-&gt;isSaleable()): ?&gt;
    &lt;?php echo $this-&gt;getChildHtml('addtocart') ?&gt;
    &lt;?php endif; ?&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildHtml('extra_buttons') ?&gt;
    &lt;?php echo $this-&gt;getChildHtml('addto') ?&gt;
    &lt;?php if ($this-&gt;canEmailToFriend()): ?&gt;
    &lt;p class=\"email-friend\"&gt;&lt;span&gt;&lt;/span&gt;&lt;a href=\"&lt;?php echo $this-&gt;helper('catalog/product')-&gt;getEmailToFriendUrl($_product) ?&gt;\"&gt;&lt;?php echo $this-&gt;__('Email to a Friend') ?&gt;&lt;/a&gt;&lt;/p&gt;
    &lt;?php endif; ?&gt;
    &lt;div class=\"clear\"&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;?php echo $this-&gt;getChildHtml('other');?&gt;

    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('product_custom')):
    echo '&lt;div class=\"product-custom\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;

    &lt;?php echo $this-&gt;getTierPriceHtml() ?&gt;


    &lt;?php if((($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and $this-&gt;getChildChildHtml('container1', '', true, true)) or !($_product-&gt;isSaleable() && $this-&gt;hasOptions())): ?&gt;
    &lt;/form&gt;
    &lt;?php endif; ?&gt;

    &lt;?php if($this-&gt;getChildHtml('product_custom_2')): ?&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;?php if($this-&gt;getChildHtml('product_custom_2')): ?&gt;
    &lt;div class=\"&lt;?php echo $rightcol_inner2; ?&gt; omega\"&gt;
    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('product_custom_2')):
    echo '&lt;div class=\"product-custom-2\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;/div&gt;
    &lt;div class=\"clear\"&gt;&lt;/div&gt;
    &lt;div class=\"product-collateral\"&lt;?php if ($productpage_collateral == 'collateral_accordion') echo \" id='collateral-accordion'\"; ?&gt;&gt;
    &lt;?php if ($productpage_collateral == 'collateral_tabs'):
    echo $this-&gt;getChildHtml('info_tabs');
    else:
    foreach ($this-&gt;getChildGroup('detailed_info', 'getChildHtml') as $alias =&gt; $html):?&gt;
    &lt;?php if ($title = $this-&gt;getChildData($alias, 'title')):?&gt;
    &lt;h2&gt;&lt;?php echo $this-&gt;escapeHtml($title); ?&gt;&lt;/h2&gt;
    &lt;?php endif;?&gt;
    &lt;?php echo $html; ?&gt;
    &lt;?php endforeach;
    echo $this-&gt;getChildHtml('upsell_products');
    echo $this-&gt;getChildHtml('product_additional_data');
    endif; ?&gt;
    &lt;/div&gt;
    &lt;?php if ($_product-&gt;isSaleable() && $this-&gt;hasOptions()):?&gt;
    &lt;?php if (($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and !$this-&gt;getChildChildHtml('container1', '', true, true)): ?&gt;
    &lt;form action=\"&lt;?php echo $this-&gt;getSubmitUrl($_product) ?&gt;\" method=\"post\" id=\"product_addtocart_form\"&lt;?php if($_product-&gt;getOptions()): ?&gt; enctype=\"multipart/form-data\"&lt;?php endif; ?&gt;&gt;
    &lt;div class=\"no-display\"&gt;
    &lt;input type=\"hidden\" name=\"product\" value=\"&lt;?php echo $_product-&gt;getId() ?&gt;\" /&gt;
    &lt;input type=\"hidden\" name=\"related_product\" id=\"related-products-field\" value=\"\" /&gt;
    &lt;/div&gt;
    &lt;div class=\"bundled-price\"&gt;
    &lt;?php echo $this-&gt;getChildHtml('product_type_data'); ?&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;?php if (($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and !$this-&gt;getChildChildHtml('container1', '', true, true)): ?&gt;
    &lt;/form&gt;
    &lt;?php endif; ?&gt;
    &lt;?php endif; ?&gt;
    &lt;?php echo $this-&gt;getChildHtml('catalog.product.related');?&gt;

    &lt;script type=\"text/javascript\"&gt;
    //&lt;!&#91;CDATA&#91;
    var productAddToCartForm = new VarienForm('product_addtocart_form');
    productAddToCartForm.submit = function(button, url) {
    if (this.validator.validate()) {
    var form = this.form;
    var oldUrl = form.action;
    if (url) {
    form.action = url;
    }
    var e = null;
    // Start of our new ajax code
    if (!url) {
    url = jQuery('#product_addtocart_form').attr('action');
    }

    url = url.replace(\"checkout/cart\",\"ajax/index\"); // New Code
    var data = jQuery('#product_addtocart_form').serialize();
    data += '&isAjax=1';
    jQuery('#ajax_loader').show();
    try {
    jQuery.ajax( {
    url : url,
    dataType : 'json',
    type : 'post',
    data : data,
    success : function(data) {
    jQuery('#ajax_loader').hide();
    if(data.status == 'ERROR'){
    alert(data.message);
    }else{
    if(jQuery('.top-cart')){
    jQuery('.top-cart').replaceWith(data.sidebar);
    }
    /* if(jQuery('.header .links')){
    jQuery('.header .links').replaceWith(data.toplink);
    } */
    }
    jQuery('body').append('&lt;div class=\"add-to-cart-success\"&gt;' + data.message +' &lt;a href=\"&lt;?php echo $this-&gt;getUrl('checkout/cart'); ?&gt;\"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Go to Shopping Cart') ?&gt;&lt;/span&gt;&lt;/a&gt;&lt;a href=\"#\" class=\"btn-remove\"&gt;&nbsp;&lt;/a&gt;&lt;/div&gt;');
    setTimeout(function () {jQuery('.add-to-cart-success').slideUp(500)}, 5000);
    jQuery('.add-to-cart-success a.btn-remove').click(function(){
    jQuery(this).parent().slideUp(500);
    return false;
    })
    }
    });
    } catch (e) {
    }
    // End of our new ajax code
    this.form.action = oldUrl;
    if (e) {
    throw e;
    }
    }
    }.bind(productAddToCartForm);

    productAddToCartForm.submitLight = function(button, url){
    if(this.validator) {
    var nv = Validation.methods;
    delete Validation.methods&#91;'required-entry'&#93;;
    delete Validation.methods&#91;'validate-one-required'&#93;;
    delete Validation.methods&#91;'validate-one-required-by-name'&#93;;
    if (this.validator.validate()) {
    if (url) {
    this.form.action = url;
    }
    this.form.submit();
    }
    Object.extend(Validation.methods, nv);
    }
    }.bind(productAddToCartForm);
    //&#93;&#93;&gt;
    &lt;/script&gt;
    &lt;/div&gt;

    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('above_product_collateral')):
    echo '&lt;div class=\"above-product-collateral\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;

    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('product_banners')):
    echo '&lt;div class=\"product-banners\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;
    &lt;div class=\"review-title\"&gt;
    &lt;h2&gt;&lt;?php echo $this-&gt;__('Reviews'); ?&gt;&lt;/h2&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildHtml('product.info.review_list'); ?&gt;

    &lt;/div&gt;

    Não sei o que acontece Alessandra...
    Eu mudo como pede e não funciona, aí voce edita o código e funciona....
    Noob demais.

    Mais uma vez, OBRIGADO!
  • disse:

    De nada!
    :D


    Ola Alessandra Novamente.
    Cadastrei varios produtos configuraveis hoje breve colocarei os respectivos numero.

    Fui simular uma compra, com o unico que esta cadastrado e ele não é adicionado ao carrinho, mesmo eu escolhendo a numeração.

    Pode simular por favor?

    Obrigado!
  • Alessandra Moderador Global
    Luiz, se você desabiltar a extensão Color Swatches, o erro persiste?
  • disse:

    Luiz, se você desabiltar a extensão Color Swatches, o erro persiste?

    Ola Alessandra.
    Persiste sim.
    Fica como se eu não estivesse selecionado o tamanho, aí aparece a mensagem "Por favor especifique as opções do produto".
  • Alessandra Moderador Global
    Luiz, desculpa, mas o problema é em relação a alteração que eu pedi que você fizesse no view.phtml. Para resolver isso, altere novamente o view.phtml, deixando-o assim:

    &lt;?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 license@magentocommerce.com 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
    * @package base_default
    * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.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
    */
    ?&gt;
    &lt;?php $_helper = $this-&gt;helper('catalog/output'); ?&gt;
    &lt;?php
    $_product = $this-&gt;getProduct();
    $bundledProduct = false;
    if($_product-&gt;getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_BUNDLE){
    $bundledProduct = true;
    }
    ?&gt;
    &lt;?php
    $productpage_collateral = MAGE::helper('ThemeOptions')-&gt;getThemeOptions('productpage_collateral');
    $productpage_pagelayout = MAGE::helper('ThemeOptions')-&gt;getThemeOptions('productpage_pagelayout');

    switch ($productpage_pagelayout) {
    case 'productpage_extralarge':
    $leftcol = 'grid_12';
    $rightcol = 'grid_12';
    $rightcol_inner = 'grid_9';
    $rightcol_inner2 = 'grid_3';
    break;
    case 'productpage_large':
    $leftcol = 'grid_3';
    $rightcol = 'grid_9';
    $rightcol_inner = 'grid_6';
    $rightcol_inner2 = 'grid_3';
    break;
    case 'productpage_medium':
    $leftcol = 'grid_4';
    $rightcol = 'grid_8';
    $rightcol_inner = 'grid_5';
    $rightcol_inner2 = 'grid_3';
    break;
    case 'productpage_small':
    $leftcol = 'grid_5';
    $rightcol = 'grid_7';
    $rightcol_inner = 'grid_4';
    $rightcol_inner2 = 'grid_3';
    break;
    default:
    $leftcol = 'grid_4';
    $rightcol = 'grid_8';
    $rightcol_inner = 'grid_5';
    $rightcol_inner2 = 'grid_3';
    break;
    }
    ?&gt;
    &lt;script type=\"text/javascript\"&gt;
    var optionsPrice = new Product.OptionsPrice(&lt;?php echo $this-&gt;getJsonConfig() ?&gt;);
    &lt;/script&gt;
    &lt;div id=\"messages_product_view\"&gt;&lt;?php echo $this-&gt;getMessagesBlock()-&gt;getGroupedHtml() ?&gt;&lt;/div&gt;
    &lt;div class=\"product-view&lt;?php if($bundledProduct == true){echo ' bundle-product';} if($_product-&gt;getData('special_price')!=''){echo ' special-price-inc';} ?&gt;\"&gt;
    &lt;div class=\"product-essential\"&gt;
    &lt;?php echo MAGE::helper('ThemeOptions')-&gt;prevnext($_product) ?&gt;

    &lt;div class=\"&lt;?php echo $leftcol .' '. $productpage_pagelayout; ?&gt; alpha product-img-box\"&gt;
    &lt;?php echo $this-&gt;getChildHtml('media') ?&gt;
    &lt;/div&gt;

    &lt;div class=\"&lt;?php echo $rightcol; ?&gt; &lt;?php if($productpage_pagelayout == 'productpage_extralarge'){echo 'alpha ';} ?&gt;omega product-shop\"&gt;

    &lt;?php if($this-&gt;getChildHtml('product_custom_2')): ?&gt;
    &lt;div class=\"&lt;?php echo $rightcol_inner; ?&gt; alpha\"&gt;
    &lt;?php endif; ?&gt;

    &lt;?php if((($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and $this-&gt;getChildChildHtml('container1', '', true, true)) or !($_product-&gt;isSaleable() && $this-&gt;hasOptions())): ?&gt;
    &lt;form action=\"&lt;?php echo $this-&gt;getSubmitUrl($_product) ?&gt;\" method=\"post\" id=\"product_addtocart_form\"&lt;?php if($_product-&gt;getOptions()): ?&gt; enctype=\"multipart/form-data\"&lt;?php endif; ?&gt;&gt;
    &lt;div class=\"no-display\"&gt;
    &lt;input type=\"hidden\" name=\"product\" value=\"&lt;?php echo $_product-&gt;getId() ?&gt;\" /&gt;
    &lt;input type=\"hidden\" name=\"related_product\" id=\"related-products-field\" value=\"\" /&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;div class=\"product-name\"&gt;
    &lt;h2&gt;&lt;?php echo $_helper-&gt;productAttribute($_product, $_product-&gt;getName(), 'name') ?&gt;&lt;/h2&gt;
    &lt;/div&gt;

    &lt;div class=\"product-box\"&gt;
    &lt;?php echo $this-&gt;getReviewsSummaryHtml($_product, false, true)?&gt;
    &lt;?php echo $this-&gt;getChildHtml('product_type_data'); ?&gt;
    &lt;?php if ($_product-&gt;isAvailable()): ?&gt;
    &lt;p class=\"availability in-stock\"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('In stock') ?&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;?php else: ?&gt;
    &lt;p class=\"availability out-of-stock\"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Out of stock') ?&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;?php endif; ?&gt;
    &lt;div class=\"clear\"&gt;&lt;/div&gt;

    &lt;div class=\"clear\"&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildHtml('alert_urls') ?&gt;

    &lt;?php $optionsAvailability = false; if($_product-&gt;isSaleable() && $this-&gt;hasOptions()){$optionsAvailability = true;}?&gt;

    &lt;?php if ($_product-&gt;getShortDescription()):?&gt;
    &lt;div class=\"short-description\"&gt;
    &lt;div class=\"std\"&gt;&lt;h2&gt;&lt;?php echo $this-&gt;__('Details:') ?&gt;&lt;/h2&gt;&lt;?php echo $_helper-&gt;productAttribute($_product, nl2br($_product-&gt;getShortDescription()), 'short_description') ?&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;?php endif;?&gt;

    &lt;?php if ($_product-&gt;isSaleable() && $this-&gt;hasOptions()):?&gt;
    &lt;div class=\"bundled-price\"&gt;
    &lt;?php echo $this-&gt;getChildHtml('product_type_data'); ?&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildChildHtml('container1', '', true, true) ?&gt;
    &lt;?php endif;?&gt;

    &lt;?php if ($_product-&gt;isSaleable() && $this-&gt;hasOptions()):?&gt;
    &lt;?php if (($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and !$this-&gt;getChildChildHtml('container1', '', true, true)): ?&gt;
    &lt;form action=\"&lt;?php echo $this-&gt;getSubmitUrl($_product) ?&gt;\" method=\"post\" id=\"product_addtocart_form\"&lt;?php if($_product-&gt;getOptions()): ?&gt; enctype=\"multipart/form-data\"&lt;?php endif; ?&gt;&gt;
    &lt;div class=\"no-display\"&gt;
    &lt;input type=\"hidden\" name=\"product\" value=\"&lt;?php echo $_product-&gt;getId() ?&gt;\" /&gt;
    &lt;input type=\"hidden\" name=\"related_product\" id=\"related-products-field\" value=\"\" /&gt;
    &lt;/div&gt;
    &lt;div class=\"bundled-price\"&gt;
    &lt;?php echo $this-&gt;getChildHtml('product_type_data'); ?&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;
    &lt;?php echo $this-&gt;getChildChildHtml('container2', '', true, true) ?&gt;
    &lt;?php if (($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and !$this-&gt;getChildChildHtml('container1', '', true, true)): ?&gt;
    &lt;/form&gt;
    &lt;?php endif; ?&gt;
    &lt;?php endif; ?&gt;

    &lt;?php echo $this-&gt;getChildHtml('extrahint') ?&gt;


    &lt;?php if (!$this-&gt;hasOptions()):?&gt;
    &lt;div class=\"product-type-block\"&gt;
    &lt;div class=\"indent\"&gt;
    &lt;div class=\"add-to-box\"&gt;
    &lt;?php if($_product-&gt;isSaleable()): ?&gt;
    &lt;?php echo $this-&gt;getChildHtml('addtocart') ?&gt;
    &lt;?php endif; ?&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildHtml('extra_buttons') ?&gt;
    &lt;?php echo $this-&gt;getChildHtml('addto') ?&gt;
    &lt;?php if ($this-&gt;canEmailToFriend()): ?&gt;
    &lt;p class=\"email-friend\"&gt;&lt;span&gt;&lt;/span&gt;&lt;a href=\"&lt;?php echo $this-&gt;helper('catalog/product')-&gt;getEmailToFriendUrl($_product) ?&gt;\"&gt;&lt;?php echo $this-&gt;__('Email to a Friend') ?&gt;&lt;/a&gt;&lt;/p&gt;
    &lt;?php endif; ?&gt;
    &lt;div class=\"clear\"&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;?php echo $this-&gt;getChildHtml('other');?&gt;

    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('product_custom')):
    echo '&lt;div class=\"product-custom\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;

    &lt;?php echo $this-&gt;getTierPriceHtml() ?&gt;


    &lt;?php if((($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and $this-&gt;getChildChildHtml('container1', '', true, true)) or !($_product-&gt;isSaleable() && $this-&gt;hasOptions())): ?&gt;
    &lt;/form&gt;
    &lt;?php endif; ?&gt;

    &lt;?php if($this-&gt;getChildHtml('product_custom_2')): ?&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;?php if($this-&gt;getChildHtml('product_custom_2')): ?&gt;
    &lt;div class=\"&lt;?php echo $rightcol_inner2; ?&gt; omega\"&gt;
    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('product_custom_2')):
    echo '&lt;div class=\"product-custom-2\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;/div&gt;
    &lt;div class=\"clear\"&gt;&lt;/div&gt;
    &lt;div class=\"product-collateral\"&lt;?php if ($productpage_collateral == 'collateral_accordion') echo \" id='collateral-accordion'\"; ?&gt;&gt;
    &lt;?php if ($productpage_collateral == 'collateral_tabs'):
    echo $this-&gt;getChildHtml('info_tabs');
    else:
    foreach ($this-&gt;getChildGroup('detailed_info', 'getChildHtml') as $alias =&gt; $html):?&gt;
    &lt;?php if ($title = $this-&gt;getChildData($alias, 'title')):?&gt;
    &lt;h2&gt;&lt;?php echo $this-&gt;escapeHtml($title); ?&gt;&lt;/h2&gt;
    &lt;?php endif;?&gt;
    &lt;?php echo $html; ?&gt;
    &lt;?php endforeach;
    echo $this-&gt;getChildHtml('upsell_products');
    echo $this-&gt;getChildHtml('product_additional_data');
    endif; ?&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildHtml('catalog.product.related');?&gt;

    &lt;script type=\"text/javascript\"&gt;
    //&lt;!&#91;CDATA&#91;
    var productAddToCartForm = new VarienForm('product_addtocart_form');
    productAddToCartForm.submit = function(button, url) {
    if (this.validator.validate()) {
    var form = this.form;
    var oldUrl = form.action;
    if (url) {
    form.action = url;
    }
    var e = null;
    // Start of our new ajax code
    if (!url) {
    url = jQuery('#product_addtocart_form').attr('action');
    }

    url = url.replace(\"checkout/cart\",\"ajax/index\"); // New Code
    var data = jQuery('#product_addtocart_form').serialize();
    data += '&isAjax=1';
    jQuery('#ajax_loader').show();
    try {
    jQuery.ajax( {
    url : url,
    dataType : 'json',
    type : 'post',
    data : data,
    success : function(data) {
    jQuery('#ajax_loader').hide();
    if(data.status == 'ERROR'){
    alert(data.message);
    }else{
    if(jQuery('.top-cart')){
    jQuery('.top-cart').replaceWith(data.sidebar);
    }
    /* if(jQuery('.header .links')){
    jQuery('.header .links').replaceWith(data.toplink);
    } */
    }
    jQuery('body').append('&lt;div class=\"add-to-cart-success\"&gt;' + data.message +' &lt;a href=\"&lt;?php echo $this-&gt;getUrl('checkout/cart'); ?&gt;\"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Go to Shopping Cart') ?&gt;&lt;/span&gt;&lt;/a&gt;&lt;a href=\"#\" class=\"btn-remove\"&gt;&nbsp;&lt;/a&gt;&lt;/div&gt;');
    setTimeout(function () {jQuery('.add-to-cart-success').slideUp(500)}, 5000);
    jQuery('.add-to-cart-success a.btn-remove').click(function(){
    jQuery(this).parent().slideUp(500);
    return false;
    })
    }
    });
    } catch (e) {
    }
    // End of our new ajax code
    this.form.action = oldUrl;
    if (e) {
    throw e;
    }
    }
    }.bind(productAddToCartForm);

    productAddToCartForm.submitLight = function(button, url){
    if(this.validator) {
    var nv = Validation.methods;
    delete Validation.methods&#91;'required-entry'&#93;;
    delete Validation.methods&#91;'validate-one-required'&#93;;
    delete Validation.methods&#91;'validate-one-required-by-name'&#93;;
    if (this.validator.validate()) {
    if (url) {
    this.form.action = url;
    }
    this.form.submit();
    }
    Object.extend(Validation.methods, nv);
    }
    }.bind(productAddToCartForm);
    //&#93;&#93;&gt;
    &lt;/script&gt;
    &lt;/div&gt;

    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('above_product_collateral')):
    echo '&lt;div class=\"above-product-collateral\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;

    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('product_banners')):
    echo '&lt;div class=\"product-banners\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;
    &lt;div class=\"review-title\"&gt;
    &lt;h2&gt;&lt;?php echo $this-&gt;__('Reviews'); ?&gt;&lt;/h2&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildHtml('product.info.review_list'); ?&gt;

    &lt;/div&gt;


    :)
  • disse:

    Luiz, desculpa, mas o problema é em relação a alteração que eu pedi que você fizesse no view.phtml. Para resolver isso, altere novamente o view.phtml, deixando-o assim:

    &lt;?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 license@magentocommerce.com 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
    * @package base_default
    * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.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
    */
    ?&gt;
    &lt;?php $_helper = $this-&gt;helper('catalog/output'); ?&gt;
    &lt;?php
    $_product = $this-&gt;getProduct();
    $bundledProduct = false;
    if($_product-&gt;getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_BUNDLE){
    $bundledProduct = true;
    }
    ?&gt;
    &lt;?php
    $productpage_collateral = MAGE::helper('ThemeOptions')-&gt;getThemeOptions('productpage_collateral');
    $productpage_pagelayout = MAGE::helper('ThemeOptions')-&gt;getThemeOptions('productpage_pagelayout');

    switch ($productpage_pagelayout) {
    case 'productpage_extralarge':
    $leftcol = 'grid_12';
    $rightcol = 'grid_12';
    $rightcol_inner = 'grid_9';
    $rightcol_inner2 = 'grid_3';
    break;
    case 'productpage_large':
    $leftcol = 'grid_3';
    $rightcol = 'grid_9';
    $rightcol_inner = 'grid_6';
    $rightcol_inner2 = 'grid_3';
    break;
    case 'productpage_medium':
    $leftcol = 'grid_4';
    $rightcol = 'grid_8';
    $rightcol_inner = 'grid_5';
    $rightcol_inner2 = 'grid_3';
    break;
    case 'productpage_small':
    $leftcol = 'grid_5';
    $rightcol = 'grid_7';
    $rightcol_inner = 'grid_4';
    $rightcol_inner2 = 'grid_3';
    break;
    default:
    $leftcol = 'grid_4';
    $rightcol = 'grid_8';
    $rightcol_inner = 'grid_5';
    $rightcol_inner2 = 'grid_3';
    break;
    }
    ?&gt;
    &lt;script type=\"text/javascript\"&gt;
    var optionsPrice = new Product.OptionsPrice(&lt;?php echo $this-&gt;getJsonConfig() ?&gt;);
    &lt;/script&gt;
    &lt;div id=\"messages_product_view\"&gt;&lt;?php echo $this-&gt;getMessagesBlock()-&gt;getGroupedHtml() ?&gt;&lt;/div&gt;
    &lt;div class=\"product-view&lt;?php if($bundledProduct == true){echo ' bundle-product';} if($_product-&gt;getData('special_price')!=''){echo ' special-price-inc';} ?&gt;\"&gt;
    &lt;div class=\"product-essential\"&gt;
    &lt;?php echo MAGE::helper('ThemeOptions')-&gt;prevnext($_product) ?&gt;

    &lt;div class=\"&lt;?php echo $leftcol .' '. $productpage_pagelayout; ?&gt; alpha product-img-box\"&gt;
    &lt;?php echo $this-&gt;getChildHtml('media') ?&gt;
    &lt;/div&gt;

    &lt;div class=\"&lt;?php echo $rightcol; ?&gt; &lt;?php if($productpage_pagelayout == 'productpage_extralarge'){echo 'alpha ';} ?&gt;omega product-shop\"&gt;

    &lt;?php if($this-&gt;getChildHtml('product_custom_2')): ?&gt;
    &lt;div class=\"&lt;?php echo $rightcol_inner; ?&gt; alpha\"&gt;
    &lt;?php endif; ?&gt;

    &lt;?php if((($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and $this-&gt;getChildChildHtml('container1', '', true, true)) or !($_product-&gt;isSaleable() && $this-&gt;hasOptions())): ?&gt;
    &lt;form action=\"&lt;?php echo $this-&gt;getSubmitUrl($_product) ?&gt;\" method=\"post\" id=\"product_addtocart_form\"&lt;?php if($_product-&gt;getOptions()): ?&gt; enctype=\"multipart/form-data\"&lt;?php endif; ?&gt;&gt;
    &lt;div class=\"no-display\"&gt;
    &lt;input type=\"hidden\" name=\"product\" value=\"&lt;?php echo $_product-&gt;getId() ?&gt;\" /&gt;
    &lt;input type=\"hidden\" name=\"related_product\" id=\"related-products-field\" value=\"\" /&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;div class=\"product-name\"&gt;
    &lt;h2&gt;&lt;?php echo $_helper-&gt;productAttribute($_product, $_product-&gt;getName(), 'name') ?&gt;&lt;/h2&gt;
    &lt;/div&gt;

    &lt;div class=\"product-box\"&gt;
    &lt;?php echo $this-&gt;getReviewsSummaryHtml($_product, false, true)?&gt;
    &lt;?php echo $this-&gt;getChildHtml('product_type_data'); ?&gt;
    &lt;?php if ($_product-&gt;isAvailable()): ?&gt;
    &lt;p class=\"availability in-stock\"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('In stock') ?&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;?php else: ?&gt;
    &lt;p class=\"availability out-of-stock\"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Out of stock') ?&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;?php endif; ?&gt;
    &lt;div class=\"clear\"&gt;&lt;/div&gt;

    &lt;div class=\"clear\"&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildHtml('alert_urls') ?&gt;

    &lt;?php $optionsAvailability = false; if($_product-&gt;isSaleable() && $this-&gt;hasOptions()){$optionsAvailability = true;}?&gt;

    &lt;?php if ($_product-&gt;getShortDescription()):?&gt;
    &lt;div class=\"short-description\"&gt;
    &lt;div class=\"std\"&gt;&lt;h2&gt;&lt;?php echo $this-&gt;__('Details:') ?&gt;&lt;/h2&gt;&lt;?php echo $_helper-&gt;productAttribute($_product, nl2br($_product-&gt;getShortDescription()), 'short_description') ?&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;?php endif;?&gt;

    &lt;?php if ($_product-&gt;isSaleable() && $this-&gt;hasOptions()):?&gt;
    &lt;div class=\"bundled-price\"&gt;
    &lt;?php echo $this-&gt;getChildHtml('product_type_data'); ?&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildChildHtml('container1', '', true, true) ?&gt;
    &lt;?php endif;?&gt;

    &lt;?php if ($_product-&gt;isSaleable() && $this-&gt;hasOptions()):?&gt;
    &lt;?php if (($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and !$this-&gt;getChildChildHtml('container1', '', true, true)): ?&gt;
    &lt;form action=\"&lt;?php echo $this-&gt;getSubmitUrl($_product) ?&gt;\" method=\"post\" id=\"product_addtocart_form\"&lt;?php if($_product-&gt;getOptions()): ?&gt; enctype=\"multipart/form-data\"&lt;?php endif; ?&gt;&gt;
    &lt;div class=\"no-display\"&gt;
    &lt;input type=\"hidden\" name=\"product\" value=\"&lt;?php echo $_product-&gt;getId() ?&gt;\" /&gt;
    &lt;input type=\"hidden\" name=\"related_product\" id=\"related-products-field\" value=\"\" /&gt;
    &lt;/div&gt;
    &lt;div class=\"bundled-price\"&gt;
    &lt;?php echo $this-&gt;getChildHtml('product_type_data'); ?&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;
    &lt;?php echo $this-&gt;getChildChildHtml('container2', '', true, true) ?&gt;
    &lt;?php if (($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and !$this-&gt;getChildChildHtml('container1', '', true, true)): ?&gt;
    &lt;/form&gt;
    &lt;?php endif; ?&gt;
    &lt;?php endif; ?&gt;

    &lt;?php echo $this-&gt;getChildHtml('extrahint') ?&gt;


    &lt;?php if (!$this-&gt;hasOptions()):?&gt;
    &lt;div class=\"product-type-block\"&gt;
    &lt;div class=\"indent\"&gt;
    &lt;div class=\"add-to-box\"&gt;
    &lt;?php if($_product-&gt;isSaleable()): ?&gt;
    &lt;?php echo $this-&gt;getChildHtml('addtocart') ?&gt;
    &lt;?php endif; ?&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildHtml('extra_buttons') ?&gt;
    &lt;?php echo $this-&gt;getChildHtml('addto') ?&gt;
    &lt;?php if ($this-&gt;canEmailToFriend()): ?&gt;
    &lt;p class=\"email-friend\"&gt;&lt;span&gt;&lt;/span&gt;&lt;a href=\"&lt;?php echo $this-&gt;helper('catalog/product')-&gt;getEmailToFriendUrl($_product) ?&gt;\"&gt;&lt;?php echo $this-&gt;__('Email to a Friend') ?&gt;&lt;/a&gt;&lt;/p&gt;
    &lt;?php endif; ?&gt;
    &lt;div class=\"clear\"&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;?php echo $this-&gt;getChildHtml('other');?&gt;

    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('product_custom')):
    echo '&lt;div class=\"product-custom\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;

    &lt;?php echo $this-&gt;getTierPriceHtml() ?&gt;


    &lt;?php if((($_product-&gt;isSaleable() && $this-&gt;hasOptions()) and $this-&gt;getChildChildHtml('container1', '', true, true)) or !($_product-&gt;isSaleable() && $this-&gt;hasOptions())): ?&gt;
    &lt;/form&gt;
    &lt;?php endif; ?&gt;

    &lt;?php if($this-&gt;getChildHtml('product_custom_2')): ?&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;?php if($this-&gt;getChildHtml('product_custom_2')): ?&gt;
    &lt;div class=\"&lt;?php echo $rightcol_inner2; ?&gt; omega\"&gt;
    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('product_custom_2')):
    echo '&lt;div class=\"product-custom-2\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;
    &lt;/div&gt;
    &lt;?php endif; ?&gt;

    &lt;/div&gt;
    &lt;div class=\"clear\"&gt;&lt;/div&gt;
    &lt;div class=\"product-collateral\"&lt;?php if ($productpage_collateral == 'collateral_accordion') echo \" id='collateral-accordion'\"; ?&gt;&gt;
    &lt;?php if ($productpage_collateral == 'collateral_tabs'):
    echo $this-&gt;getChildHtml('info_tabs');
    else:
    foreach ($this-&gt;getChildGroup('detailed_info', 'getChildHtml') as $alias =&gt; $html):?&gt;
    &lt;?php if ($title = $this-&gt;getChildData($alias, 'title')):?&gt;
    &lt;h2&gt;&lt;?php echo $this-&gt;escapeHtml($title); ?&gt;&lt;/h2&gt;
    &lt;?php endif;?&gt;
    &lt;?php echo $html; ?&gt;
    &lt;?php endforeach;
    echo $this-&gt;getChildHtml('upsell_products');
    echo $this-&gt;getChildHtml('product_additional_data');
    endif; ?&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildHtml('catalog.product.related');?&gt;

    &lt;script type=\"text/javascript\"&gt;
    //&lt;!&#91;CDATA&#91;
    var productAddToCartForm = new VarienForm('product_addtocart_form');
    productAddToCartForm.submit = function(button, url) {
    if (this.validator.validate()) {
    var form = this.form;
    var oldUrl = form.action;
    if (url) {
    form.action = url;
    }
    var e = null;
    // Start of our new ajax code
    if (!url) {
    url = jQuery('#product_addtocart_form').attr('action');
    }

    url = url.replace(\"checkout/cart\",\"ajax/index\"); // New Code
    var data = jQuery('#product_addtocart_form').serialize();
    data += '&isAjax=1';
    jQuery('#ajax_loader').show();
    try {
    jQuery.ajax( {
    url : url,
    dataType : 'json',
    type : 'post',
    data : data,
    success : function(data) {
    jQuery('#ajax_loader').hide();
    if(data.status == 'ERROR'){
    alert(data.message);
    }else{
    if(jQuery('.top-cart')){
    jQuery('.top-cart').replaceWith(data.sidebar);
    }
    /* if(jQuery('.header .links')){
    jQuery('.header .links').replaceWith(data.toplink);
    } */
    }
    jQuery('body').append('&lt;div class=\"add-to-cart-success\"&gt;' + data.message +' &lt;a href=\"&lt;?php echo $this-&gt;getUrl('checkout/cart'); ?&gt;\"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Go to Shopping Cart') ?&gt;&lt;/span&gt;&lt;/a&gt;&lt;a href=\"#\" class=\"btn-remove\"&gt;&nbsp;&lt;/a&gt;&lt;/div&gt;');
    setTimeout(function () {jQuery('.add-to-cart-success').slideUp(500)}, 5000);
    jQuery('.add-to-cart-success a.btn-remove').click(function(){
    jQuery(this).parent().slideUp(500);
    return false;
    })
    }
    });
    } catch (e) {
    }
    // End of our new ajax code
    this.form.action = oldUrl;
    if (e) {
    throw e;
    }
    }
    }.bind(productAddToCartForm);

    productAddToCartForm.submitLight = function(button, url){
    if(this.validator) {
    var nv = Validation.methods;
    delete Validation.methods&#91;'required-entry'&#93;;
    delete Validation.methods&#91;'validate-one-required'&#93;;
    delete Validation.methods&#91;'validate-one-required-by-name'&#93;;
    if (this.validator.validate()) {
    if (url) {
    this.form.action = url;
    }
    this.form.submit();
    }
    Object.extend(Validation.methods, nv);
    }
    }.bind(productAddToCartForm);
    //&#93;&#93;&gt;
    &lt;/script&gt;
    &lt;/div&gt;

    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('above_product_collateral')):
    echo '&lt;div class=\"above-product-collateral\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;

    &lt;?php // Predefined Static Block
    if ($static_html = $this-&gt;getChildHtml('product_banners')):
    echo '&lt;div class=\"product-banners\"&gt;'.$static_html.'&lt;/div&gt;';
    endif; ?&gt;
    &lt;div class=\"review-title\"&gt;
    &lt;h2&gt;&lt;?php echo $this-&gt;__('Reviews'); ?&gt;&lt;/h2&gt;
    &lt;/div&gt;
    &lt;?php echo $this-&gt;getChildHtml('product.info.review_list'); ?&gt;

    &lt;/div&gt;


    :)
    Funcionou perfeitamente agora Alessandra!

    Obrigado pela atenção!
Entre ou Registre-se para fazer um comentário.