Wednesday, September 19, 2012

Fatal error: Cannot access private property Document in Opencart

add this code
//$this->document->title = $this->language->get('heading_title'); // for 1.4.9
$this->document->setTitle($this->language->get('heading_title')); // for 1.5.0

Thursday, August 30, 2012

How to remove Powered By OpenCart


Goto : catalog>view>theme>default>template>common

and edit footer.tpl

comment the line

<div id="powered"><?php echo $powered; ?></div>

with this

<!-- <div id="powered"><?php echo $powered; ?></div> //-->

text_shopping_cart error

text_shopping_cart error

Sample for Indonesian Language

modifiy the header.php in /catalog/language/indonesia/common


<?php
// Text
$_['text_home']     = 'Beranda';
$_['text_wishlist'] = 'Daftar Keinginan (%s)';
// remove this line $_['text_cart']     = 'Keranjang Belanja'; // error displayed as 'text_shopping_cart' 
$_['text_shopping_cart']  = ' Keranjang Belanja'; // this is the right one
$_['text_items']    = '%s item - %s';
?>

Save it and your language is fixed....