The issue is that when I click cash and submit the page it sends this message:
“Your card number is incomplete.”
]]>I have 4 payment options on my site – Cash on delivery, Bank transfer, PayPal and Credit card (Stripe). The thing is, that I only want to send the PDF to cash on delivery and bank transfer options.
I’ve searched for the solution myself already and I’ve found this code by @kluver :
// exclude certain payment methods from automatic pdf creation
add_filter( 'wpo_wcpdf_custom_attachment_condition', 'wpo_wcpdf_exclude_payment_method', 100, 4 );
function wpo_wcpdf_exclude_payment_method ( $condition, $order, $status, $document ) {
$excluded_methods = array( 'stripe', 'bacs' );
$payment_method = get_post_meta( $order->id, '_payment_method', true );
if ( $document == 'invoice' && in_array( $payment_method, $excluded_methods ) ) {
return false;
} else {
return $condition;
}
}
The thing is – I’m average with css, however, functions.php are way out of my league. I know I need to add them to the excluded_methods array, but I don’t know how to target them.
Kind regards
]]>Is there any method within the plugin to allow a new or renewing member to pay offline? Right now I only have the option to choose PayPal and they can’t complete the process without a successful online payment.
Or is there an addon I’m overlooking that can enable an offline payment option?
I was thinking I could create a duplicate membership form that didn’t have any payment gateway attached to it but one is required, as indicated by the error “Atleast one payment gateway configuration is required for paid plan(s) selection.” [FYI, typo in ‘Atleast’]
]]>