0

I´m configuring Prestashop 1.7.8.11 and when I click in the Checkout for proccess to payment, I recive this error:

in 5e15b4d1179cdfd15539bcc9dbefe763da3b3d2b_2.file.cart-summary-totals.tpl.php line 77
at Block_30343732168d2a7ef69b3c7_08618053->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_30343732168d2a7ef69b3c7_08618053), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_30343732168d2a7ef69b3c7_08618053))in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_30343732168d2a7ef69b3c7_08618053', 'cart_summary_tax')in 5e15b4d1179cdfd15539bcc9dbefe763da3b3d2b_2.file.cart-summary-totals.tpl.php line 35
at content_68d2a7ef69c025_75565648(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()in smarty_internal_template.php line 385

at Smarty_Internal_Template->_subTemplateRender('file:checkout/_partials/cart-summary-totals.tpl', null, 'ebusinesslayouts/layout-full-width.tpl', 0, 3600, array('cart' => array('products' => array(object(ProductListingLazyArray)), 'totals' => array('total' => array('type' => 'total', 'label' => 'Total', 'amount' => 16.850000000000001, 'value' => '16,85 €'), 'total_including_tax' => array('type' => 'total', 'label' => 'Total (impuestos incl.)', 'amount' => 16.850000000000001, 'value' => '16,85 €'), 'total_excluding_tax' => array('type' => 'total', 'label' => 'Total (impuestos excl.)', 'amount' => 15.119999999999999, 'value' => '15,12 €')), 'subtotals' => array('products' => array('type' => 'products', 'label' => 'Subtotal', 'amount' => 9.9499999999999993, 'value' => '9,95 €'), 'discounts' => null, 'shipping' => array('type' => 'shipping', 'label' => 'Transporte', 'amount' => 6.9000000000000004, 'value' => '6,90 €'), 'tax' => null), 'products_count' => 1, 'summary_string' => '1 artículo', 'labels' => array('tax_short' => '(impuestos inc.)', 'tax_long' => '(impuestos incluidos)'), 'id_address_delivery' => '7', 'id_address_invoice' => '7', 'is_virtual' => false, 'vouchers' => array('allowed' => 1, 'added' => array()), 'discounts' => array(), 'minimalPurchase' => 0.0, 'minimalPurchaseRequired' => '')), 0, false)in 401fa02a985340b5c855f3b412f370b300a9f12d_2.file.cart-summary.tpl.php line 179

at Block_163740952368d2a7ef687302_14484950->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_163740952368d2a7ef687302_14484950), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_163740952368d2a7ef687302_14484950))in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_163740952368d2a7ef687302_14484950', 'cart_summary_totals')in 401fa02a985340b5c855f3b412f370b300a9f12d_2.file.cart-summary.tpl.php line 53
at content_68d2a7ef687a33_74815139(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()in smarty_internal_template.php line 385

at Smarty_Internal_Template->_subTemplateRender('file:checkout/_partials/cart-summary.tpl', null, 'ebusinesslayouts/layout-full-width.tpl', 0, 3600, array('cart' => array('products' => array(object(ProductListingLazyArray)), 'totals' => array('total' => array('type' => 'total', 'label' => 'Total', 'amount' => 16.850000000000001, 'value' => '16,85 €'), 'total_including_tax' => array('type' => 'total', 'label' => 'Total (impuestos incl.)', 'amount' => 16.850000000000001, 'value' => '16,85 €'), 'total_excluding_tax' => array('type' => 'total', 'label' => 'Total (impuestos excl.)', 'amount' => 15.119999999999999, 'value' => '15,12 €')), 'subtotals' => array('products' => array('type' => 'products', 'label' => 'Subtotal', 'amount' => 9.9499999999999993, 'value' => '9,95 €'), 'discounts' => null, 'shipping' => array('type' => 'shipping', 'label' => 'Transporte', 'amount' => 6.9000000000000004, 'value' => '6,90 €'), 'tax' => null), 'products_count' => 1, 'summary_string' => '1 artículo', 'labels' => array('tax_short' => '(impuestos inc.)', 'tax_long' => '(impuestos incluidos)'), 'id_address_delivery' => '7', 'id_address_invoice' => '7', 'is_virtual' => false, 'vouchers' => array('allowed' => 1, 'added' => array()), 'discounts' => array(), 'minimalPurchase' => 0.0, 'minimalPurchaseRequired' => '')), 0, false)in be74808ab78cb2d81013737104bac1582d2e66ee_2.file.checkout.tpl.php line 224

at Block_181572053668d2a7eec5dcc8_77725363->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_181572053668d2a7eec5dcc8_77725363), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_181572053668d2a7eec5dcc8_77725363))in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_181572053668d2a7eec5dcc8_77725363', 'content')in be74808ab78cb2d81013737104bac1582d2e66ee_2.file.checkout.tpl.php line 74
at content_68d2a7eec623e8_60448894(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232
at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, 'ebusinesslayouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase->fetch('checkout/checkout.tpl', null, 'ebusinesslayouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40
at SmartyDev->fetch('checkout/checkout.tpl', null, 'ebusinesslayouts/layout-full-width.tpl')in FrontController.php line 727
at FrontControllerCore->smartyOutputContent('checkout/checkout.tpl')in FrontController.php line 709
at FrontControllerCore->display()in Controller.php line 326
at ControllerCore->run()in Dispatcher.php line 525
at DispatcherCore->dispatch()in index.php line 28

I dont know what more look and re-view. Somebody which have the knowledge for repair this!?

Best Regards,

I´ve revised the payment method with stripe, I've looked some form to purchase page but I dont found nothing, I've reviewed the translations because in Simphony log appear some warnings for this, but I dont what more can I look.

1 Answer 1

0

You can fix this by adding an isset check in your TPL file. The error occurs because $cart.subtotals.tax is null but the template tries to access its properties. In your themes/your_theme/templates/checkout/_partials/cart-summary-totals.tpl file, find the line causing the error (around line 77) and wrap the tax-related code with isset(): This prevents the template from trying to access properties of a null value. Clear your cache afterward. The issue typically happens when tax rules aren't properly configured in International > Taxes > Tax Rules.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.