Addresses in the customer page (Account - cpanel)

  • Posts: 32
  • Thank you received: 0
8 years 6 months ago #239493

-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.5.1

I managed to eliminate multiple addresses in the checkout flow thanks to help from Nicolas www.hikashop.com/forum/checkout/884317-c...shippping-price.html

However, there's another problem with the multiple addresses. If the customer goes to the My Account page (cpanel) he is presented with several choices. One of them is to adjust his addresses.

I need the customer to have there just one address and be able to modify just one address. I can't find the view file for this page. Where is it? Also what changes in the php would be required?

I am talking about this:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 6 months ago #239514

Hi,

You'll have to edit the file "listing" of the view "address" via the menu Display>Views for that.

1. To remove the "new" button, you can remove that code:

<td><?php
					echo $this->popup->display(
						'<span class="icon-32-new" title="'. JText::_('HIKA_NEW').'"></span>'. JText::_('HIKA_NEW'),
						'HIKA_NEW',
						hikashop_completeLink('address&task=add',true),
						'hikashop_new_address_popup',
						760, 480, '', '', 'link'
					);
				?></td>

2. To remove the delete button, you can remove that code:
<a onclick="if(!confirm('<?php echo JText::_('HIKASHOP_CONFIRM_DELETE_ADDRESS', true); ?>')){return false;}else{return true;}" href="<?php echo hikashop_completeLink('address&task=delete&address_id='.$address->address_id.'&'.$token.'=1&Itemid='.$Itemid);?>" title="<?php echo JText::_('HIKA_DELETE'); ?>"><img src="<?php echo HIKASHOP_IMAGES; ?>delete.png" alt="<?php echo JText::_('HIKA_DELETE'); ?>" /></a>

3. To remove the radio input, you can remove that code:
<input type="radio" name="address_default" value="<?php echo $this->address->address_id;?>"<?php
				if($this->address->address_default == 1) {
					echo ' checked="checked"';
				}
			?> onclick="this.form.submit();"/>

4. To have only one address, you can add that code:
break;
before the code :
}
?>
</table>
<?php } ?>

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

  • Posts: 32
  • Thank you received: 0
8 years 6 months ago #239625

Hi,

Ok, I adjusted the view. Thank you.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum