2014-09-04 44 views
0
<?php $_helper = $this->helper('catalog/output'); ?> 
    <?php //$_product = $this->getProduct(); 
    $product_id = $_GET['proid']; 
    $obj = Mage::getModel('catalog/product'); 
    $_product = $obj->load($product_id); // Enter your Product Id in $product_id 
    print_r($_product); 
    ?> 

          <?php echo $this->getChildHtml('product_type_data'); ?> 
         </div> 
         <?php echo $this->getChildChildHtml('container1', '', true, true) ?> 
        <?php endif;?> 

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


          <?php if($_product->isSaleable()): ?> 
           <?php echo $this->getChildHtml('addtocart') ?> 
          <?php endif; ?> 
         </div> 
         <?php echo $this->getChildHtml('extra_buttons') ?> 
        </div> 
        <?php endif; ?> 

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

    <?php echo $this->getChildHtml('product.info.review_list'); ?> 
</div>` 

()在CMS沒有呈現page.please做出解決方案,我知道這與XML發生,但我不得到如何做。Magento的view.phtml調用具體的產品ID,但直到最底層的方法CMS網頁在上面的代碼,直到最底層不呈現

回答

0

Rahul Chittora,can do this on cms page because this child block is only work on . product view page and it declared in catalog.xml and it always work on catalog_product_view layout

很多的工作需要做的if want do this type works using call of child from catalog_product page layout to cms page layout.

我建議做some custom code or used quick view extension,which may do this