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

Printing 'Customer Notes' on invoices

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 07-06-2004, 02:44 PM
  thundernugs's Avatar 
thundernugs thundernugs is offline
 

Senior Member
  
Join Date: May 2003
Location: Bend, OR
Posts: 117
 

Default

so, it's not currently possible to pass customer-entered notes to their confirmation e-mail for versions past 3.5.6?

this would seem to result in lots of follow-up phone calls by customers to make sure we received their special requests.


anyone having luck with this?
__________________
X-Cart Gold 4.0.17 & 4.0.18
Linux Server
Hands-On Hosting
http://www.CoreCases.com - Ipod Cases
http://www.InnovativeOutlet.com - Pet Plants and other cool stuff you need
Reply With Quote
  #12  
Old 07-06-2004, 03:52 PM
  caucus's Avatar 
caucus caucus is offline
 

eXpert
  
Join Date: Oct 2003
Location: FLorida U.S.A
Posts: 356
 

Default

Hello Group

I think you can pay X to do it. What is really needed is a seperate section for notes that the people at sales can see.
__________________
Staying To The Right
But Left of Rush

X-cart Current version: 4.4.2
X-cart Current version: 4.4.1
X-cart Version 4.0.14
X-cart Version 4.1.6
Litecomm Version: 2.2.35
Operating System Linux
PHP Version 5.2.14
Apache/2.2.16 (Unix)
MySQL client version: 5.091
Reply With Quote
  #13  
Old 08-31-2004, 02:45 AM
 
Ciao121 Ciao121 is offline
 

Newbie
  
Join Date: Jul 2004
Posts: 3
 

Default

Hi, I'm using ver 4 and it seems not to work for me.
I think that my problem is in the file [x-cart root dir]/skin1/main/history_order.tpl because it's little different and I'm not sure how to make this:
Code:
{if $usertype eq "A"} {$lng.lbl_order_details}: <textarea name=details cols=100 rows=15>{$order.details}</textarea> {/if} {if $usertype ne "C"} {$lng.lbl_order_notes}: <textarea name=notes cols=100 rows=8>{$order.notes}</textarea> {/if}
__________________
Ciao121
Reply With Quote
  #14  
Old 09-01-2004, 02:58 PM
  joshf's Avatar 
joshf joshf is offline
 

Advanced Member
  
Join Date: Jul 2003
Posts: 97
 

Default

Loon, PHPDev: Thanks for the info! This post was extremely helpful...


And a fellow Minnesotan, eh Loon?
__________________
joshf | X-Cart Portfolio
Currently: http://nightowlpapergoods.com | http://pinkolive.com
Reply With Quote
  #15  
Old 09-08-2004, 08:10 PM
 
ylenyon ylenyon is offline
 

Member
  
Join Date: Oct 2003
Posts: 17
 

Default Successfully applied to 3.5.3

thanks very much!
__________________
xcart 4.2
Member since 2003
Reply With Quote
  #16  
Old 12-17-2004, 01:59 PM
 
roblen roblen is offline
 

Senior Member
  
Join Date: Oct 2004
Posts: 114
 

Default This may work

Hello, this looks great. Im having a little trouble with vers 4.06
The functions is slightly diff. I get errors on add of oder using payments of PO. I looked at payments_offline.php
as you can see the function has $extra
Code:
function func_place_order($payment_method, $order_status, $order_details, $extra = array(), $extras = array()) {

where or how can i add teh $order_note var to the function string to prevent errors.
Thanks this looks like a great solution
__________________
X-Cart version 4.1.9
PHP 5.2.13 Details >>
GD bundled (2.0.34 compatible)
MySQL server 5.0.77-log
MySQL client 5.0.77
Web server Apache/2.2
Operation system Linux
Perl not found
XML parser (expat) found
Reply With Quote
  #17  
Old 12-17-2004, 08:38 PM
 
shiehshieh shiehshieh is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 85
 

Default

I'm running 4.0.6 PRO, will this code modification work? Has anyone tried with 4.0.x versions? Thanks in advance.
__________________
Cheers,
Tom
X-Cart v4.1.9 PRO

Boba Tea Direct
"Your source for bubble tea, boba, coffee, tea, chai, and more"
www.bobateadirect.com

Hevla Coffee Co
Freshest roast-to-order low acid coffee
www.hevlacoffeeco.com
Reply With Quote
  #18  
Old 12-22-2004, 01:30 PM
 
roblen roblen is offline
 

Senior Member
  
Join Date: Oct 2004
Posts: 114
 

Default Solved for 406

I solved this for Us using 4.0.6
One step in /include/func.php

1)between flag and details add notes , position does matter
Code:
payment_method, flag, notes, details,
2)at the bottom, add
Code:
'".addslashes($order_details)."'
just before '".addslashes(text_crypt($order_details))."',
Step 2) will add details to notes before it gets encryped. This will populate notes regardles of payment type.
It seems to work for us.

