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

Invoice mailable for envelope with window

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-27-2008, 10:36 AM
 
auc auc is offline
 

Member
  
Join Date: Jul 2007
Posts: 10
 

Default Invoice mailable for envelope with window

Request how to instructions to change the Invoice with WYSIWYG editor and/or x-cart tools to change info around on Invoice to make mailable/viewable for envelope with standard window.

Thank you.
__________________
All USA Catalog
X-Cart Gold 4.1.9
Reply With Quote
  #2  
Old 07-27-2008, 04:16 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Invoice mailable for envelope with window

You'd need to edit your mail/html/order_invoice.tpl to the format you want using an html editor - don't think the WYSIWYG editor is going to be powerful enough for you on this one.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-28-2008, 11:03 PM
 
auc auc is offline
 

Member
  
Join Date: Jul 2007
Posts: 10
 

Default Re: Invoice mailable for envelope with window

Can I use Word as HTML editor? If so, can you provide instructions in detail?

QuickBooks has good editor for forms. Looking for the same type tool/s

Thank you,

Jeff
__________________
All USA Catalog
X-Cart Gold 4.1.9
Reply With Quote
  #4  
Old 07-29-2008, 04:01 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Invoice mailable for envelope with window

No, you need to use a real html editor like Dreamweaver. There are other less expensive alternatives I'm sure, I just don't have any that I can recommend.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 07-29-2008, 07:51 PM
 
auc auc is offline
 

Member
  
Join Date: Jul 2007
Posts: 10
 

Default Re: Invoice mailable for envelope with window

Utilizing Adobe Dreamweaver, can you provide step by step instructions to complete task?

Thank you.
__________________
All USA Catalog
X-Cart Gold 4.1.9
Reply With Quote
  #6  
Old 07-30-2008, 03:56 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Invoice mailable for envelope with window

I'm afraid I can't, sorry You'll need to play around with the table layout to get it to work the way you wan t.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 07-30-2008, 10:29 PM
 
retrtrtrytrutru retrtrtrytrutru is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 101
 

Default Re: Invoice mailable for envelope with window

I can post the layout I creared from scratch for you here. The layout of the "shipping address" area fits our envelopes nicely. I will only paste the relevant part since the complete invoice is custom, I didn't like the X-Cart layout at all and with our invoice custom texts are included, depending on which payment method the customer has selected (e.g. bank transfer will include a custom footer with our bank account details).

In mail/html/order_invoice.tpl paste the following at the top. You should remove the old invoice and shipping address table but I cannot advise you how to do that since I don't know what your template looks like. The code below will add the invoice address and to the right of it the shipping address.

Code:
<table cellspacing="0" cellpadding="0" width="600" border="0"> <tr> <td width="285">&nbsp;</td> <td width="75">&nbsp;</td> <td width="240" height="25"><b>{$lng.lbl_shipping_address}</b></td> </tr> <tr> <td><img height="2" src="{$ImagesDir}/spacer.gif" width="1" alt="" /></td> <td><img height="2" src="{$ImagesDir}/spacer.gif" width="1" alt="" /></td> <td bgcolor="#000000" height="2"><img height="2" src="{$ImagesDir}/spacer_black.gif" width="100%" alt="" /></td> </tr> <tr> <td colspan="3"><img height="2" src="{$ImagesDir}/spacer.gif" width="1" alt="" /></td> </tr> <tr> <td valign="top"> <table cellspacing="0" cellpadding="0" width="100%" border="0"> {if $_userinfo.default_fields.firstname}<tr><td>{$order.firstname}</td></tr>{/if} {if $_userinfo.default_fields.lastname}<tr><td>{$order.lastname}</td></tr>{/if} {if $_userinfo.default_fields.b_address}<tr><td>{$order.b_address}</td></tr>{/if} {if $_userinfo.default_fields.b_address_2}<tr><td>{$order.b_address_2}</td></tr>{/if} {if $_userinfo.default_fields.b_zipcode}<tr><td>{$order.b_zipcode}{if $_userinfo.default_fields.b_city}, {$order.b_city}{/if}</td></tr>{/if} {if $_userinfo.default_fields.b_country}<tr><td>{$order.b_countryname}</td></tr>{/if} </table> </td> <td>&nbsp;</td> <td valign="top"> <table cellspacing="0" cellpadding="0" width="100%" border="0"> {if $_userinfo.default_fields.s_firstname}<tr><td>{$order.s_firstname}</td></tr>{/if} {if $_userinfo.default_fields.s_lastname}<tr><td>{$order.s_lastname}</td></tr>{/if} {if $_userinfo.default_fields.s_address}<tr><td>{$order.s_address}</td></tr>{/if} {if $_userinfo.default_fields.s_address_2}<tr><td>{$order.s_address_2}</td></tr>{/if} {if $_userinfo.default_fields.s_zipcode}<tr><td>{$order.s_zipcode}{if $_userinfo.default_fields.s_city}, {$order.s_city}{/if}</td></tr>{/if} {if $_userinfo.default_fields.s_country}<tr><td>{$order.s_countryname}</td></tr>{/if} </table> </td> </tr> </table>

If you need to change the widths of the invoice address you can change the width values of the top rows:

Code:
<td width="285">&nbsp;</td> <td width="75">&nbsp;</td> <td width="240" height="25"><b>{$lng.lbl_shipping_address}</b></td>

But note, if you increase one width you have to decrease another width with the same amount, else the total width will become too big and won't fit when you print it on paper. I hope you know basic HTML because else you will have a lot of difficulty figuring this out. Good luck!
__________________
www.qualitylamps.eu
X-Cart Gold 4.1.8, PHP 5.2.6, MySQL 5.0.51a, Apache 2.2.9

www.vervangjelamp.nl
X-Cart Gold 4.2.0, PHP 5.2.6, MySQL 5.0.37-standard, Apache/2

Sorry for the weird user name, I registered it by mistake
Reply With Quote
  #8  
Old 08-01-2008, 10:27 PM
 
auc auc is offline
 

Member
  
Join Date: Jul 2007
Posts: 10
 

Default Re: Invoice mailable for envelope with window

retrtrtrytrutru,

Thank you for reply. I need visual editor.

Thank you,

Jeff
__________________
All USA Catalog
X-Cart Gold 4.1.9
Reply With Quote
  #9  
Old 12-15-2011, 08:22 AM
 
btobe btobe is offline
 

Member
  
Join Date: Nov 2011
Posts: 12
 

Default Re: Invoice mailable for envelope with window

I purchased the PDF module and am looking for someone that could do a quick customization so that when I print off the invoices, the addresses show up in a standard double window #9 envelope like this: http://www.staples.com/Staples-9-Standard-Invoice-Double-Window-Security-Tint-Gummed-Envelopes-500-Box/product_266759

Is anyone able to help me with this?
__________________
4.44
XCKL-XWCK-UCZM-CWKF


X-Cart Gold

X-MailChimpIntegration
FacebookTab
X-Janrain Engage integration
X-PDF invoices
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 12:24 PM.

   

 
X-Cart forums © 2001-2020