jave.web Posted February 24, 2014 Share Posted February 24, 2014 (PrestaShop 1.4.7.0) In the OrderConfirmationController.php this line should display the order-confirmation.tpl: self::$smarty->display(_PS_THEME_DIR_.'order-confirmation.tpl'); But now (we dont know why) it stopped displaying the TPL, for now we have done temporary fix like public function displayContent() { //this displays: echo "Thank you for your order."; parent::displayContent(); //this doesn't display: self::$smarty->display(_PS_THEME_DIR_.'order-confirmation.tpl'); } Before this "fix" the user got stuck on page with no content or footer: empty #center_column, and no footer. Everything else - header, left side bar are displayed.... User got stuck on url like : example.com/order-confirmation.php?key=SOMESTRINGKEY&id_cart=CARTID&id_module=91&id_order=ORDERID Could this crash be caused by some module or could an error in footer cause not-displaying the content too? Or any other tips where the problem could be ? Thank you in advance. Link to comment Share on other sites More sharing options...
jave.web Posted February 24, 2014 Author Share Posted February 24, 2014 It was caused by TPL processing error (probably in both TPLs), the javascript scripts contained these brackets " { " and " } " => that doesnt work well with smarty processing, so we fixed it by wrapping the <script> tags into the {literal}{/literal} like this: {literal} <script> function someFunction(){ //...some code } </script> {/literal} Link to comment Share on other sites More sharing options...
Recommended Posts