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

New Custom Order Invoice

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #71  
Old 05-03-2004, 07:33 AM
 
jignacio jignacio is offline
 

Advanced Member
  
Join Date: Aug 2003
Location: URUGUAY
Posts: 79
 

Default xcart_invoice for 3.4.14 version

Someone has modified xcart_invoice for 3.4.14 version?

Many Thanks.

Josц╘ Williman
Reply With Quote
  #72  
Old 05-03-2004, 08:02 AM
 
jeremye jeremye is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Philadelphia, PA
Posts: 158
 

Default

Josц╘,

I am running 3.4.14 and I didn't have to modify anything to get it running. You should be fine.

Jeremy
__________________
Jeremy
X-Cart Gold v3.4.14 [Linux/Apache]
Heavily Modded
Reply With Quote
  #73  
Old 05-03-2004, 08:04 AM
 
jeremye jeremye is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Philadelphia, PA
Posts: 158
 

Default

I made a few customizations to this after I noticed that this custom order invoice does not display discounts and/or coupon code (gift certificate) discounts. In /skin1/orders/invoice.tpl, I added:

Code:
{if $order.discount gt 0} <tr> <td width="600" height="1" colspan="5" bgcolor="#E1E1E1"> <p align="right" style="margin-right: 5"><font size="2"> Discount:</font></td> <td width="92" align="left" height="1" bgcolor="#E1E1E1"> <font size="2">{include file="currency.tpl" value=$order.discount}</font></td> <td width="314" align="center" height="1"></td> </tr> {/if} {if $order.coupon_discount gt 0} <tr> <td width="600" height="1" colspan="5" bgcolor="#E1E1E1"> <p align="right" style="margin-right: 5"><font size="2"> Gift Cert.:</font></td> <td width="92" align="left" height="1" bgcolor="#E1E1E1"> <font size="2">{include file="currency.tpl" value=$order.coupon_discount}</font></td> <td width="314" align="center" height="1"></td> </tr> {/if}

Put that immediately before:

Code:
<tr> <td width="600" height="1" colspan="5" bgcolor="#E1E1E1"> <p align="right" style="margin-right: 5"><font size="2"> Shipping:</font></td> <td width="92" align="left" height="1" bgcolor="#E1E1E1"> <font size="2">{include file="currency.tpl" value=$order.shipping_cost}</font></td> <td width="314" align="center" height="1"></td> </tr>

That will only show the discount or gift certificate if one exists. It tested fine for me.

Jeremy
__________________
Jeremy
X-Cart Gold v3.4.14 [Linux/Apache]
Heavily Modded
Reply With Quote
  #74  
Old 05-03-2004, 08:55 AM
 
jignacio jignacio is offline
 

Advanced Member
  
Join Date: Aug 2003
Location: URUGUAY
Posts: 79
 

Default

Many thanks jeremye.

All the best.

Josц╘

----------------------------
X-Cart 3.4.14 LIVE
Reply With Quote
  #75  
Old 05-12-2004, 07:50 AM
  ETInteractive.com's Avatar 
ETInteractive.com ETInteractive.com is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 747
 

Default

Quote:
Originally Posted by preston
Quote:
Anybody know how to to get it to call a different set of templates when i click the 'print invoice' button so i can still keep my emails as plain text?"

This works with 3.5.4 and should work with 3.5.5


Make a copy of the original /skin1/mail/order_invoice.tpl and the /skin1/mail/order_data.tpl. Rename them to order_invoice_email.tpl and order_data_email.tpl.

In the order_invoice_email.tpl make this change the line near to bottom of the file.
Quote:
Change the line
{include file="mail/order_data.tpl"}

to

{include file="mail/order_data_email.tpl"}

Next edit the skin1/mail/order_notification.tpl as follows.

Quote:
Change the line
{include file="mail/order_invoice.tpl"}

to

{include file="mail/order_invoice_email.tpl"}

Place all these files in the skin1/mail folder and you should be good to go.

I'm assuming if i keep the files as is, the store will display TEXT invoices, and if i add the new files and rename them to file_email...the emailed invoice would be html based.??

just doing the opposite of what you posted above.
__________________
ETInteractive.com
X-Cart 3.5.x
Reply With Quote
  #76  
Old 05-25-2004, 05:29 PM
  ETInteractive.com's Avatar 
ETInteractive.com ETInteractive.com is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 747
 

Default

I set HTML mail option On.

I created "order_data_email.tpl" and "order_invoice_email.tpl"

put htem in /mail/html

I also edited order_notification.tpl to Call "order_invoice_email.tpl"

but when i get the order, its still using the Text based order_data.


What am i missing???????
__________________
ETInteractive.com
X-Cart 3.5.x
Reply With Quote
  #77  
Old 05-25-2004, 08:21 PM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default

Man... I just read this entire soap opera... I mean thread. How in the world did I miss this one!

Great mods guys I appreciate the hard work !
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
  #78  
Old 06-06-2004, 03:07 PM
 
gardel gardel is offline
 

Member
  
Join Date: May 2004
Location: San Francisco
Posts: 20
 

Default

With a couple of very small tweaks (primarily to fit my vertical logo), this little hack works quite well.


Except ...

When someone makes a purchase and the invoice is presented on the page, the invoice breaks the page (way too wide) and it all looks horrendous.

Ideally, I would like to present the invoice after purchase exactly the way it was in the default install, but to email and print the invoice with the custom hack. The hack is installed, I just want the Order Processed page to go back to the original format.

Any pointers where to look?
Reply With Quote
  #79  
Old 06-07-2004, 06:30 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default

This hack is great except I think I've buggered it up a bit . I downloaded the 3.5.4 version of this hack, but before uploading the modified order_invoice.tpl and the order_data.tpl, I followed preston's fix for sending plain text email using copies of the existing templates (as I want to keep that). The Order invoice now comes out fine on screen as I would expect, yet I'm still getting html formatted email. HTML email is turned off FYI!

All I did was:

Quote:
Make a copy of the original /skin1/mail/order_invoice.tpl and the /skin1/mail/order_data.tpl. Rename them to order_invoice_email.tpl and order_data_email.tpl.

In the order_invoice_email.tpl make this change the line near to bottom of the file.
Quote:
Change the line
{include file="mail/order_data.tpl"}

to

{include file="mail/order_data_email.tpl"}


Next edit the skin1/mail/order_notification.tpl as follows.

Quote:
Change the line
{include file="mail/order_invoice.tpl"}

to

{include file="mail/order_invoice_email.tpl"}


Place all these files in the skin1/mail folder and you should be good to go.

..before uploading the two replacement 3.5.4 invoice mod files.

Any ideas where I might have botched up?

Thanks

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote
  #80  
Old 06-08-2004, 02:48 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default

OK, I hadn't given the email templates a .tpl extension . It works now apart from the "Order Receipt" email is in html...I'll have to look further into this.....

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 10:55 PM.

   

 
X-Cart forums © 2001-2020