<div id="billing-payment-block">
{* If we have a payment processor, load it - otherwise it happens via ajax *}
- {if $ppType}
+ {if $ppType or $isBillingAddressRequiredForPayLater}
{include file="CRM/Contribute/Form/Contribution/Main.tpl" snippet=4}
{/if}
</div>
}
}
- CRM.$('#pricevalue').each(toggleBillingBlockIfFree);
-
- $('#priceset input').on('change', function() {
- CRM.$('#pricevalue').each(toggleBillingBlockIfFree);
- });
+ $('#pricevalue').each(toggleBillingBlockIfFree).on('change', toggleBillingBlockIfFree);
});
{/literal}
</script>