Skip to main content

Remove "Carts" from User control panel

More
9 years 4 months ago #268744 by joshualdouglas
Hello,

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

Kind Regards,
Josh.

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

More
9 years 4 months ago #268750 by Mohamed Thelji
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 :
Code:
if($btn['image'] == 'cart') continue;
After :
Code:
foreach($this->buttons as $btn) {
The following user(s) said Thank You: joshualdouglas

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

More
9 years 4 months ago #269025 by joshualdouglas
This worked great.

Thank you!

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

More
4 years 5 months ago #340839 by ButterflyPixel
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.

More
4 years 5 months ago #340846 by nicolas
Hi,

You can edit the file cpanel via the menu Display>Views and at the beginning of the file, you can add that code:
Code:
<?php unset($this->buttons['cart']); ?>

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

More
4 years 5 months ago #340890 by ButterflyPixel

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:

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.203 seconds
Powered by Kunena Forum