php - Magento fatal error with IWD Onepage Checkout -


i using magento 1 page checkout quick checkout process.

it throwing fatal error upon adding product cart. in j2t ajax , in header cart area showing fatal error after reloading page error gone , product added shopping cart.

in php error log shows following error

php fatal error:  call member function addlink() on non-object in /home/public_html/app/code/community/iwd/opc/block/links.php on line 17 

on line 17

$parentblock->addlink($text, 'onepage', $text, true, array('_secure'=>true), 60, null, 'class="top-link-checkout"'); 

i've tried disable ajax cart , compilation disabled still throwing error.

any idea why showing error?

thank in advance :)

i solved issue myself. anyway.

if have issue. here solution it

go to: /magento folder/app/code/community/iwd/opc/block/links.php

find:

if (mage::helper('opc')->isenable()){         $parentblock->addlink($text, 'onepage', $text, true,     array('_secure'=>true), 60, null, 'class="top-link-checkout"');     } else{         $parentblock->addlink($text, 'checkout', $text, true,     array('_secure'=>true), 60, null, 'class="top-link-checkout"');     }      return $this; } 

replace with:

if ($parentblock = $this->getparentblock()) {          $text = $this->__('checkout');          $parentblock->addlink($text, 'checkout', $text, true, array(), 60, null, 'class="top-link-checkout"');      }      return $this;  } 

clear cache , cookies , you're done :)


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -