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
  #41  
Old 02-09-2006, 10:46 AM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default

Quote:
Originally Posted by 2coolbaby
It would be nice if someone posted complete instructions for getting the customer comments in the order invoice which is emailed to both customer and admin. If they leave me comments I want to see them, it makes sense that they would also see their comments in the invoice.
This post should do exactly that
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #42  
Old 02-09-2006, 10:51 AM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default

Quote:
Originally Posted by sundance
I am referring back to your July 2nd post and the very first point
Quote:
1. I used my previous instructions posted here for adding additional fields to the checkout, calling my new field Extra_Notes.
has confused me already (it has been a long day, in my defence) - are you referring in point 1. to your post of the 6th February 2005 that appears in this topic?
I updated step 1 to include a link to the previous post. I should have done that originally.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #43  
Old 02-28-2006, 09:16 AM
  2coolbaby's Avatar 
2coolbaby 2coolbaby is offline
 

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

Default

Thanks Cheri. I will let you know if I get it working. That post seems simpler than many of the earlier solutions posted. That is why I was getting confused. Too many posts with pathces and different methods. That will confuse someone badly... especially those of us who are easily confused
__________________
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
  #44  
Old 06-28-2006, 12:39 AM
 
whsu716 whsu716 is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 168
 

Default

Hello!

I can't seem to find reg_numbers using version 4.0.18.

Can anyone who installed this help me out?

Thanks!
Weber
__________________
...
v 4.0.18; 4.1
Reply With Quote
  #45  
Old 06-28-2006, 09:34 AM
  2coolbaby's Avatar 
2coolbaby 2coolbaby is offline
 

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

Default

I never could figure this mod out!
__________________
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
  #46  
Old 08-03-2006, 01:22 PM
 
Lucent88 Lucent88 is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 147
 

Default

I tried many many times, but still no luck. I can see the text box in admin, but when I type in information for customer, it doesn't update anything to the database. This is the exact steps I took, can someone point out where did it go wrong?

1. include/func.php - add new field (order_comment) to function func_place_order
Find
Code:
# # This function creates order entry in orders table # function func_place_order($payment_method, $order_status, $order_details, $extra = array(), $extras = array()) {

replace with
Code:
# # This function creates order entry in orders table # function func_place_order($payment_method, $order_status, $order_details, $order_comment, $extra = array(), $extras = array()) {


2. include/func.php (same file as above)

Find
Code:
if(!empty($extras)) {

Replace with

Code:
$extras['Order_Comment'] = $order_comment; if(!empty($extras)) {

This is the part is confuses me a little bit, there are 2 areas that has the code "if(!empty($extras)) {" .... in the description it says the one in the same function func_place_order, but I cant seems to find out which one it is, so I basically add the modificated code to both.


3. payment/payment_cc.php & payment/payment_offline.php

Find
Code:
$order_details = "";

Replace with
Code:
$order_details = ""; $order_comment = $Order_Comment;


4. payment/payment_cc.php & payment/payment_offline.php (same file as above)

Find (2 areas in payment_cc.php & 1 area in payment_offline.php)
Code:
$orderids = func_place_order

Add the field ($order_comment) after $order_details. like the example

Code:
$orderids = func_place_order(...................., $order_details, $order_comment);


5. skin1/customer/main/checkout_notes.tpl

Find
Code:
<TEXTAREA cols="45" rows="6" name="Customer_Notes"></TEXTAREA>

Replace with
Code:
<TEXTAREA cols="45" rows="6" name="Order_Comment"></TEXTAREA>


6. Create new file named it "modifier.sslash.php" save it to Smarty-X.X.X/plugins/

Code:
<?php function smarty_modifier_sslash($string) { return stripslashes($string); } ?>


7. skin1/mail/html/order_invoice.tpl

Add anywhere
Code:
{$order.extra.Order_Comment|replace:"\n":" "|sslash}


8. skin1/main/history_order.tpl

Add anywhere
Code:
<textarea name="Order_Comment" cols="60" rows="5">{$order.extra.Order_Comment|sslash}</textarea>

9. admin/order.php - Make admin able to edit customer's comment

Code:
func_header_location("order.php?orderid=$orderid&mode=status_changed"); }

replace with

Code:
$order_comment = addslashes($Order_Comment); db_query("update $sql_tbl[order_extras] set value='$order_comment' where orderid=$orderid and khash='order_comment'"); func_header_location("order.php?orderid=$orderid&mode=status_changed"); }

10. For AOM, skin1/modules/Advanced_Order_Management/preview.tpl

Code:
<textarea name="Order_Comment" cols="60" rows="5" readonly>{$order.extra.Order_Comment}</textarea>


I'm on v4.0.17.
__________________
X-Cart Gold 4.0.17
Reply With Quote
  #47  
Old 08-08-2006, 01:06 PM
 
Lucent88 Lucent88 is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 147
 

Default

Ok, Actually if you follow the steps I post above cherie's mod should work.

except one condition, and this is also the reason why I thought it wasn't working.

if customer never enter any information for order note to begin with, store owner will not be able to add any information to it. Store owner can only edit the information if customer input any.

Thanks to cherie for the super mod!!
__________________
X-Cart Gold 4.0.17
Reply With Quote
  #48  
Old 12-14-2006, 09:33 AM
 
fractalspin fractalspin is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 72
 

Default Re: Printing 'Customer Notes' on invoices

I am running 4.0.17.

what's the latest version of this mod, and does it work with 4.0.17?
__________________
http://www.fractalspin.com
nerdy jewelry, geekcessories, bags, tshirts and other neat stuff

Xcart Version: 4.0.17, PHP: 4.3.11, MySQL server: 4.1.13-standard-log
Reply With Quote
  #49  
Old 12-14-2006, 09:40 AM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Printing 'Customer Notes' on invoices

I don't think it changes up to 4.0.19. It's unnecessary in 4.1.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #50  
Old 04-03-2007, 02:10 PM
 
dManager dManager is offline
 

Advanced Member
  
Join Date: Jan 2005
Location: Erie, Pennsylvania
Posts: 63
 

Default Re: Printing 'Customer Notes' on invoices

Has anyone gotten this to work with Gift Certificates and also PayPal ?
__________________
Rich
___________________________
X-Cart version 4.2.2 Gold
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:57 AM.

   

 
X-Cart forums © 2001-2020