KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: nickgk on February 14, 2012, 07:18:00 pm

Title: getBillingAddrFormatTemplate
Post by: nickgk on February 14, 2012, 07:18:00 pm
I would like to modify how the Order Confirmation template presents the Billing and Delivery Addresses. The default entries on the velocity OrderConfirmation_en.vm template are $order.getBillingFormattedAddress()
and $order.getDeliveryFormattedAddress(). The addresses supplied by these entries do not include the company name if one was entered during checkout.

In addition those mentioned above there are interesting methods in the OrderIf interface:    order.getBillingAddrFormatTemplate(), order.setBillingAddrFormatTemplate() etc.

How does one use they templates? Where do they reside and how could they be set from the velocity template?

Thanks for any help.
Title: Re: getBillingAddrFormatTemplate
Post by: julie on February 14, 2012, 08:03:23 pm
Take a look at the admin app under Localizations >> Address Formats
Title: Re: getBillingAddrFormatTemplate
Post by: nickgk on February 14, 2012, 08:19:40 pm
Thanks for the info.  This almost solves my problem but "company" is not one of the allowable keywords in the format. It would be great if there were a mechanism for conditional inclusion, i.e. only include a $cr if the company exists...