address title in email User account

  • Posts: 30
  • Thank you received: 0
  • Hikashop Business
11 years 9 months ago #89261

Hi,

I've Hikashop Business,
and yesterday after being on your forum, i've set email order notification with address_title after HI_CUSTOMER

<?php echo JText::sprintf('HI_CUSTOMER',@$data->cart->billing_address->address_title." ".@$data->cart->billing_address->address_firstname." ".@$data->cart->billing_address->address_lastname);?>

but the code doesn't work in email User account.
Someone knows if it's possible ?

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

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

Hi,

That's because the cart is not loaded in this email, so you don't have access to the object "$data->cart".
Try to put a var_dump($data); to see what is in this object, then use the wanted variable and remove the var_dump.

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

Time to create page: 0.047 seconds
Powered by Kunena Forum