Page 1 of 1

OpenCart 3.0.3.9 - Unexpected character ";" in "default/template/checkout/cart.twig" at line 68

Posted: Wed Jun 05, 2024 2:29 am
by p419
Hello All,

We're attempting to upgrade to OpenCart 3.0.3.9 from a clean install running on PHP 8.1. We're getting the following error whether we're on the default template or our template when we add something to cart and then click view cart. We're on the index.php?route=checkout/cart page when we see the error.

Fatal error: Uncaught Twig\Error\SyntaxError: Unexpected character ";" in "default/template/checkout/cart.twig" at line 68.

Any help is appreciated.

Thanks.

Re: OpenCart 3.0.3.9 - Unexpected character ";" in "default/template/checkout/cart.twig" at line 68

Posted: Wed Jun 05, 2024 6:02 am
by JNeuhoff
Restore your catalog/view/theme/default/template/checkout/cart.twig, line 68 should contain this:

Code: Select all

<button type="button" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger" onclick="cart.remove('{{ product.cart_id }}');"><i class="fa fa-times-circle"></i></button>

Re: OpenCart 3.0.3.9 - Unexpected character ";" in "default/template/checkout/cart.twig" at line 68

Posted: Sat Jun 08, 2024 12:46 am
by p419
JNeuhoff wrote:
Wed Jun 05, 2024 6:02 am
Restore your catalog/view/theme/default/template/checkout/cart.twig, line 68 should contain this:

Code: Select all

<button type="button" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger" onclick="cart.remove('{{ product.cart_id }}');"><i class="fa fa-times-circle"></i></button>
Perfect, thanks JNeuhoff.