I made a new calculating extension and i called the file "storetotal.php"...
The PHP code of this file is ....
Code: Select all
<?php
class CalculateStoretotal extends Calculate {
function __construct(&$locator) {
$this->cart =& $locator->get('cart');
$this->config =& $locator->get('config');
$this->currency =& $locator->get('currency');
$this->language =& $locator->get('language');
$this->language->load('extension/calculate/storetotal.php');
}
function calculate() {
$storetotal_data = array();
if ($this->config->get('storetotal_status')) {
$storetotal_data[] = array(
'title' => $this->language->get('text_storetotal_title'),
'text' => $this->currency->format($this->cart->getStoreTotal()),
'value' => $this->cart->getStoreTotal()
);
}
return $storetotal_data;
}
function getSortOrder() {
return $this->config->get('storetotal_sort_order');
}
}
?>
in the list it's show "storetotal" but when i click on "+" icon to install it, and a message appears:
"Permission Denied! You do not have permission to access this page, please refer to your system administrator".
Now, when i click on ADMIN -> CONFIGURATION -> USERS -> USER GROUP
in the Access list and in the Modify list it isn't show "calculate_storetotal"...
How can i do to resolve my problem?
P.S. Storetotal Extension Data:
Code: storetotal
Directory: calculate
Filename: storetotal.php
Controller: calculate_storetotal