Custom button in user Cpanel?

  • Posts: 80
  • Thank you received: 1
12 years 10 months ago #36504

Hello,

I need some help, please, with adding of custom button to the user Cpanel with Image, Title and Description, just like the default onces. It will be linked to the custom page.
From the code I have found there is no html/css code for this purpose - the foreach is used instead:


<?php
foreach($this->buttons as $oneButton){
echo $oneButton;
}
?>


How can I possibly include more buttons?

Last edit: 12 years 10 months ago by seoweb.

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #36557

You should create a hikashop plugin and implement the event onUserAccountDisplay(&$buttons)
I invite you to look at the files of user account plugin which does just that:
plugins/hikashop/user_account.php
plugins/hikashop/user_account.xml

The following user(s) said Thank You: seoweb

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

Time to create page: 0.054 seconds
Powered by Kunena Forum