Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Address appears twice on invoice - where to edit?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-09-2011, 11:21 AM
  mizNRG's Avatar 
mizNRG mizNRG is offline
 

Senior Member
  
Join Date: Jun 2010
Posts: 157
 

Default Address appears twice on invoice - where to edit?

I've searched everywhere and can't seem to figure out how to edit my company's address on the invoice. It appears twice (see red box in attached image). I've searched languages and templates and tried using the debugging console (which doesn't seem to be working properly). Any help would be greatly appreciated!

Thanks,
Mel
Attached Thumbnails
Click image for larger version

Name:	Invoice.jpg
Views:	126
Size:	133.9 KB
ID:	2434  
__________________
X-Cart 4.4.4 Gold
Reply With Quote
  #2  
Old 02-09-2011, 01:25 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Address appears twice on invoice - where to edit?

That is set in the admin > Settings > General Settings > Company. The info may have been pasted twice into one of the fields.

I recommend upgrading to 4.4.2.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #3  
Old 02-10-2011, 05:08 AM
  mizNRG's Avatar 
mizNRG mizNRG is offline
 

Senior Member
  
Join Date: Jun 2010
Posts: 157
 

Default Re: Address appears twice on invoice - where to edit?

I had already checked that information several times, as well as all fields in all of the General Settings screens. All information appears once in all fields. I've checked all the language variables I can think of. When I try to use the Debugging Console it doesn't give me any information when I hover over different areas. I have no way of knowing what template/language this is pulling from.

The fact that it's so hard to solve simple errors like this is really starting to get annoying.

Quote:
Originally Posted by cherie
I recommend upgrading to 4.4.2.

I was under the impression that 4.4.2 was rather buggy. I was kinda waiting a bit to see if anything improved.
__________________
X-Cart 4.4.4 Gold
Reply With Quote
  #4  
Old 02-10-2011, 05:56 AM
 
Sunray Sales Sunray Sales is offline
 

Senior Member
  
Join Date: Dec 2010
Posts: 194
 

Default Re: Address appears twice on invoice - where to edit?

I'm sure you may have tried this but in General Settings > Company > Remove the company information that is being repeated from the corresponding field.

Yes meaning make them blank. Then create an invoice, see if the second address (which you outlined in a red box in the image) still appears.

If it does appear then you know it has nothing to do with General Settings and that information is coming from somewhere else.

Unfortunately I can't tell you where this is being generated, I have not yet tried to modify that portion of X-Cart yet.

It may be a bug? What about 4.4.1? Did you see this happening?
__________________
4.4.2
www.sunraysales.com
HandsOnWebHosting
Reply With Quote
  #5  
Old 02-10-2011, 06:21 AM
  mizNRG's Avatar 
mizNRG mizNRG is offline
 

Senior Member
  
Join Date: Jun 2010
Posts: 157
 

Default Re: Address appears twice on invoice - where to edit?

Okay, I did as you suggested and my address dissappeared in two locations. I now realize that the address placed in the middle is coming from the address I have at the top of my site (red squares in image). My problem now is trying to figure out which template (out of the many possibilities) this is located in so that I can remove it. The address at the top is located in lbl_phone_1_title. So I'm assuming that one of the many invoice templates is calling this out and placing it within the address on the invoice. Just need to figure out where...
Attached Thumbnails
Click image for larger version

Name:	Invoice2.jpg
Views:	111
Size:	363.5 KB
ID:	2440  
__________________
X-Cart 4.4.4 Gold
Reply With Quote
  #6  
Old 02-10-2011, 06:39 AM
  mizNRG's Avatar 
mizNRG mizNRG is offline
 

Senior Member
  
Join Date: Jun 2010
Posts: 157
 

Default Re: Address appears twice on invoice - where to edit?

SOLVED!! For anyone interested or experiencing the same issue just comment out the below code located in: \skin\common_files\mail\html\order_invoice.tpl
Code:
{if $config.Company.company_phone} {$lng.lbl_phone_1_title}: {$config.Company.company_phone}<br /> {/if}
__________________
X-Cart 4.4.4 Gold
Reply With Quote
  #7  
Old 02-10-2011, 06:47 AM
 
Sunray Sales Sunray Sales is offline
 

Senior Member
  
Join Date: Dec 2010
Posts: 194
 

Default Re: Address appears twice on invoice - where to edit?

Excellent good job!.

Do you mind telling me how to add my logo to invoices please? Or refer me to the page in the manual the contains this?


Thanks in advance!
__________________
4.4.2
www.sunraysales.com
HandsOnWebHosting
Reply With Quote
  #8  
Old 02-10-2011, 06:58 AM
  mizNRG's Avatar 
mizNRG mizNRG is offline
 

Senior Member
  
Join Date: Jun 2010
Posts: 157
 

Default Re: Address appears twice on invoice - where to edit?

In the same file find the code below (it should be around line 18 )and replace with your own image.

Code:
<td {if $is_nomail eq 'Y'}class="invoice-company-icon"{else}style="vertical-align: top; padding-top: 30px;"{/if}> <img src="{$ImagesDir}/your_logo.jpg" alt="" /> </td>
__________________
X-Cart 4.4.4 Gold
Reply With Quote
  #9  
Old 02-11-2011, 06:33 AM
 
Sunray Sales Sunray Sales is offline
 

Senior Member
  
Join Date: Dec 2010
Posts: 194
 

Default Re: Address appears twice on invoice - where to edit?

Great thanks so much!
__________________
4.4.2
www.sunraysales.com
HandsOnWebHosting
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:57 PM.

   

 
X-Cart forums © 2001-2020