i had upgrading the last version of opencart. it's success. but it's appear in admin panel asking to delete folder. i don't remember what folder to delete . and when i click at one of my part it's appear list of system upgraded.
one again the problem is. there is some information page that i hide using sort "-1" but in this new version it doesn't work at all.
one again the problem is. there is some information page that i hide using sort "-1" but in this new version it doesn't work at all.
What folder that i have made? i don't know which folder to be delete. i upgrade it from cpanel. there is information about upgrade n i click it. n success. so i don't know which folder to be delete. please let me know what folder in what directory.ozvape wrote:delete the install folder, the one you uploaded when doing the install.
n how about hiding information page. in the last version i can hide some information pages by using sort "-1". this the newest version it can't been hidden
Delete the Install folder. Try browsing using FTP and you will know.
To hide the information, you can try editing footer.tpl in catalog/view/theme/default/template/common/footer.tpl
To hide the information, you can try editing footer.tpl in catalog/view/theme/default/template/common/footer.tpl
For sort order -1
This was a 1.4.9.x feature that didn't come with 1.5.x
Instead it is a vQmod:
http://forum.opencart.com/viewtopic.php?f=131&t=55319
This was a 1.4.9.x feature that didn't come with 1.5.x
Instead it is a vQmod:
http://forum.opencart.com/viewtopic.php?f=131&t=55319
I just coded a fix to replicate the old -1 style.
In catalog/controller/footer.php
Change:
To:
In catalog/view/theme/[yourtheme]/template/common/footer.tpl
Change:
To:
In catalog/controller/footer.php
Change:
Code: Select all
foreach ($this->model_catalog_information->getInformations() as $result) {
$this->data['informations'][] = array(
'title' => $result['title'],
'href' => $this->url->link('information/information', 'information_id=' . $result['information_id'])
);
}
Code: Select all
foreach ($this->model_catalog_information->getInformations() as $result) {
$this->data['informations'][] = array(
'title' => $result['title'],
'href' => $this->url->link('information/information', 'information_id=' . $result['information_id']),
'sort' => $result['sort_order']
);
}
Change:
Code: Select all
<div class="column">
<h3><?php echo $text_information; ?></h3>
<ul>
<?php foreach ($informations as $information) { ?>
<li><a href="<?php echo $information['href']; ?>"><?php echo $information['title']; ?></a></li>
<?php } ?>
</ul>
</div>
}
Code: Select all
<div class="column">
<h3><?php echo $text_information; ?></h3>
<ul>
<?php foreach ($informations as $information) { ?>
<? if ($information['sort']!= '-1'){ ?>
<li><a href="<?php echo $information['href']; ?>"><?php echo $information['title']; ?></a></li>
<?php } } ?>
</ul>
</div>
The above way will work, but a bit overkill.
Since the sort order is already available in the controller, you can simply make this change in the controller and it won't build those items in the array that is passed to the view:
1. EDIT: catalog/controller/common/footer.php
2. FIND:
3. REPLACE WITH:
That's all you need to do. No tpl changes required.
Since the sort order is already available in the controller, you can simply make this change in the controller and it won't build those items in the array that is passed to the view:
1. EDIT: catalog/controller/common/footer.php
2. FIND:
Code: Select all
foreach ($this->model_catalog_information->getInformations() as $result) {
$this->data['informations'][] = array(
'title' => $result['title'],
'href' => $this->url->link('information/information', 'information_id=' . $result['information_id'])
);
}
Code: Select all
foreach ($this->model_catalog_information->getInformations() as $result) {
if ($result['sort_order'] == '-1') { continue; }
$this->data['informations'][] = array(
'title' => $result['title'],
'href' => $this->url->link('information/information', 'information_id=' . $result['information_id'])
);
}
after i upgrade to the new version it's appear the message above.. what's wrong with my upgrade..Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
i have deleted the install folder..
Last edited by Suwanto on Fri Mar 09, 2012 6:09 pm, edited 1 time in total.
I am also getting the above error, I have only installed the upgrade on my wamp server so its no big deal but would like a solution.Suwanto wrote:after i upgrade to the new version it's appear the message above.. what's wrong with my upgrade..Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 44
Notice: Undefined index: count in /public_html/catalog/controller/module/category.php on line 66
i have deleted the install folder..
Regards
Eddie
Our online shop using OpenCart http://www.enscomputers.co.uk
Edit category module and save it again. Do so from afmin panel.
folder not needed once installation is completed
i have edited the catagory. using the 5.1.3 version.. it's look ok.. in the 5.2.1 catagory just added some script..MarketInSG wrote:Edit category module and save it again. Do so from afmin panel.
<?php
class ControllerModuleCategory extends Controller {
protected function index($setting) {
$this->language->load('module/category');
i wonder what that's bold script for??if ($setting['count']) {
$product_total = $this->model_
Who is online
Users browsing this forum: No registered users and 74 guests