Show email in shipping adress

  • Posts: 171
  • Thank you received: 4
11 years 11 months ago #77422

Hi..
How can I get the customers email outputted in the shipping adress that's being shown in the cart?


Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #77423

Hi,

You can add a custom field in the table address to have the email in the addresses.
HikaShop > Display > Custom fields.

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

  • Posts: 171
  • Thank you received: 4
11 years 11 months ago #77427

Thx.. but I think I wasn't clear enough.
Here's some screenshots.

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #77431

Ah ok, edit the view "address / address_template" and add a new entry like: {address_email}.
The content of this entry is depending on the value "Column name" of your custom field.

Warning: Spoiler! [ Click to expand ]

Last edit: 11 years 11 months ago by Xavier.

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

  • Posts: 171
  • Thank you received: 4
11 years 11 months ago #77438

Thank goodness for Google translate ;)
Okay so I've made a custom field named email and I got that to show in the shipping adress, but is there any way to just output email that's being set in the default field?


Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #77453

This email is the user email, so try to edit the view "checkout / address_view" and add this kind of code:

$user = hikashop_loadUser(true);
if(isset($user->user_email)){
	echo $user->user_email."<br/>";
}
After:
			<span class="hikashop_checkout_<?php echo $this->type;?>_address_info">
<?php

The following user(s) said Thank You: jesper

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

  • Posts: 171
  • Thank you received: 4
11 years 11 months ago #77455

Supér!
This worked.. Thanks!

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

Time to create page: 0.090 seconds
Powered by Kunena Forum