Jump to content

how to get AJAX $invoice_company in payment module


Recommended Posts

Hi there, i want to make my bank account payment method so it only shows when the company-field in Invoice address is not empty...

 

i am half way there.

 

i can simply check in the TPL file if $invoice_company != ''

 

however this does not work 100% because of everything being Ajax updated (login, change address etc)

 

it only works when one reloads the page by pressing F5

 

can anyone tell me or point me in the direction on how i can make a check on this variable so it works with the AJAX method ?

Edited by diondp (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...