Post by DaveRiba » Fri Aug 25, 2023 1:17 am

Reposting in the correct section:
I know this has been addressed before, but I can not get it to work on 4.0.2.2
The navigation panel is controlled by column_left.
I get that. Changing admin\controller\common\column_left.php does not work.
Altering the order does not reorder the display
I don't see anything in events even remotely looking like navigation
What am I missing? Where is the actual data driving the menu order coming from?
If it is coming from Events, does anyone have the steps needed to change the order of entries?
Thanks for the help

Active Member

Posts

Joined
Wed Oct 07, 2020 11:41 pm

Post by halfhope » Fri Aug 25, 2023 4:05 am

Hi!

You can look this extension.

My FREE extensions in marketplace. [ security | flexibility | speedup ]


User avatar
Active Member

Posts

Joined
Tue Dec 10, 2013 9:44 pm
Location - San Diego

Post by ADD Creative » Fri Aug 25, 2023 4:36 am

Editing column_left.php worked for me. What are you trying to change and how were you trying to do it?

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by DaveRiba » Fri Aug 25, 2023 9:38 pm

Wanted to reorder the list so the most used links are near the top instead of the bottom.
Simply, wanted to change links 1, 2, 3, 4 to 1, 4, 2, 3
Copied the section for a link (section 4 eg) and moved it up in column_left.php to be after another link (section 1 eg).
Saved. Cleared cache. Nothing changed.
Assumed position in the code should be sufficient.
Is there another step?

Active Member

Posts

Joined
Wed Oct 07, 2020 11:41 pm

Post by ADD Creative » Sat Aug 26, 2023 2:51 am

The important part is to move the sections that start.

Code: Select all

$data['menus'][] = [
The order these are set define the order you see.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by DaveRiba » Sat Aug 26, 2023 3:09 am

I thought I did that.
Copied the entire block between the comment and the next comment ... such as
// Sales
$sale = [];
all code until the next group

That is what you meant, isn't it?

Active Member

Posts

Joined
Wed Oct 07, 2020 11:41 pm

Post by ADD Creative » Tue Aug 29, 2023 2:18 am

It wouldn't be until the next comment, as the next comment is // Voucher which is part of the sales.

If you look at the sales block, it not added to the $data['menus'][] until after the voucher block.

The sales block would be the following.
https://github.com/opencart/opencart/bl ... #L248-L310
And the next block would be.
https://github.com/opencart/opencart/bl ... #L312-L363

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 1 guest