Skip to main content

Remove "Other" amount option on donation pages

I have a donation page with two specific dollar amount options. I only want these tow as options so I would like to remove the option for users to add their own amount in the Other $ input field. How can I do this? Thanks!

considering

This is definitely something that we want to make easier in the future, but for now you can replace the page.donation.form_amount_options  liquid output in the donation page template (in your website > theme > custom theme > edit - pages_show_donation_wide.html) with the following:

For version 1:

Replace this:

{{ page.donation.form_amount_options }}

With this:

{% for amount in page.donation.amounts %} <span><input id="donation_amount_{{ amount }}" type="radio" name="donation[amount_option]" class="donation_amount_option" value="{{ amount }}"><label class="radio" for="donation_amount_{{ amount }}">{{ amount }}</label></span> {% endfor %}

 

For version 2:

Replace this:

{{ page.donation.form_amount_options }}

With this:

{% for amount in page.donation_v2.amounts %}
	<span><input id="donation_amount_{{ amount }}" type="radio" name="donation[amount_option]" class="donation_amount_option" value="{{ amount }}"><label class="radio" for="donation_amount_{{ amount }}">{{ amount }}</label></span>
{% endfor %}

And delete this:

{% if page.donation_v2.accepts_variable_amounts? %}
<div class="col-sm-6">
  <div class="form-group">
    {{ page.donation_v2.amount_other }}
  </div>
</div>
{% endif %}

Official response from

Share this post

Showing 4 reactions

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.