Currently using SagePay for all users to make payments which is working great!
I wanted to introduce the ability for purchase orders for some of our clients so I installed a great little plugin 'PAYMENT DIRECTOR'.
This does indeed allow me to control the payment methods based on Customer Role which is great!
The biggest problem I have is to do with the next button that appears on the payment information page. I have currently disabled this for SagePay (iFrame) as it isn't required and it was confusing the process but now I want the button to be visible for Purchase Orders - but purchase orders only not sagepay.
Is there a way of controlling this button based on either the customer role or... paymentMethod?
I.E if paymentmethod selected is purchaseorder then show button else hide it.
the button in questions code is:
<input type="submit" name="nextstep" value="@T("Checkout.NextButton")" class="button-1 payment-info-next-step-button" />
Any help greatly appreciated or if someone could point me in the right direction that would be great! :)