- Posts: 32
- Thank you received: 0
Addresses in the customer page (Account - cpanel)
10 years 4 months ago #239493
by Osindelka
Addresses in the customer page (Account - cpanel) was created by Osindelka
-- 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:
-- 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.
10 years 4 months ago #239514
by nicolas
Replied by nicolas on topic Addresses in the customer page (Account - cpanel)
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:
2. To remove the delete button, you can remove that code:
3. To remove the radio input, you can remove that code:
4. To have only one address, you can add that code:
before the code :
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:
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:
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:
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:
Code:
break;
Code:
}
?>
</table>
<?php } ?>
Please Log in or Create an account to join the conversation.
10 years 4 months ago #239625
by Osindelka
Replied by Osindelka on topic Addresses in the customer page (Account - cpanel)
Hi,
Ok, I adjusted the view. Thank you.
Ok, I adjusted the view. Thank you.
Please Log in or Create an account to join the conversation.
Time to create page: 0.170 seconds