- Posts: 220
- Thank you received: 12
Remove "Carts" from User control panel
- joshualdouglas
-
Topic Author
- Offline
Less
More
9 years 4 months ago #268744
by joshualdouglas
Remove "Carts" from User control panel was created by joshualdouglas
Hello,
How do I remove the "Carts" button and page from the user control panel? Please see attached.
Kind Regards,
Josh.
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.
Less
More
- Posts: 12953
- Thank you received: 1778
9 years 4 months ago #268750
by Mohamed Thelji
Replied by Mohamed Thelji on topic Remove "Carts" from User control panel
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 :
After :
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;
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.
- joshualdouglas
-
Topic Author
- Offline
Less
More
- Posts: 220
- Thank you received: 12
9 years 4 months ago #269025
by joshualdouglas
Replied by joshualdouglas on topic Remove "Carts" from User control panel
This worked great.
Thank you!
Thank you!
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 143
- Thank you received: 9
4 years 5 months ago #340839
by ButterflyPixel
Replied by ButterflyPixel on topic Remove "Carts" from User control panel
Hi,
could you update the process here for Hikashop 4.5 ? Cause the explanation seems to not working on this version.
Thanks !
Olivier
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.
4 years 5 months ago #340846
by nicolas
Replied by nicolas on topic Remove "Carts" from User control panel
Hi,
You can edit the file cpanel via the menu Display>Views and at the beginning of the file, you can add that code:
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.
Less
More
- Posts: 143
- Thank you received: 9
4 years 5 months ago #340890
by ButterflyPixel
Thanks Nicolas, i hided it via CSS but it's better with your solution
Thanks !
Replied by ButterflyPixel on topic Remove "Carts" from User control panel
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.205 seconds