upalm Posted January 12, 2020 Share Posted January 12, 2020 (edited) After updating to WHMCS 7.9.0, we have come across an error while checking out using the Stripe payment gateway. Error log: Smarty Error: Unable to load template 'file:D:\xxx\xxx\xxx/xxx/xxx/invoice-payment.tpl' Where does the 'invoice-payment.tpl' even exist? As the template six does not have it. Even while attaching the new PayPal gateway it throws an 500 error after signing in. Edited January 12, 2020 by upalm 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 12, 2020 Share Posted January 12, 2020 31 minutes ago, upalm said: Where does the 'invoice-payment.tpl' even exist? As the template six does not have it. it's shipped in the v7.9.0 download zip, and you can download it from WHMCS' GitHub page too - they're both the same content. https://github.com/WHMCS/templates-six/blob/master/invoice-payment.tpl 0 Quote Link to comment Share on other sites More sharing options...
upalm Posted January 12, 2020 Author Share Posted January 12, 2020 1 hour ago, brian! said: it's shipped in the v7.9.0 download zip, and you can download it from WHMCS' GitHub page too - they're both the same content. https://github.com/WHMCS/templates-six/blob/master/invoice-payment.tpl Blind me, thank you so much. It worked! 0 Quote Link to comment Share on other sites More sharing options...
gp_geo Posted January 15, 2020 Share Posted January 15, 2020 For others, I found that I need to copy the missing six templates for our customer theme. This was quicker than getting a response from the theme developers upstream. Namely: the file: templates/six/invoice-payment.tpl directory subfolder: templates/six/payment/ 0 Quote Link to comment Share on other sites More sharing options...
upalm Posted January 27, 2020 Author Share Posted January 27, 2020 (edited) Hey @brian! Could you help me with the popover as I am always landing up with 'Remote Transaction Failure' with 'Stripe' as the only change from my template and the default 'six' is that I can see is that the popover for the 3dsecure is not coming and neither does it come for the 2FA (basically it does not load the stripe.js) according to view source, I've been trying to wrap my head around this for weeks now but I cannot seem to solve it. Please if you could help us it would be highly appreciated. Is there a way to add the hook manually to the template? add_hook("AdminAreaFooterOutput", 1, function (array $vars) { $filename = $vars["filename"]; $return = ""; if ($filename == "clientssummary") { $return = "<script type=\"text/javascript\" src=\"https://js.stripe.com/v3/\"></script>"; } return $return; }); add_hook("ClientAreaFooterOutput", 1, function (array $vars) { $filename = $vars["filename"]; $template = $vars["templatefile"]; $return = ""; $requiredFiles = array("cart", "creditcard"); $requiredTemplates = array("account-paymentmethods-manage", "invoice-payment"); if (in_array($filename, $requiredFiles) || in_array($template, $requiredTemplates)) { $return = "<script type=\"text/javascript\" src=\"https://js.stripe.com/v3/\"></script>"; } return $return; }); Edited January 27, 2020 by upalm 1 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.