Support » Plugin: YITH Donations for WooCommerce » Place donation just above “Place Order” button

  • Hello,

    I was wondering if it is possible to put the donation just before the “place order” button, as kind of a last step before checking out?

    Thanks in advance.
    -Pi

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there,
    Try to add this custom code in your functions.php

    add_action( 'woocommerce_review_order_before_payment', 'ywcds_add_donation_form', 10 );
    
    function ywcds_add_donation_form(){
    
    	the_widget( 'YITH_Donations_Form_Widget' );
    }

    That worked perfectly, thank you.

    Spoke too soon! It works in that it moves the field, however when you put a number in the input (either 25 or 25.00) it shows an error that says “Please enter a number”

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.