Jump to content

Display invoice address only if invoice address available


Recommended Posts

If the customer have both delivery address and billing address saved in database, then both address to be displayed. If the customer have only one address as delivery address, then delivery address to be displayed. The address to be displayed in one page checkout order-address.tpl file.

Link to comment
Share on other sites

  • 1 year later...
  On 6/27/2014 at 9:51 AM, Nemo1 said:

...yes, but where?

 

I need this solution in e-mail order_conf.html template

 

I can change all HTML and {variables}, but i can't yet use one condition here.

 

Anyone have any solution?

 

Can i use a condition in classes/PaymentModule.php ?

 

Thanks

Bruno Azevedo

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

It's impossible to use conditions in .html files of course.

It depends on your payment modules. Some of them override the ValidateOrder method.
As a generic rule, yes, you can add the condition and variable there, in the main file (using a generic override for the ValidateOrder method)
If it doesn't work, check each payment method's core file 

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...