You appear to be a bot. Output may be restricted
Description
Renders the Purchase button on the Checkout
Usage
$string = edd_checkout_button_purchase();
Parameters
Returns
string
Source
File name: easy-digital-downloads/includes/checkout/template.php
Lines:
1 to 20 of 20
function edd_checkout_button_purchase() { ob_start(); $enabled_gateways = edd_get_enabled_payment_gateways(); $cart_total = edd_get_cart_total(); if ( ! empty( $enabled_gateways ) || empty( $cart_total ) ) { $color = edd_get_option( 'checkout_color', 'blue' ); $color = ( $color == 'inherit' ) ? '' : $color; $style = edd_get_option( 'button_style', 'button' ); $label = edd_get_checkout_button_purchase_label(); ?> <input type="submit" class="edd-submit <?php echo $color; ?> <?php echo $style; ?>" id="edd-purchase-button" name="edd-purchase" value="<?php echo $label; ?>"/> <?php } return apply_filters( 'edd_checkout_button_purchase', ob_get_clean() ); }