2013-05-16 34 views
1

Magento產品詳細信息頁面添加到心願單並添加到購物車按鈕,它在ie 8中什麼都不做,但可以在其他瀏覽器上使用。在一個按鈕的代碼的部分是Magento tech添加到購物車不起作用,即8?

<button type="button" title="<?php echo $buttonTitle ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button> 

它應該與所連接的腳本功能是:

<script type="text/javascript"> 
    <?php if($this->getMessagesBlock()->getGroupedHtml()): ?> 
     document.observe("dom:loaded", function(){ 
      var submitButton = $$('.btn-cart')[0]; 
      productAddToCartForm.submit(submitButton); 
     }); 
    <?php endif; ?> 
</script> 

任何幫助,將不勝感激。

當我運行調試,它給了我這個錯誤: SCRIPT5007:無法設置的未定義或空引用屬性「HREF」

據指出,各地

<?php if (Mage::getStoreConfig('Moii_Pinterest_Config/configuration/Moii_Pinterest_Price') == 1) { ?> 
      var pinit_desc = desc + ' - ' + window['pinit_price_'+params.colour]; 
     <?php } ?> 
     var pinit_href = $$('.product-share')[0].firstElementChild.href; 
?>< 

回答

相關問題