Lines:
1 to 100 of 249
<?php /** * This template is used to display the purchase summary with [edd_receipt] */ global $edd_receipt_args; $payment = get_post( $edd_receipt_args['id'] ); if( empty( $payment ) ) : ?> <div class="edd_errors edd-alert edd-alert-error"> <?php _e( 'The specified receipt ID appears to be invalid', 'easy-digital-downloads' ); ?> </div> <?php return; endif; $meta = edd_get_payment_meta( $payment->ID ); $cart = edd_get_payment_meta_cart_details( $payment->ID, true ); $user = edd_get_payment_meta_user_info( $payment->ID ); $email = edd_get_payment_user_email( $payment->ID ); $status = edd_get_payment_status( $payment, true ); ?> <table id="edd_purchase_receipt" class="edd-table"> <thead> <?php do_action( 'edd_payment_receipt_before', $payment, $edd_receipt_args ); ?> <?php if ( filter_var( $edd_receipt_args['payment_id'], FILTER_VALIDATE_BOOLEAN ) ) : ?> <tr> <th><strong><?php _e( 'Payment', 'easy-digital-downloads' ); ?>:</strong></th> <th><?php echo edd_get_payment_number( $payment->ID ); ?></th> </tr> <?php endif; ?> </thead> <tbody> <tr> <td class="edd_receipt_payment_status"><strong><?php _e( 'Payment Status', 'easy-digital-downloads' ); ?>:</strong></td> <td class="edd_receipt_payment_status <?php echo strtolower( $status ); ?>"><?php echo $status; ?></td> </tr> <?php if ( filter_var( $edd_receipt_args['payment_key'], FILTER_VALIDATE_BOOLEAN ) ) : ?> <tr> <td><strong><?php _e( 'Payment Key', 'easy-digital-downloads' ); ?>:</strong></td> <td><?php echo edd_get_payment_meta( $payment->ID, '_edd_payment_purchase_key', true ); ?></td> </tr> <?php endif; ?> <?php if ( filter_var( $edd_receipt_args['payment_method'], FILTER_VALIDATE_BOOLEAN ) ) : ?> <tr> <td><strong><?php _e( 'Payment Method', 'easy-digital-downloads' ); ?>:</strong></td> <td><?php echo edd_get_gateway_checkout_label( edd_get_payment_gateway( $payment->ID ) ); ?></td> </tr> <?php endif; ?> <?php if ( filter_var( $edd_receipt_args['date'], FILTER_VALIDATE_BOOLEAN ) ) : ?> <tr> <td><strong><?php _e( 'Date', 'easy-digital-downloads' ); ?>:</strong></td> <td><?php echo date_i18n( get_option( 'date_format' ), strtotime( $meta['date'] ) ); ?></td> </tr> <?php endif; ?> <?php if ( ( $fees = edd_get_payment_fees( $payment->ID, 'fee' ) ) ) : ?> <tr> <td><strong><?php _e( 'Fees', 'easy-digital-downloads' ); ?>:</strong></td> <td> <ul class="edd_receipt_fees"> <?php foreach( $fees as $fee ) : ?> <li> <span class="edd_fee_label"><?php echo esc_html( $fee['label'] ); ?></span> <span class="edd_fee_sep"> – </span> <span class="edd_fee_amount"><?php echo edd_currency_filter( edd_format_amount( $fee['amount'] ) ); ?></span> </li> <?php endforeach; ?> </ul> </td> </tr> <?php endif; ?> <?php if ( filter_var( $edd_receipt_args['discount'], FILTER_VALIDATE_BOOLEAN ) && isset( $user['discount'] ) && $user['discount'] != 'none' ) : ?> <tr> <td><strong><?php _e( 'Discount(s)', 'easy-digital-downloads' ); ?>:</strong></td> <td><?php echo $user['discount']; ?></td> </tr> <?php endif; ?> <?php if( edd_use_taxes() ) : ?> <tr> <td><strong><?php _e( 'Tax', 'easy-digital-downloads' ); ?>:</strong></td> <td><?php echo edd_payment_tax( $payment->ID ); ?></td> </tr> <?php endif; ?> <?php if ( filter_var( $edd_receipt_args['price'], FILTER_VALIDATE_BOOLEAN ) ) : ?> <tr> <td><strong><?php _e( 'Subtotal', 'easy-digital-downloads' ); ?>:</strong></td> <td>
Called by
Invoked by
Calls
1 to 30 of 32
- edd_currency_filter() – Formats the currency display
- edd_format_amount() – Returns a nicely formatted amount.
- edd_get_bundle_item_id() – Retrieve the ID of an item in a bundle.
- edd_get_bundle_item_price_id() – Retrieve the price ID of a bundle item.
- edd_get_bundle_item_title() – Get a fully formatted title of a bundle item
- edd_get_bundled_products() – Retrieves the product IDs of bundled products
- edd_get_cart_item_price_id() – Get cart item price id
- edd_get_download_file_url() – Get Download File Url Constructs a secure file download url for a specific file.
- edd_get_download_files() – Gets all download files for a product
- edd_get_download_sku() – Retrieves a download SKU by ID.
- edd_get_file_name() – Retrieves a file name for a product’s download file
- edd_get_gateway_checkout_label() – Returns the checkout label for the specified gateway
- edd_get_payment_fees() – Retrieves arbitrary fees for the payment
- edd_get_payment_gateway() – Get the gateway associated with a payment
- edd_get_payment_meta_cart_details() – Get the cart_details Key from Payment Meta
- edd_get_payment_meta_user_info() – Get the user_info Key from Payment Meta
- edd_get_payment_meta() – Get Payment Meta for a specific Payment
- edd_get_payment_number() – Get the payment order number
- edd_get_payment_status() – Get Payment Status
- edd_get_payment_user_email() – Get the user email associated with a payment
- edd_get_price_option_name() – Retrieves the name of a variable price option
- edd_get_product_notes() – Get product notes
- edd_has_variable_prices() – Checks to see if a download has variable prices enabled.
- edd_is_bundled_product() – Determines if a product is a bundle
- edd_is_payment_complete() – Checks whether a payment has been marked as complete.
- edd_item_quantities_enabled() – Check if quantities are enabled
- edd_payment_amount() – Get the fully formatted payment amount. The payment amount is retrieved using edd_get_payment_amount() and is then sent through edd_currency_filter() and edd_format_amount() to format the amount correctly.
- edd_payment_subtotal() – Retrieves subtotal for payment (this is the amount before taxes) and then returns a full formatted amount. This function essentially calls edd_get_payment_subtotal()
- edd_payment_tax() – Retrieves taxed amount for payment and then returns a full formatted amount This function essentially calls edd_get_payment_tax()
- edd_receipt_show_download_files() – Show a download’s files in the purchase receipt
Call hooks
1 to 9 of 9
- edd_payment_receipt_after – action
- edd_payment_receipt_after_table – action
- edd_payment_receipt_before – action
- edd_payment_receipt_products_title – filter
- edd_purchase_receipt_after_files – action
- edd_receipt_bundle_files – action
- edd_receipt_files – action
- edd_receipt_no_files_found_text – filter
- edd_user_can_view_receipt_item – filter