Remove "Carts" from User control panel

  • Posts: 220
  • Thank you received: 12
7 years 6 months ago #268744

Hello,

How do I remove the "Carts" button and page from the user control panel? Please see attached.

Kind Regards,
Josh.

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
7 years 6 months ago #268750

Hello Josh,

The solution will be to directly customize the code of the file "Cpanel" of the "User" view of your front-end template via "Hikashop->Display->Views".
You'll just have to add these lines :

	    if($btn['image'] == 'cart')
		continue;
After :
	foreach($this->buttons as $btn) {

The following user(s) said Thank You: joshualdouglas

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

  • Posts: 220
  • Thank you received: 12
7 years 6 months ago #269025

This worked great.

Thank you!

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

  • Posts: 143
  • Thank you received: 9
2 years 7 months ago #340839

Hi,
could you update the process here for Hikashop 4.5 ? Cause the explanation seems to not working on this version.
Thanks !
Olivier

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 7 months ago #340846

Hi,

You can edit the file cpanel via the menu Display>Views and at the beginning of the file, you can add that code:

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

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

  • Posts: 143
  • Thank you received: 9
2 years 7 months ago #340890

nicolas wrote: Hi,

You can edit the file cpanel via the menu Display>Views and at the beginning of the file, you can add that code:

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


Thanks Nicolas, i hided it via CSS but it's better with your solution :)
Thanks !

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

Time to create page: 0.081 seconds
Powered by Kunena Forum