2017-06-16 61 views
0

我嘗試使用2Checkout Payment Extension Magento我得到了錯誤處理Payment這樣的控制檯打印。任何人都知道問題。2Checkout支付擴展Magento錯誤「'href'的undefined」prototype.js:612:64)

prototype.js:828 Uncaught TypeError: Cannot set property 'href' of undefined 
at eval (eval at <anonymous> (https://example.com/js/prototype/prototype.js:612:64), <anonymous>:4:55) 
at https://example.com/js/prototype/prototype.js:612:64 
at https://example.com/js/prototype/prototype.js:865:29 
at https://example.com/js/prototype/prototype.js:825:18 
at Array.forEach (native) 
at Array.each (https://example.com/js/prototype/prototype.js:824:12) 
at Array.collect (https://example.com/js/prototype/prototype.js:864:10) 
at String.evalScripts (https://example.com/js/prototype/prototype.js:612:34) 
at Function.<anonymous> (https://example.com/js/prototype/prototype.js:391:23) 
at https://example.com/js/prototype/prototype.js:416:23 
(anonymous) @ VM297:4 
(anonymous) @ prototype.js:612 
(anonymous) @ prototype.js:865 
(anonymous) @ prototype.js:825 
each @ prototype.js:824 
collect @ prototype.js:864 
evalScripts @ prototype.js:612 
(anonymous) @ prototype.js:391 
(anonymous) @ prototype.js:416 

回答

0

最後,我修正了那個錯誤。我改變了對observer.php 它位於/應用程序/代碼/本地/克雷格/ TCO /型號/ observer.php

if (Mage::getStoreConfig('payment/tco/inline')

if ($$("a.top-link-cart")) { //old observer.php line 70 

我改變了這

if ($$("a.top-link-cart").length) { 
代碼

也samething在其他

if ($$("a.top-link-cart")) { 

if ($$("a.top-link-cart").length) { 

你可以找到更多關於此錯誤的2Checkout-Magento-Error