Post by p419 » Wed Jun 05, 2024 2:29 am

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.

Regards,

Paul


New member

Posts

Joined
Tue Nov 27, 2018 2:01 am
Location - Toronto

Post by JNeuhoff » 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>

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by p419 » Sat Jun 08, 2024 12:46 am

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.

Regards,

Paul


New member

Posts

Joined
Tue Nov 27, 2018 2:01 am
Location - Toronto
Who is online

Users browsing this forum: No registered users and 5 guests