LLMS_Notification_View_Purchase_Receipt::set_body()
Setup body content for output
Return Return
(string)
Source Source
File: includes/notifications/views/class.llms.notification.view.purchase.receipt.php
protected function set_body() {
$mailer = llms()->mailer();
$rows = array(
'TRANSACTION_DATE' => __( 'Date', 'lifterlms' ),
'PRODUCT_TITLE_LINK' => '{{PRODUCT_TYPE}}',
'PLAN_TITLE' => __( 'Plan', 'lifterlms' ),
'TRANSACTION_AMOUNT' => __( 'Amount', 'lifterlms' ),
'TRANSACTION_SOURCE' => __( 'Payment Method', 'lifterlms' ),
'TRANSACTION_ID' => __( 'Transaction ID', 'lifterlms' ),
);
ob_start();
echo $mailer->get_table_html( $rows );
?>
<p><a href="{{ORDER_URL}}"><?php _e( 'View Order Details', 'lifterlms' ); ?></a></p>
<?php
return ob_get_clean();
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 5.2.0 | Build the table with mailer helper. |
| 3.8.0 | Introduced. |