X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Can I do this? (https://forum.x-cart.com/showthread.php?t=2614)

rockman 05-08-2003 01:12 PM

Can I do this?
 
In my order confirmation I would like to indicate to the customer what the total order for his payment was. I have this text:

Your credit card has been charged [ordertotal] for this order.


[ordertotal] is my place holder for now.

Am I am to simply exhange my placeholder with this variable {$cart.total_cost} to have the cart total appear in the confirmation template? or is this more involved than I think?

thanks
r

shan 05-08-2003 01:53 PM

try and add this in its place

Code:

{include file="currency.tpl" value=$order.total}

rockman 05-08-2003 02:07 PM

will do, thank you

rockman 05-08-2003 02:13 PM

Hi Shan,

I added that to the Eng lang file and it would not pull any price from the cart. Should I have placed this within the .tpl instead.

Cart returned:

Congratulations! Your order was successfully created.

Your credit card has been charged {include file="currency.tpl" value=$order.total} for this order.
Your credit card bill will show a transaction from Ongaro Outdoors Ltd.
If you have any questions about your order, you can:
Call us at 1.800.465.6227
Visit our website at Outfitterstore.com
E-mail our sales department.

shan 05-08-2003 02:17 PM

sorry , yeh, drop it in the tpl

rockman 05-08-2003 02:23 PM

Thanks

I think i knew that but I was not paying attention to what you were telling me.

On the other hand it appears this might not work as I want it to work. I have PayPal, Phone Orders and Purchase orders turned on.

So I would need to have a message for each type of payment otherwise a Phone Order would confirm as a Credit Card order etc. I though I could just do this with a variable and some text but it looks like allot more work than i have time to tackle. (don't know how anyway).

Thanks for the effort!

r

shan 05-08-2003 02:50 PM

just put this in to show payment method

Code:

{$lng.lbl_payment_method}:  {$order.payment_method}


All times are GMT -8. The time now is 02:31 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.