• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Checkout
  • Cart
  • Videos

Add Donate Number Field To Checkout in WooCommerce

$75.00

Demo Video
Category: WooCommerce Tags: woocommerce_after_checkout_billing_form, woocommerce_cart_calculate_fees, woocommerce_checkout_update_order_meta
  • Description

This code adds a number field before the order review on the checkout page in WooCommerce. The field:

  • Enables customers to donate any amount using the number field.
  • The donation amount is added to the sub totals table.
  • The amount updates dynamically when the value for the number field is changed without refreshing the checkout page as seen in the demo video.

The code also dds the donation amount to the Order details page and the woocommerce > orders > items table in the backend so its also included on email invoices for orders.

Installation

Install the zip folder as a new plugin or copy & paste the PHP code to the end of your child themes functions file or custom functionality plugin.

Primary Sidebar

Cart

Code written by Brad Dalton specialist for WooCommerce with more than 10 years of experience.

Advertise · WPEngine · Genesis · Log in

  • Code Snippets
  • Tutorials
  • Videos
  • Account
  • Checkout
  • Cart
 

Loading Comments...
 

You must be logged in to post a comment.