Change the configuration of the billing address

  • Posts: 73
  • Thank you received: 0
11 years 5 months ago #111541

I would like to change the way the billing address appears on tax invoices.

It currently displays postcode, city, state but I would like to change this to be city, state, postcode.

I have changed the address/address_template and order/address_template files, but it doesn't seem to work.

Could you tell me what else to change?

I also don't need the telephone number to be displayed on the tax invoice. How do I remove this?

Thanks very much

Please Log in or Create an account to join the conversation.

  • Posts: 83025
  • Thank you received: 13404
  • MODERATOR
11 years 5 months ago #111544

That's the only modification to do for that.
If you don't see the change, it means that you didn't edit the view files for the correct templates.
Please make sure that you edited the address/address_template for your frontend template and order/address_template for your backend template.

Please Log in or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 0
11 years 5 months ago #111547

Looks as though it was just a cache problem. The post code is now showing in the correct spot.

How do I remove the telephone number? Do I just delete that last line of code in the address_template file?

Please Log in or Create an account to join the conversation.

  • Posts: 83025
  • Thank you received: 13404
  • MODERATOR
11 years 5 months ago #111548

Yes.

The following user(s) said Thank You: shamrockshirts

Please Log in or Create an account to join the conversation.

  • Posts: 223
  • Thank you received: 1
11 years 5 months ago #114518

so i found this thread, as i have the same issue...

made the changes to address/address_template:

<?php
/**
 * @package  HikaShop for Joomla!
 * @version  2.1.3
 * @author  hikashop.com
 * @copyright  (C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
 * @license  GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?>{address_company}
{address_title} {address_firstname} {address_lastname}
{address_street}
 {address_city} {address_state}{address_post_code}
{address_country}
<?php echo JText::sprintf('TELEPHONE_IN_ADDRESS','{address_telephone}');?>

and order/address_template
<?php
/**
 * @package  HikaShop for Joomla!
 * @version  2.1.3
 * @author  hikashop.com
 * @copyright  (C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
 * @license  GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?>{address_company}
{address_title} {address_firstname} {address_lastname}
{address_street}
 {address_city} {address_state}{address_post_code}
{address_country}
<?php echo JText::sprintf('TELEPHONE_IN_ADDRESS','{address_telephone}');?>

cleared cache, tried different browser(s), and invoice still prints:



any ideas?

Attachments:
Last edit: 11 years 5 months ago by Jerome.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #114644

Hi,

If you don't see the change, it means that you didn't edit the view files for the correct templates.
Please make sure that you edited the address/address_template for your frontend template and order/address_template for your backend template.


Did you check it ?

Please Log in or Create an account to join the conversation.

  • Posts: 223
  • Thank you received: 1
11 years 5 months ago #114741

you can see for yourself that changes are in proper places







Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26166
  • Thank you received: 4029
  • MODERATOR
11 years 5 months ago #114766

Hi,

The template "jsn_epic_pro" is not a backend template, it is your front-end template.
In the backend I think you are using "Bluestork", the default Joomla 2.5 backend template.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 11 years 5 months ago by Jerome.
The following user(s) said Thank You: plumbingdeals

Please Log in or Create an account to join the conversation.

  • Posts: 223
  • Thank you received: 1
11 years 5 months ago #114771

ya got me!

that was it...completely missed that

thanks for the help

Please Log in or Create an account to join the conversation.

  • Posts: 223
  • Thank you received: 1
11 years 5 months ago #114778

one more quick question...

what parameter would i use to display customer's e-mail address

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #115010

Hi,

You have to use the column name of your email address field.
For example: {address_email}

Please Log in or Create an account to join the conversation.

  • Posts: 223
  • Thank you received: 1
11 years 5 months ago #115120

what?
Xavier, did you read this string before answering?

i want the customers e-mail address, just like their name, etc...
this should not require a custom field, it shows in many places already in the order, and i simply want to add it to the invoice

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #115255

Hi,

If you just want to add it through your invoice, I think that you'll probably find your answer there :

<?php echo $this->order->customer->user_email; ?>

The following user(s) said Thank You: plumbingdeals

Please Log in or Create an account to join the conversation.

  • Posts: 223
  • Thank you received: 1
11 years 5 months ago #115270

sorry, didn't see the earlier post...

exactly what i wanted, worked like a charm!

thanks

Please Log in or Create an account to join the conversation.

Time to create page: 0.128 seconds
Powered by Kunena Forum