I had read the post on how to add a customer address to the email sent when an order is confirmed using paypal
www.hikashop.com/en/support/forum/4-how-...istributor.html#6803
below is how I understand the code in the post should be added/placed to the paypal.php. Am I correct?
}else{
$order->order_status = $element->payment_params->pending_status;
$order_text = JText::sprintf('CHECK_DOCUMENTATION',HIKASHOP_HELPURL.'payment-paypal-error#pending')."\r\n\r\n".$order_text;
}
$order->mail_status=$statuses[$order->order_status];
$mailer->setSubject(JText::sprintf('PAYMENT_NOTIFICATION','Paypal',$vars).$order_subject);
$body = str_replace('<br/>',"\r\n",JText::sprintf('PAYMENT_NOTIFICATION_STATUS','Paypal',$vars)).' '.JText::sprintf('ORDER_STATUS_CHANGED',$order->mail_status)."\r\n\r\n".$order_text;
$orderClass>loadAddress($dbOrder>order_shipping_address_id,$dbOrder,'shipping','name','frontcomp');
$orderClass->loadAddress($dbOrder->order_billing_address_id,$dbOrder,'billing','name','frontcomp');
$orderClass->loadProducts($dbOrder);
$mailer->setBody($body);
$mailer->Send();
$orderClass->save($order);