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

Simple & Quick - add 'Customer Notes' to Invoice

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 07-12-2006, 06:28 AM
 
whsu716 whsu716 is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 168
 

Default Simple & Quick - add 'Customer Notes' to Invoice

Hey all

Getting some help from some GeckoDay and SamD, here is a simple way to add customer notes onto the invoice:


Just add the following to skin1/mail/html/order_invoice.html:

Quote:
<TR>
<TD colspan="3">
{assign var="tab" value="Cardholder's name:"|@explode:$order.details}
{$tab[0]}
</TD>
</TR>

Voila!

This is tested only on 4.0.18.

- Weber
__________________
...
v 4.0.18; 4.1
Reply With Quote
  #2  
Old 07-12-2006, 10:12 AM
 
balinor balinor is offline
 

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

Default

Nice, but that puts the cc info on there as well
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-12-2006, 10:52 AM
 
whsu716 whsu716 is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 168
 

Default

Quote:
Originally Posted by balinor
Nice, but that puts the cc info on there as well

Hmm, not for me.

The code here:
Quote:
{assign var="tab" value="Cardholder's name:"|@explode:$order.details}

takes care of that problem. It strips out everything starting at the string "Cardholder's name:" .

Unless in your payment file "Cardholder's name" is not present. ?
__________________
...
v 4.0.18; 4.1
Reply With Quote
  #4  
Old 07-12-2006, 10:54 AM
 
balinor balinor is offline
 

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

Default

Just tested it on 4.0.18, and all the credit card confirmation data shows up from the payment gateway.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 07-12-2006, 08:02 PM
 
whsu716 whsu716 is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 168
 

Default

hmmm - could just be different wording, b/c mine seems to be working ifne.

I'll look into it some more for you.
__________________
...
v 4.0.18; 4.1
Reply With Quote
  #6  
Old 07-13-2006, 03:20 AM
 
balinor balinor is offline
 

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

Default

Credit card storage is turned off, so there is no 'Cardholders name' present. Would need to start the block at the first line of the authorization info I suppose.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 08-21-2006, 06:00 PM
  2coolbaby's Avatar 
2coolbaby 2coolbaby is offline
 

eXpert
  
Join Date: Sep 2004
Location: TN moving to FL
Posts: 265
 

Default Re: Simple & Quick - add 'Customer Notes' to Invoice

Does this work if Credit Card info storage is turned off? If not any ideas to get this to work? This is one huge glaring flaw in x-cart. I do not look at each invoice in my admin panel. I get a receipt to look at. The notes should be in that receipt.
__________________
Mary Lee
-------------------
Dinner and a Murder Mystery Games
http://www.dinnerandamurder.com

x-cart version 4.7.5 / Mac OS 10.10.5 and Windows 8/10 sometimes - Ideal Responsive Template
Reply With Quote
  #8  
Old 08-24-2006, 07:25 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default Re: Simple & Quick - add 'Customer Notes' to Invoice

its better to add a new row to the orders table and store the notes seperatly

been done in custom mods forum a few times
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #9  
Old 09-12-2007, 02:13 PM
 
robertswww robertswww is offline
 

X-Adept
  
Join Date: Jul 2003
Posts: 586
 

Default Re: Simple & Quick - add 'Customer Notes' to Invoice

Quote:
Originally Posted by shan
its better to add a new row to the orders table and store the notes seperatly

been done in custom mods forum a few times
Here's the link to the Custom MOD for separate Customer Notes that you can access from any template... I just posted step-by-step code for X-cart 4.0.19:

http://forum.x-cart.com/showthread.php?t=6888
__________________
X-cart 4.1.10
Reply With Quote
  #10  
Old 09-12-2007, 03:10 PM
 
balinor balinor is offline
 

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

Default Re: Simple & Quick - add 'Customer Notes' to Invoice

Not necessary in 4.1.x
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 03:20 PM.

   

 
X-Cart forums © 2001-2020