| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Display text depending on payment method used. | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Hi
I would like to display different text on the order.message.tpl depending on what order method the customer used this is what ihave put cant seem to get it to work. {if $payment_methods[payment].paymentid eq 11} {$lng.txt_finance_placed} {else} {$lng.txt_placed} {/if} Any help would be great. Im using Xcart 4.0 Regards john
__________________
https://www.bedstar.co.uk |
|||||||||
#2
|
|||||||
|
|||||||
![]() Not sure if this is the one, but try it:
{if $payment.paymentid eq "11"} Moving to Template Editing.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Hi
Tried that no joy um afaid any other ideas! Regards john
__________________
https://www.bedstar.co.uk |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Possibly you are wrong in doing it with the payment method ID.
When I do things like this, I find that you have to use the actual payment method, which you can copy and paste from Payment Methods in admin. So, e.g. {if $order.payment_method eq "Cheque"}
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
#5
|
|||||||
|
|||||||
![]() Code:
Has to be the same name you gave in the payment methods in the admin section
__________________
4.3.1 rounded white template one page checkout |
|||||||
#6
|
|||||||||
|
|||||||||
![]() nope still cant get it to work is that code correct for the $payment_method
__________________
https://www.bedstar.co.uk |
|||||||||
#7
|
|||||||
|
|||||||
![]() Post the code you are trying to use
__________________
4.3.1 rounded white template one page checkout |
|||||||
#8
|
|||||||||
|
|||||||||
![]() {if $order.payment_method eq "Finance"}
{$lng.txt_finance_placed} {else} {$lng.txt_order_placed_msg} {/if} I have placed this into the order message.tpl. Currently when i put an order through on Finance is still shows lng.txt_order_placed_msg Regards JOhn Currently
__________________
https://www.bedstar.co.uk |
|||||||||
#9
|
|||||||
|
|||||||
![]() Quote:
If I place {$order.payment_method} at the top of order message.tpl nothing prints. So there is no value assigned to $order.payment method. You need to look what tpl files are included starting from the invoice heading. $order.payment_method has a value by then. I use pretty much the same code in order_invoice.tpl to print different messages at the bottom of the invoice depending on payment type. It works there.
__________________
4.3.1 rounded white template one page checkout |
|||||||
#10
|
|||||||
|
|||||||
![]() In /skin1/mail/html/order_invoice.tpl
look for : Code:
Code:
obviously you will need to change both the $order.payment_method value & the text to your own requirements hope that helps you anyways
__________________
X-cart Gold - 4.0.18 - 4.1.9 - 4.1.10 - 4.3.0 |
|||||||
|
|||
X-Cart forums © 2001-2020
|