| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Different confirmation message for different payment methods | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I've searched high and low in these forums and it dones't look like there's a solution to this yet...
ANyway, my problem is that I need to have a different order onfirmation message shown in the checkout process depending on what payment method they use. E.g for Direct Deposit/Money Transfer I want it to show my bank details, money order to show the postal address and for credit card payment it will just say "completed" (or similar). I was also thinking of putting up Bpay (Australian Paymennt method) where its similar to direct deposit, but on the final confirmation page I want it to show something like this: Bpay Details ======== Reference: 123456 (this number is fixed) Customer ID: [ORDER ID] How do I get it to show the customer's order ID in there? Is there some tag I can use to show the order ID in there? |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Code:
You could do something like the above in cart.php ![]() |
|||||||||
#3
|
|||||||
|
|||||||
![]() Boomer,
Thanks for taking the time to reply. I appreciate it. I tried looking in the cart.php file but I can't find the string below anywhere... Is this hard to do or am I better off paying somebody to do this for me?? Or can you be more specifc on how to to it all? Do I just paste it in the cart.php file anywhere I want? I'm a real newbie to PHP and my knowledge in this is quite limited (I do however, know HTML). ![]() |
|||||||
#5
|
|||||||
|
|||||||
![]() You offer such services right? How much do you charge for such customisation?
|
|||||||
#6
|
|||||||||
|
|||||||||
![]() If you like a customization quote, feel free to visit:
http://www.cartlab.com/ and I'll get a quote with rates and time frame out to you asap. ![]() |
|||||||||
#7
|
|||||||
|
|||||||
![]() Quote:
Programming Logic Question: What does the "paymentby" and "cc" do, i assume the later is the payment method, but where does the "paymentby" come from? i've read the smarty docs, and i see that it's for assigning values to the template, but where did they come from and what exactly do they represent? The code that i am replacing differs from the above. lbl_order_processed when i looked it up just said "Order Processed" which didnt help. Code:
Can somone point me in the right direction ![]()
__________________
X-Cart 4.1.6 |
|||||||
#8
|
|||||||||
|
|||||||||
![]() Quote:
$smart->assign("paymentby","cc"); Does nothing more than set a variable called "paymentby" to smarty's templates with a value of "cc". So I can now use {$paymentby} in my .tpl file to show its value or to do conditions, etc. ![]() |
|||||||||
#9
|
|||||||
|
|||||||
![]() Hey Boomer,
Thanks for your reply, Can you help me getting it to work. The code i have is as follows. Code:
in /customer/main/order_message.tpl i added the following where i wanted the payment details displayed. Code:
i created a file called mail/payment_method.tpl Code:
However, the if statements dont work in the last bit of code. What is returned on the screen is this Quote:
it doesnt return the orderid or the correct payment method. where have i screwed up?
__________________
X-Cart 4.1.6 |
|||||||
#10
|
|||||||||
|
|||||||||
![]() Code:
Make sure its in the {section} loop: Code:
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|