Remove "Carts" from User control panel

  • Posts: 220
  • Thank you received: 12
6 years 11 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
6 years 11 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
6 years 11 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
  • Hikashop Multisite
2 years 1 week 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: 81515
  • Thank you received: 13069
  • MODERATOR
2 years 1 week 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
  • Hikashop Multisite
2 years 1 week 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.087 seconds
Powered by Kunena Forum