Code:
cut-and-past this code below in place of orig. code # # Insert into orders # db_query("INSERT INTO $sql_tbl[orders] (login, membership, total, giftcert_discount, giftcert_ids, subtotal, shipping_cost, shippingid, tax, taxes_applied, discount, coupon, coupon_discount, date, status, payment_method, flag, notes, details, title, firstname, lastname, company, b_title, b_firstname, b_lastname, b_address, b_city, b_county, b_state, b_country, b_zipcode, s_title, s_firstname, s_lastname, s_address, s_city, s_county, s_state, s_country, s_zipcode, phone, fax, email, url, clickid, extra) VALUES ('".addslashes($userinfo["login"])."', '".addslashes($userinfo["membership"])."', '$current_order[total_cost]', '$giftcert_discount', '".@$giftcert_str."', '$current_order[subtotal]','$current_order[shipping_cost]', '$cart[shippingid]', '$current_order[tax_cost]', '$taxes_applied', '$current_order[discount]', '".addslashes(@$current_order["coupon"])."', '$current_order[coupon_discount]', '".time()."', '$order_status', '".addslashes($payment_method)."', 'N', '".addslashes($order_details)."', '".addslashes(text_crypt($order_details))."', '".addslashes($userinfo["title"])."', '".addslashes($userinfo["firstname"])."', '".addslashes($userinfo["lastname"])."', '".addslashes($userinfo["company"])."', '".addslashes($userinfo["b_title"])."', '".addslashes($userinfo["b_firstname"])."', '".addslashes($userinfo["b_lastname"])."', '".addslashes($userinfo["b_address"])."', '".addslashes($userinfo["b_city"])."', '".addslashes(@$userinfo["b_county"])."', '".addslashes($userinfo["b_state"])."', '".addslashes($userinfo["b_country"])."', '".addslashes($userinfo["b_zipcode"])."', '".addslashes($userinfo["s_title"])."', '".addslashes($userinfo["s_firstname"])."', '".addslashes($userinfo["s_lastname"])."', '".addslashes($userinfo["s_address"])."', '".addslashes($userinfo["s_city"])."', '".addslashes(@$userinfo["s_county"])."', '".addslashes($userinfo["s_state"])."', '".addslashes($userinfo["s_country"])."', '".addslashes($userinfo["s_zipcode"])."', '".addslashes($userinfo["phone"])."', '".addslashes($userinfo["fax"])."', '$userinfo[email]', '".addslashes($userinfo["url"])."', '$partner_clickid', '".addslashes(serialize($_extra))."')");
__________________
X-Cart version 4.1.9
PHP 5.2.13 Details >>
GD bundled (2.0.34 compatible)
MySQL server 5.0.77-log
MySQL client 5.0.77
Web server Apache/2.2
Operation system Linux
Perl not found
XML parser (expat) found
Reply With Quote
  #19  
Old 12-22-2004, 04:44 PM
  caucus's Avatar 
caucus caucus is offline
 

eXpert
  
Join Date: Oct 2003
Location: FLorida U.S.A
Posts: 356
 

Default

Hello Great One

I just tried your code in version 4.08 it worked on a phone order. I have to setup an account before I try the CC version but it sure would be nice if it worked.

I keep on telling Xcart the person that had the logic of hiding notes to the orders should be sent to Siberia. They said Siberia is pretty nice now. Thre is no such thing as the Russian front.
__________________
Staying To The Right
But Left of Rush

X-cart Current version: 4.4.2
X-cart Current version: 4.4.1
X-cart Version 4.0.14
X-cart Version 4.1.6
Litecomm Version: 2.2.35
Operating System Linux
PHP Version 5.2.14
Apache/2.2.16 (Unix)
MySQL client version: 5.091
Reply With Quote
  #20  
Old 02-01-2005, 03:21 PM
 
matt.currie matt.currie is offline
 

Newbie
  
Join Date: May 2004
Location: Nanaimo, B.C. Canada
Posts: 4
 

Default

Loon,


It wasn't an overly difficult mod, but your efforts have surely saved us a lot of poking around. Just a note to others, if you use Paypal like I do you will have to edit the payment_paypal.php in a similar fashion as payment_cc.php. I use Crystal Reports to generate a really nice invoice, and I even made a special field at the top of the invoice say "SEE SPECIAL INSTRUCTIONS" since they are present at the bottom, and when folded over are hard to see. Excellent mod guys! Thanks.


Matthew Currie
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 07:35 AM.

   

 
X-Cart forums © 2001-2020