FabiusM Posted June 20, 2022 Share Posted June 20, 2022 Ciao, ho ricevuto un errore quando ho avviato uno script... la directory da cui lo lancio è '/modules/custommodules/cron/script.php' includo questi file prima di eseguirlo include_once(_PS_ENGFATT_MODULE_DIR_ . '/../../../config/config.inc.php'); include_once(_PS_ENGFATT_MODULE_DIR_ . '/../../../init.php'); include_once(_PS_ENGFATT_MODULE_DIR_ . '/../../../config/settings.inc.php'); l'errore è il seguente Syntax error in template "file:/.../pdf/order-slip.product-tab.tpl" on line 56 "- {displayPrice currency=$order->id_currency price=$order_detail.unit_price_tax_excl}" unknown tag 'displayPrice' nello specifico quando istanzio questo oggetto: $htmlPrintSlip = new HTMLTemplateOrderSlip($slip, Context::getContext()->smarty); $htmlPrintSlip->getContent(); cosa sbaglio? grazie mille! Link to comment Share on other sites More sharing options...
Prestachamps Posted June 20, 2022 Share Posted June 20, 2022 Ciao, Spero che i seguenti articoli possano aiutare:https://github.com/PrestaShop/PrestaShop/issues/24514https://stackoverflow.com/questions/57050681/convertprice-price-product-price-does-not-work-in-prestashop-1-7https://www.prestashop.com/forums/topic/984501-error-with-checkout-displayprice/ Buona giornata, Leo. Link to comment Share on other sites More sharing options...
FabiusM Posted June 20, 2022 Author Share Posted June 20, 2022 Grazie per gli spunti... Risolto! ho semplicemente riadattato il template con la logica che indicavi nel seguente post:https://stackoverflow.com/questions/57050681/convertprice-price-product-price-does-not-work-in-prestashop-1-7 Grazie mille!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now