How to remove Addresses button from cpanel

  • Posts: 32
  • Thank you received: 1
4 years 2 weeks ago #325373

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.19
-- PHP version -- : 7.4

I'd like to remove the Addresses button from the cpanel, but all the googling I've done only shows me out of date solutions. Can you point me to the right change to make please?

I think it is something to do with:

foreach($this->buttons as $name => $btn) {

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 2 weeks ago #325374

Hi,

You can edit the file "cpanel" via the menu Display>Views.
There, you can add such line at the beginning of the file:

<?php unset($this->buttons['address']); ?>

Last edit: 4 years 2 weeks ago by nicolas.
The following user(s) said Thank You: jeffmcbiscuit

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 1
4 years 2 weeks ago #325402

Thanks, the first bit of code sorted it.

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum