WooCommerce Partial COD - Payment Gateway Restriction & Fees

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:

  1. function custom_get_advance_payment_info( $advanc_info ) {
  2.   //add your custom code here
  3.   return $advanc_info;
  4. }
  5. 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:

  1. function custom_get_partial_payment_data( $partial_payment_data ) {
  2.   //add your custom code here
  3.   return $partial_payment_data;
  4. }
  5. 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:

  1. function custom_get_formatted_order_total( $formatted_total, $order, $tax_display, $display_refunded ) {
  2.   //add your custom code here
  3.   return $formatted_total;
  4. }
  5. 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:

  1. function custom_get_order_advance_pay_label( $advance_pay_text ) {
  2.   //add your custom code here
  3.   return $advance_pay_text;
  4. }
  5. 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:

  1. function custom_get_order_advance_method_label( $advance_method_text ) {
  2.   //add your custom code here
  3.   return $advance_method_text;
  4. }
  5. 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:

  1. function custom_get_order_delivery_pay_label( $delivery_pay_text ) {
  2.   //add your custom code here
  3.   return $delivery_pay_text;
  4. }
  5. 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 ...
    • Settings & Restrictions - Filter Hook References

      This is simply a list of settings & restrictions-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. ...