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

How to change Order Confirmation message?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-10-2009, 11:12 AM
 
rajconti rajconti is offline
 

Member
  
Join Date: Apr 2009
Posts: 15
 

Default How to change Order Confirmation message?

I need to customize this message that appears above final Invoice upon submission . which file to edit .


"Confirmation
http://www.stock-supplies.com/kina/skin1/images/spacer.gif Congratulations! Your order has been successfully placed.

Thank you for using our store. An order notification has been sent to your e-mail address.
Your order will be processed according to the delivery details"
__________________
X cart 4.1.5
Reply With Quote
  #2  
Old 04-10-2009, 11:41 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: How to change Order Confirmation message?

Change this language variables:

txt_order_placed
txt_order_placed_msg
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
dave01978 (10-14-2012)
  #3  
Old 01-24-2011, 08:24 AM
 
drusa17 drusa17 is offline
 

Newbie
  
Join Date: Jan 2011
Posts: 2
 

Default Re: How to change Order Confirmation message?

And where do I find / edit the language variable "txt_order_placed"

I looked all over but couldn't find it...

Thanks!
__________________
X-Cart Gold license 4.4.2
Reply With Quote
  #4  
Old 01-24-2011, 09:52 AM
 
balinor balinor is offline
 

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

Default Re: How to change Order Confirmation message?

Under 'Languages' in your admin.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote

The following user thanks balinor for this useful post:
dave01978 (10-14-2012)
  #5  
Old 01-24-2011, 01:07 PM
 
drusa17 drusa17 is offline
 

Newbie
  
Join Date: Jan 2011
Posts: 2
 

Default Re: How to change Order Confirmation message?

Thank you so much!
__________________
X-Cart Gold license 4.4.2
Reply With Quote
  #6  
Old 07-23-2011, 09:28 AM
 
welly welly is offline
 

eXpert
  
Join Date: Mar 2011
Location: UK
Posts: 209
 

Default Re: How to change Order Confirmation message?

On a related note, is there a way to display confirmation message that is dependent on the customer's method of payment?

For example, my customers can pay electronically, or by cheque, or they can call in after placing the order.

I want one message for successful electronic payment (Thank you for your order, yada yada yada), and another message for cheque payment (What you need to do now), and another for payment by phone (Please call us with your payment details).

My guess is that the information I need (payment method), which is displayed in the 'receipt', isn't available early enough in the page loading sequence to make it useful.

Does anyone know different?

Many thanks

Welly
__________________
X-Cart Business 5.3.6
Various add-ons

www.traininglines.co.uk
Reply With Quote
  #7  
Old 07-23-2011, 04:48 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: How to change Order Confirmation message?

The info is available there

/skin/common_files/customer/main/order_message.tpl

You have to do something like

{foreach from=$orders item=order}
{if $order.paymentid eq "xxx"}
show message1
{elseif $order.paymentid eq "yyy"}
show message2
{else}
show message3
{/if}
{/foreach}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #8  
Old 07-24-2011, 10:49 AM
 
Regs Regs is offline
 

Senior Member
  
Join Date: Apr 2003
Location: Vancouver BC
Posts: 134
 

Default Re: How to change Order Confirmation message?

Hey Welly,

I wrote something up on this that I've been using here:

http://forum.x-cart.com/showpost.php?p=261470&postcount=6

Cheers,

Regs.
__________________
x-cart 4.2.3 & 4.6.0
Reply With Quote
  #9  
Old 07-25-2011, 01:45 AM
 
welly welly is offline
 

eXpert
  
Join Date: Mar 2011
Location: UK
Posts: 209
 

Default Re: How to change Order Confirmation message?

I'm not sure if it's a version thing (4.4.2), but I struggled to get that to work. I think the variable in question is payment_method, but the 'foreach' part didn't generate anything useful.

It did point me in the right direction though, and I eventually settled on this:

{if $orders[0].order.payment_method eq "Cheque"}
{$lng.txt_order_placed_msg_Cheque}
{elseif $orders[0].order.payment_method eq "RBS WorldPay"}
{$lng.txt_order_placed_msg_WorldPay}
{elseif $orders[0].order.payment_method eq "Contact us"}
{$lng.txt_order_placed_msg_Contact_Us}
{elseif $orders[0].order.payment_method eq "Gift Certificate"}
{$lng.txt_order_placed_msg_Gift_Certificate}
{else}
Your order may not have been processed correctly. Please accept our apologies and contact us with your order number.
{/if}

The '$lng.txt_order_placed_msg_Cheque' and others I created with the appropriate instructional message.

The last bit was laziness on my part - I should (and probably will) replace that with a consistent language entry too.

Thanks for the pointer Steve. It got me looking in the right place.

Welly
__________________
X-Cart Business 5.3.6
Various add-ons

www.traininglines.co.uk
Reply With Quote
  #10  
Old 07-25-2011, 02:08 AM
 
welly welly is offline
 

eXpert
  
Join Date: Mar 2011
Location: UK
Posts: 209
 

Default Re: How to change Order Confirmation message?

Hi Regs,

I sure wish I'd seen your reply earlier!

A bit more complicated than I thought I was looking for, but I can see exactly what is going on. Now I've seen it, I may actually modify mine along the same lines in future...

Many thanks

Welly
__________________
X-Cart Business 5.3.6
Various add-ons

www.traininglines.co.uk
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 11:26 AM.

   

 
X-Cart forums © 2001-2020