Remove the option to add/manage addresses

  • Posts: 25
  • Thank you received: 1
11 years 10 months ago #83718

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!

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

  • Posts: 82725
  • Thank you received: 13338
  • MODERATOR
11 years 9 months ago #84014

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.

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

  • Posts: 25
  • Thank you received: 1
11 years 9 months ago #84259

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

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!

Attachments:
Last edit: 11 years 9 months ago by reeses007.

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

  • Posts: 26150
  • Thank you received: 4026
  • MODERATOR
11 years 9 months ago #84330

Hi,

It is

if($oneButton['image'] == 'user') continue;
Sorry for the mistake.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: reeses007

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

  • Posts: 3
  • Thank you received: 0
9 years 3 months ago #210185

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

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

  • Posts: 26150
  • Thank you received: 4026
  • MODERATOR
9 years 3 months ago #210187

Hi,

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.073 seconds
Powered by Kunena Forum