The following wildcards can be used in ticket templates:
{SITE_TITLE} : Site Title
{TICKET_PRICE} : The ticket's price
<?php | |
add_action( | |
'getpaid_email_cart_totals_total', | |
function( $invoice ) { | |
/**@var WPInv_Invoice $invoice */ | |
if ( $invoice->needs_payment() ) { | |
printf( | |
'<div style="margin-top: 10px;"><a href="%s">%s</a></div>', |
<?php | |
// Copy this file to wp-content/themes/your-theme/geodirectory/templates/bootstrap/content-archive-listing.php | |
// Remember to replace "ENTER YOUR ADD HERE" with your actual ad code. | |
/** | |
* Template for the list of places | |
* | |
* This is used mostly on the listing (category) pages and outputs the actual grid or list of listings. | |
* See the link below for info on how to replace the template in your theme. |
<?php | |
//Load Wordpress | |
include_once( '../wp-load.php' ); | |
$new_invoice = new WPInv_Invoice(); | |
$new_invoice->set_email_cc( 'jconley@example.com' ); | |
$new_invoice->set_description( 'test Description' ); | |
$new_invoice->set_disable_taxes( true ); |
<?php | |
// Example customizing the Authorize.NET credit card form. | |
// Remember to keep the input "name" attributes as they appear in this example | |
add_action( 'getpaid_init', function( $getpaid ) { | |
remove_action( 'wpinv_authorizenet_cc_form', array( $getpaid->gateways['authorizenet'], 'payment_fields' ), 10 ); | |
add_action( 'wpinv_authorizenet_cc_form', function( $invoice_id, $form ) { | |
$authorizenet = getpaid()->gateways['authorizenet']; |
<?php // Do not copy this line. | |
add_filter( 'getpaid_user_address_fields', function() { | |
return array( | |
'first_name' => __( 'First Name', 'invoicing' ), | |
'last_name' => __( 'Last Name', 'invoicing' ), | |
'country' => __( 'Country', 'invoicing' ), | |
'state' => __( 'State', 'invoicing' ), | |
'zip' => __( 'Zip/Postal Code', 'invoicing' ), |
<?php | |
// Display the department field on the payment form. | |
function getpaid_example_department_field( $field_type ) { | |
if ( 'billing' != $field_type ) { | |
return; | |
} | |
echo aui()->input( |
<?php | |
function getpaid_example_hide_vat_settings( $settings ) { | |
unset( $settings['taxes']['vat'] ); | |
return $settings; | |
} | |
add_filter( 'wpinv_registered_settings', 'getpaid_example_hide_vat_settings' ); |
<?php | |
function getpaid_example_link_to_item_course( $meta, $invoice ) { | |
// Abort if the invoice is not paid. | |
if ( ! $invoice->is_paid() ) { | |
return $meta; | |
} |