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

Improved Invoice Layout

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #21  
Old 06-22-2009, 03:53 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Improved Invoice Layout

Quote:
Originally Posted by jaydee
Here's my redesigned invoice for X-Cart Orders. The default one felt crowded and disorganised so I've created a layout that promotes the important information and cuts down on useless text.

Attachment 1158

This was developed on X-Cart 4.1.9. I can't speak for older/newer versions.

Known Issues:
- May not look 'right' if your company logo is taller than it is wide.
- I've redesigned the layout for the information I choose to have on the invoice. If you show CC info or NetBanx references, you'll have to reformat/redesign these parts yourself.
- This *may* rely on some of my CSS mods, but most styles are inline.
- Language variables not used in footer/customer details.

Instructions:

1. Replace skin1/mail/html/order_invoice.tpl with the file attached (BACKUP THE ORIGINAL).

2. Replace skin1/mail/html/order_data.tpl with the file attached (BACKUP THE ORIGINAL).

3. In line 11 of order_invoice.tpl, replace <img src="/skin1/images/xlogo.gif" alt="" height="67" width="244" /> with the path/size/alt of your company logo.

Done!

Now View an old order or make a test one and see what you think

James.

Code:
Download these files: Attachment 1156 Attachment 1157

Updates:
- You need to be using HTML email for this to work. General Settings > Email Options > HTML mail.
- You may need to clear your templates cache.
- Change 'vertical-align' tags to 'valign'. Laziness on my part

Hi,
Is it possible to add brand's/manufacturer's logo in mail/html/order_invoice.tpl at the bottom?

Thanks to all.
__________________
4.6.1 Platinum


Reply With Quote
  #22  
Old 06-30-2009, 12:06 AM
 
chris.barber chris.barber is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 74
 

Default Re: Improved Invoice Layout

You can add pretty much whatever you want it will work much the same way as putting images in the confirmation emails.

I use a bunch of if statements to include images for different carriers/postal services within my order_complete email tpl so that if the tracking number contains a certain string it includes the logo of that shipping company.

Here's an example which is looking for JJD in the tracking number, all my DHL tracking numbers start with this so it's easy to detect.

{if strpos($order.tracking, 'JJD') === 0}
<p />
Your order has been collected by
<p /><img border="0" src="[insert your domain and/or path to your image folder here]dhl.gif" width="155" height="22">

I have removed my domain name and image path you should substitute your own, but you are just pointing to the image.

I have about 4 different if statements for this so as long as you can identify a unique field and identifier then you should be able to do the same, e.g. if manufacturer equals etc.

Or if you just want the images of a range of manufacturers to appear then simply place ><img border="0" src="[insert your domain and/or path to your image folder here]dhl.gif" width="155" height="22"> wherever you want the image to show, if you want a bunch of manufacturers images to appear then create a collage of the images and save as a single image and link to that, remember to adjust the height and width to the correct sizes.

I planned but have not got round to it yet to do this for adverts at the bottom of my packing slips as generally there is atleast 2 inches of space at the bottom of them when printed which is a waste of valuable paper that could be filled with a special offer voucher or simply deal of the week.

The best bet is to copy the template and then play around with it using different things you want to acheive, then when you are happy with the result copy this over the original template (always keep a backup).
__________________
Chris Barber
Version 4.1.9
MOD - BCSE Shipping Estimator
MOD - Shopzilla Feed
MOD - Price Match with Captcha
MOD - Links Manager 2008
MOD - One Page Checkout
MOD - Sitemap
Reply With Quote
  #23  
Old 06-30-2009, 12:40 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Improved Invoice Layout

Thanks Chris Barber for your suggestion. Actually I want to display each different manufacturer's logo in each different invoice.Is it possible? If possible how? can You help me?

Thanks to all.
__________________
4.6.1 Platinum


Reply With Quote
  #24  
Old 06-30-2009, 01:09 AM
 
chris.barber chris.barber is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 74
 

Default Re: Improved Invoice Layout

It would take some working out as long as the manufacturer can be associated with the order, but I can't help you work it out at present as it may need something more complex than an if statement, I'm not sure the manufacturer of a product on your order is stored with the order, so you would have to do a look up for the data before you could include it, but it is possible.
__________________
Chris Barber
Version 4.1.9
MOD - BCSE Shipping Estimator
MOD - Shopzilla Feed
MOD - Price Match with Captcha
MOD - Links Manager 2008
MOD - One Page Checkout
MOD - Sitemap
Reply With Quote
  #25  
Old 06-30-2009, 02:18 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Improved Invoice Layout

Hi,
Chris Barber I have some problem in /customer/main/order_message.tpl to link on third party server for bannerdisplay.
Here is the code<img height="1" width="3" src="https://www.xyz.com/x/?x=r&amp;h=54128&amp;o={$orderids}&amp;g=681836359 726&amp;s=0.00&amp;q=1"/>Here I cant get order total ie s=0.00.What is the exact value of s? can you help me?Thank you.
__________________
4.6.1 Platinum


Reply With Quote
  #26  
Old 11-18-2009, 01:55 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Improved Invoice Layout

Hi chris.barber is it possible to call one image below customer notes in /mail/html/order invoice.tpl or in signature.tpl? Any help!!!
__________________
4.6.1 Platinum


Reply With Quote
  #27  
Old 01-06-2014, 06:29 AM
 
identity identity is offline
 

Member
  
Join Date: Sep 2006
Posts: 11
 

Default Re: Improved Invoice Layout

I love this improved invoice and appreciate the time it took to create it and share!

I am using this template modification in 4.4 and it is not pulling the customer info such as billing address and shipping address. I've been trying to compare the original with the improved but don't see where I am missing it.

Any ideas?
__________________
Patrick
X-Cart Gold, Ver. 4.1.11
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:01 AM.

   

 
X-Cart forums © 2001-2020