Second order no address details in adm. email

  • Posts: 66
  • Thank you received: 3
13 years 7 months ago #15968

As I stated in my earlier post about including custom fields in emails

http://www.hikashop.com/en/support/forum/4-how-to/15738-how-to-include-a-custom-field-in-emails.html

everything seemed to work fine.

But there is a problem. If an user is still logged in and makes a second order the conformation email to the administrator does not contain the shipping or order address details. Even if I set the Order administrator notification to its default settings.

Any idea?

Last edit: 13 years 7 months ago by didero.

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

  • Posts: 83007
  • Thank you received: 13400
  • MODERATOR
13 years 7 months ago #15969

The admin notification is the same for the first and next emails.
That fact that the shipping address is not displayed is because of a bug.
You should replace the line:
if(!empty($data->cart->has_shipping) && !empty($data->cart->shipping_address)){
by:
if(!empty($data->cart->order_shipping_id) && !empty($data->cart->shipping_address)){

in the order admin notification.

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

  • Posts: 66
  • Thank you received: 3
13 years 7 months ago #15970

I have just amended the Administrator Confirmation Email as suggested but the same results. Also with the standard layout.

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

  • Posts: 83007
  • Thank you received: 13400
  • MODERATOR
13 years 7 months ago #16019

Would it be possible to have a back end access to your website in order to check out the problem because I'm out of ideas ?

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

  • Posts: 66
  • Thank you received: 3
13 years 7 months ago #16021

Thank you. I have sent you the details.

Last edit: 13 years 7 months ago by didero.

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

  • Posts: 83007
  • Thank you received: 13400
  • MODERATOR
13 years 7 months ago #16040

We got them. As it's already late around here, we'll look at the problem tomorrow.

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

  • Posts: 66
  • Thank you received: 3
13 years 7 months ago #16044

Ok. If you want to see the outcome of the emails then you can temporary change the second email adres with "test" in it with your own. Or add an extra one. The shop is already live.

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

  • Posts: 83007
  • Thank you received: 13400
  • MODERATOR
13 years 7 months ago #16103

Hi,

I'm sorry but I just tried to go on your back end and the account you provided did not enable me to log in. Could you please double check the credentials ?

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

  • Posts: 66
  • Thank you received: 3
13 years 7 months ago #16104

Hello Nicolas,

Don't understand. Just logged in with the username and pasword sent to you. Will make an new account details will follow.

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

  • Posts: 83007
  • Thank you received: 13400
  • MODERATOR
13 years 7 months ago #16105

I was able to login on your back end now.
The problem is that you don't have the view "address" on your checkout workflow. That's the view responsible for the address selection during the checkout. If you don't have it, the system does not select any address for the order. Which is why you don't see any address in the emails for users with an account.
For users creating a new account, the address information is asked on the login view and is automatically selected when the account is created so that's why it works for new accounts and not existing accounts.

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

  • Posts: 66
  • Thank you received: 3
13 years 7 months ago #16106

Thank you for your wonderful support :) Fixed. Added to the checkout.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum