- Posts: 25
- Thank you received: 1
Remove the option to add/manage addresses
13 years 10 months ago #83718
by reeses007
Remove the option to add/manage addresses was created by reeses007
Happy New Year Hikashop,
I added a menu "My Account" so the user can review their joomla account profile and hikashop orders.
I would like to remove the "Manage Address" option.
Customer Account
Edit your account information
Addresses (<- could we remove this?)
Manage your addresses (<- could we remove this?)
Orders
View your orders
Thanks!
I added a menu "My Account" so the user can review their joomla account profile and hikashop orders.
I would like to remove the "Manage Address" option.
Customer Account
Edit your account information
Addresses (<- could we remove this?)
Manage your addresses (<- could we remove this?)
Orders
View your orders
Thanks!
Please Log in or Create an account to join the conversation.
13 years 10 months ago #84014
by nicolas
Replied by nicolas on topic Remove the option to add/manage addresses
Hi,
happy new year !
You can add the code:
if($oneButton=='user') continue;
after the code:
foreach($this->buttons as $oneButton){
in the file "cpanel" via the menu Display->Views for that.
happy new year !
You can add the code:
if($oneButton=='user') continue;
after the code:
foreach($this->buttons as $oneButton){
in the file "cpanel" via the menu Display->Views for that.
Please Log in or Create an account to join the conversation.
13 years 10 months ago - 13 years 10 months ago #84259
by reeses007
Replied by reeses007 on topic Remove the option to add/manage addresses
Hi I tried this, and it doesn't seem to do anything new. I cleared my browser cache and purged the cache in joomla.
This is the code in cpanel.php
Also, just to clarify. I would like to remove the "Manage your addresses" but still keep "Manage your account Information" and "View your orders".
Thanks!
This is the code in cpanel.php
Code:
efined('_JEXEC') or die('Restricted access');
?><div class="hikashop_cpanel_main" id="hikashop_cpanel_main">
<div class="hikashop_cpanel_title" id="hikashop_cpanel_title">
<fieldset>
<div class="header hikashop_header_title"><h1><?php echo JText::_('CUSTOMER_ACCOUNT');?></h1></div>
</fieldset>
</div>
<div class="hikashopcpanel" id="hikashopcpanel">
<?php
foreach($this->buttons as $oneButton){
if($oneButton=='user') continue;
$url = hikashop_level($oneButton['level']) ? 'onclick="document.location.href=\''.$oneButton['link'].'\';"' : ''; ?>
<div <?php echo $url; ?> class="icon hikashop_cpanel_icon_div">
<a href="<?php echo hikashop_level($oneButton['level']) ? $oneButton['link'] : '#'; ?>">
<table class="hikashop_cpanel_icon_table">
<tr>
<td class="hikashop_cpanel_icon_image">
<span class="hikashop_cpanel_icon_image_span icon-48-<?php echo $oneButton['image']; ?>" title="<?php echo $oneButton['text']; ?>"> </span>
<span class="hikashop_cpanel_button_text"><?php echo $oneButton['text']; ?></span>
</td>
<td>
<div class="hikashop_cpanel_button_description">
<?php echo $oneButton['description']; ?>
</div>
</td>
</tr>
</table>
</a>
</div>
<?php } ?>
</div>
</div>
<div class="clear_both"></div>
Also, just to clarify. I would like to remove the "Manage your addresses" but still keep "Manage your account Information" and "View your orders".
Thanks!
Last edit: 13 years 10 months ago by reeses007.
Please Log in or Create an account to join the conversation.
13 years 10 months ago #84330
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Remove the option to add/manage addresses
Hi,
It is
Sorry for the mistake.
Regards,
It is
Code:
if($oneButton['image'] == 'user') continue;
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: reeses007
Please Log in or Create an account to join the conversation.
11 years 3 months ago #210185
by Ferhanzo
Replied by Ferhanzo on topic Remove the option to add/manage addresses
Sorry revive the topic , but I'm having the same problem.
I inserted the code in Cpanel.php file but nothing happened .
Any suggestions?
Thanks
I inserted the code in Cpanel.php file but nothing happened .
Any suggestions?
Thanks
Please Log in or Create an account to join the conversation.
11 years 3 months ago #210187
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Remove the option to add/manage addresses
Hi,
That thread is more than 2 years old ; since that date, HikaShop changed.
Please open a new thread, it will be easier.
Regards,
That thread is more than 2 years old ; since that date, HikaShop changed.
Please open a new thread, it will be easier.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.061 seconds