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

Add a comments section on orders that customer CAN see??

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-07-2004, 02:20 PM
 
jamtots jamtots is offline
 

Advanced Member
  
Join Date: Sep 2004
Posts: 43
 

Default Add a comments section on orders that customer CAN see??

Is there a way to add a comments section that the customer CAN see on their orders? We have that feature in our current cart (not x-cart) and use it ALL the time so that we can put the status of the order, the tracking number or any other notes that we want the customer to be able to see-is there a way to do that with x-cart?? We only need one of the private comment sections as we don't have other people entering products in our cart so if we could convert one of those into a section that customers COULD see, that would be fabulous!

Thanks for any ideas!!
Holly
__________________
Holly Simard--X-Cart Newbie!!
JamTots Online Baby Store
http://www.jamtots.com
X-Cart Gold 4.0.4
Windows Server
Reply With Quote
  #2  
Old 12-24-2004, 09:17 AM
  CC's Avatar 
CC CC is offline
 

eXpert
  
Join Date: Jun 2004
Posts: 349
 

Default

This really is needed to be honest.

The customer should be able to login and see notes on the order left if required.

This is something on our list to be done on our site, but we havent got to it yet. It REALLY should be in the standard code.
__________________
XC 4.2 inc (unofficial) patch release.
Reply With Quote
  #3  
Old 01-28-2005, 07:03 AM
 
delsurf delsurf is offline
 

Advanced Member
  
Join Date: Feb 2004
Posts: 32
 

Default

I have a fix for this if anyone is interested. I thought it would be hard, but it's actually pretty easy.

in /skin1/main/history_order.tpl:

change the original code (you'll have to find it, I just commented it out):

to

Code:
{*if $usertype ne "C"*} {$lng.lbl_order_notes}: <TEXTAREA name="notes" cols="60" rows="5" {if $usertype eq "C"}READONLY{/if}>{$order.notes}</TEXTAREA> {*/if*}

Then it will show up on the Customer's Order. To change "Customer Notes: (not visible to customer)" just start webmaster mode, look up the order, click the title to change the label.

Hope that's somewhat clear...
Reply With Quote
  #4  
Old 01-28-2005, 08:15 AM
  CC's Avatar 
CC CC is offline
 

eXpert
  
Join Date: Jun 2004
Posts: 349
 

Default

Yeh sorry, should have come back here and said.
We did it this way, so the field is readonly to customer and writable to Admin:

Code:
{if $usertype eq "C"} Order Notes: <TEXTAREA name="notes" cols="60" rows="5" readonly>{$order.notes}</TEXTAREA> {else} {if $usertype ne "C"} {$lng.lbl_order_notes}: <TEXTAREA name="notes" cols="60" rows="5">{$order.notes}</TEXTAREA> {/if} {/if}
__________________
XC 4.2 inc (unofficial) patch release.
Reply With Quote
  #5  
Old 01-28-2005, 08:18 AM
  CC's Avatar 
CC CC is offline
 

eXpert
  
Join Date: Jun 2004
Posts: 349
 

Default

Oh forgot to say, havent looked at it yet, but we are also going to link these same notes to the emails sent to the customer, so they dont have to login to see them.
__________________
XC 4.2 inc (unofficial) patch release.
Reply With Quote
  #6  
Old 01-28-2005, 08:34 AM
 
delsurf delsurf is offline
 

Advanced Member
  
Join Date: Feb 2004
Posts: 32
 

Default

Yea, I made mine readonly for the customer too... at the end of the textarea box:

Code:
<TEXTAREA name="notes" cols="60" rows="5" {if $usertype eq "C"}READONLY{/if}>

less code

good idea about the emails too.. post back if you get to it...[/quote]
Reply With Quote
  #7  
Old 01-28-2005, 08:36 AM
  CC's Avatar 
CC CC is offline
 

eXpert
  
Join Date: Jun 2004
Posts: 349
 

Default

Oh sorry, didnt see that on yours.

I will post back for sure.
__________________
XC 4.2 inc (unofficial) patch release.
Reply With Quote
  #8  
Old 03-25-2005, 08:02 AM
  hzellers's Avatar 
hzellers hzellers is offline
 

Senior Member
  
Join Date: Mar 2003
Location: Cortland, New York
Posts: 106
 

Default

Mod works great! Did you end up adding it to their emails? Just curious as to how.

Thanks!
Reply With Quote
  #9  
Old 06-03-2005, 02:45 PM
  tcart3512's Avatar 
tcart3512 tcart3512 is offline
 

Newbie
  
Join Date: Mar 2005
Posts: 5
 

Default

After using delsurf's mod, I added this code to

/mail/html/order_invoice.tpl

Adds the comment section to the customers email only if there are comments to send...

Code:
{if $order.notes} <td> <SPAN>{$lng.lbl_order_notes}: <textarea name="notes" cols="60" rows="5" {if $usertype eq "c"}readonly{/if}>{$order.notes}</textarea> </SPAN></td> {/if}

Hope this shows up correctly on forum, I'm new...

Add this to where you want the comments to show up on the email...
Mine was around line 126...
Hope this helps
__________________
Version 4.0.12
Reply With Quote
  #10  
Old 06-03-2005, 09:15 PM
 
jignacio jignacio is offline
 

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

Default

Simply and Great !
It's working OK.
Thanks.
__________________
Josц╘ Ignacio
X-Cart Gold 4.0.13 (UNIX)
cc: 2checkout.com

www.uruexpress.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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:36 PM.

   

 
X-Cart forums © 2001-2020