Partial Payments - Filter Hook References
This is simply a list of partial payment-related filter hooks that can be found within the WooCommerce Partial COD - Payment Gateway Restrictions & Fees files. This list also includes the supported parameters and example codes.
woopcd_partialcod/get-advance-payment-info
- Parameters:
- $advanc_info array()
Example Codes:
- function custom_get_advance_payment_info( $advanc_info ) {
- //add your custom code here
- return $advanc_info;
- }
- add_filter( 'woopcd_partialcod/get-advance-payment-info', 'custom_get_advance_payment_info', 10, 1 );
woopcd_partialcod/get-partial-payment-data
- Parameters:
- $partial_payment_data array()
Example Codes:
- function custom_get_partial_payment_data( $partial_payment_data ) {
- //add your custom code here
- return $partial_payment_data;
- }
- add_filter( 'woopcd_partialcod/get-partial-payment-data', 'custom_get_partial_payment_data', 10, 1 );
woopcd_partialcod/get_formatted_order_total
- Parameters:
- $formatted_total string
- $order object
- $tax_display bool
- $display_refunded bool
Example Codes:
- function custom_get_formatted_order_total( $formatted_total, $order, $tax_display, $display_refunded ) {
- //add your custom code here
- return $formatted_total;
- }
- add_filter( 'woopcd_partialcod/get_formatted_order_total', 'custom_get_formatted_order_total', 10, 4 );
woopcd_partialcod/get-order-advance_pay-label
- Parameters:
- $advance_pay_text string
Example Codes:
- function custom_get_order_advance_pay_label( $advance_pay_text ) {
- //add your custom code here
- return $advance_pay_text;
- }
- add_filter( 'woopcd_partialcod/get-order-advance_pay-label', 'custom_get_order_advance_pay_label', 10, 1 );
woopcd_partialcod/get-order-advance-method-label
- Parameters:
- $advance_method_text string
Example Codes:
- function custom_get_order_advance_method_label( $advance_method_text ) {
- //add your custom code here
- return $advance_method_text;
- }
- add_filter( 'woopcd_partialcod/get-order-advance-method-label', 'custom_get_order_advance_method_label', 10, 1 );
woopcd_partialcod/get-order-advance-method-label
- Parameters:
- $delivery_pay_text string
Example Codes:
- function custom_get_order_delivery_pay_label( $delivery_pay_text ) {
- //add your custom code here
- return $delivery_pay_text;
- }
- add_filter( 'woopcd_partialcod/get-order-delivery-pay-label', 'custom_get_order_delivery_pay_label', 10, 1 );
Related Articles
Gateway Fees - Filter Hook References
This is simply a list of gateway fee-related filter hooks that can be found within the WooCommerce Partial COD - Payment Gateway Restrictions & Fees files. This list also includes the supported parameters and example codes. ...
Partial Payment Amounts - Filter Hook References
This is simply a list of partial payment amount-related filter hooks that can be found within the WooCommerce Partial COD - Payment Gateway Restrictions & Fees files. This list also includes the supported parameters and example codes. ...
Cart Discounts - Filter Hook References
This is simply a list of cart discount-related filter hooks that can be found within the WooCommerce Partial COD - Payment Gateway Restrictions & Fees files. This list also includes the supported parameters and example codes. ...
Partial Payments
The Partial Payments setting page can be used to create and manage partial payments (i.e the partial COD or risk-free COD). Multiple partial payments and partial amounts can be calculated based on product rules and conditions. Partial Amount Limit ...
Gateway Fees
The Gateway Fees setting page can be used to create and manage gateway fees. Multiple gateway fees can be created based on product rules and conditions. Gateway Fees Limit This field determines whether or not the gateway fees should have fee limits. ...