At checkout in Easy Digital Downloads you have the option to show payment icons (PayPal, Visa etc) above the checkout fields. If you also sell free products and the total amount of cart is $0.00 (free), there’s no need to show these icons to the customer, as the payment will be processed using the free payment gateway.

The following code snippet will hide these payment icons if the total of the cart is $0.00. Copy and paste the following function (mind the opening PHP tag) into your child theme’s functions.php or custom plugin:


  1. Hi, how is a product set to be ‘free’?

    Is there a ‘free payment gateway’ that’s used as you describe in your post? I didn’t think so.

  2. A product is essentially free when the price is set to $0.00. When you do this, EDD uses it’s own internal free gateway to process the purchase. This is why do don’t see any options for the other payment gateways. However, you do see the payment icons, which this tutorial is handy for removing.

  3. Very nice that this removed the Payment Icons on the checkout page, but the wording further down the page still implies Charging , since field for ‘Billing’ details Address, etc.. are shown (tho not required)
    Be nice if these where hide-able.

    1. Do you per chance have a payment gateway installed? if so EDD will show it’s billing fields. It sounds like it would be possible but some custom development will be needed.

      1. , PayPal Payment gateway is in use; as well at the EU-VAT addon. As for the custom development would something like;
        remove_action( ‘edd_after_cc_fields’, ‘edd_default_cc_address_fields’ );
        do the trick?

Comments are closed.