Abdelkarim Posted March 17, 2020 Share Posted March 17, 2020 Hi. What is value is {$invoice_payment_method} ? module or displayname? With Api I get below "paymentmethod" => array:5 [ 0 => array:2 [ "module" => "banktransfer" "displayname" => "Transferencia Bancaria" ] 1 => array:2 [ "module" => "redsys" "displayname" => "Bankia (Tarjetas/IuPay)" ] 2 => array:2 [ "module" => "paypal" "displayname" => "PayPal" ] 3 => array:2 [ "module" => "stripe" "displayname" => "Stripe (otras tarjetas)" ] 4 => array:2 [ "module" => "directdebit" "displayname" => "Domiciliación Bancaria" ] Best regards 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted March 17, 2020 Share Posted March 17, 2020 In what context? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 17, 2020 Share Posted March 17, 2020 13 minutes ago, Abdelkarim said: What is value is {$invoice_payment_method} ? if you're talking about the email templates, it should be displayname.... 0 Quote Link to comment Share on other sites More sharing options...
Abdelkarim Posted March 17, 2020 Author Share Posted March 17, 2020 Hi Thanks @brian! Well.. I like you reply with links but I don't see solution and think is bet reply a question directly. Is module ro dsiplayname? @Kian context effectively is email template... Thanks to two... 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted March 17, 2020 Share Posted March 17, 2020 1 minute ago, Abdelkarim said: effectively is email template... Then, as brian suggested, it's display name. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 17, 2020 Share Posted March 17, 2020 2 minutes ago, Abdelkarim said: Well.. I like you reply with links but I don't see solution and think is bet reply a question directly. the code I posted is from an email template and uses the display name... {if $invoice_payment_method eq "Bank Transfer"} if the code need to use the module value, the code would have been... {if $invoice_payment_method eq "banktransfer"} the displayname value should work; the module value should not... best way to know for sure is to try them! 🙂 0 Quote Link to comment Share on other sites More sharing options...
Abdelkarim Posted March 17, 2020 Author Share Posted March 17, 2020 A lot of thanks to two... Sorry for my poor english, But annotation.. Is not my code... is MAIL TEMPLATE code of WHMCS. I don't made code similar to whmcs ... I get hives seeing that code Bets regards. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.