Post by Dimitra93 » Thu Feb 22, 2024 3:32 pm

Hi all,
I recently noticed that, in checkout page, the Country dropdown is disabled and the Region dropdown list is empty. This prevents the order confirmation since the Region field is required.

Doing a liitle more research on the site, we noticed the problem also occures on cart page, when the user adds his details in order to calculate shipping.

The opencart version is 3.0.3.6 and is using php 7.4.

The Chrome DevTools returns the error
VM173:18 Uncaught TypeError: Assignment to constant variable.
at Object.success (eval at globalEval (jquery-2.1.1.min.js:2:2536), <anonymous>:18:9)
at j (jquery-2.1.1.min.js:2:26860)
at Object.fireWith [as resolveWith] (jquery-2.1.1.min.js:2:27673)
at x (jquery-2.1.1.min.js:4:11120)
at XMLHttpRequest.<anonymous> (jquery-2.1.1.min.js:4:14767)
success @ VM173:18
j @ jquery-2.1.1.min.js:2
fireWith @ jquery-2.1.1.min.js:2
x @ jquery-2.1.1.min.js:4
(anonymous) @ jquery-2.1.1.min.js:4
load (async)
send @ jquery-2.1.1.min.js:4
ajax @ jquery-2.1.1.min.js:4
eval @ VM173:2
dispatch @ jquery-2.1.1.min.js:3
r.handle @ jquery-2.1.1.min.js:3
trigger @ jquery-2.1.1.min.js:3
(anonymous) @ jquery-2.1.1.min.js:3
each @ jquery-2.1.1.min.js:2
each @ jquery-2.1.1.min.js:2
trigger @ jquery-2.1.1.min.js:3
eval @ VM173:42
globalEval @ jquery-2.1.1.min.js:2
domManip @ jquery-2.1.1.min.js:3
append @ jquery-2.1.1.min.js:3
(anonymous) @ jquery-2.1.1.min.js:3
n.access @ jquery-2.1.1.min.js:2
html @ jquery-2.1.1.min.js:3
success @ index.php?route=checkout/checkout:1218
j @ jquery-2.1.1.min.js:2
fireWith @ jquery-2.1.1.min.js:2
x @ jquery-2.1.1.min.js:4
(anonymous) @ jquery-2.1.1.min.js:4
load (async)
send @ jquery-2.1.1.min.js:4
ajax @ jquery-2.1.1.min.js:4
(anonymous) @ index.php?route=checkout/checkout:1205
dispatch @ jquery-2.1.1.min.js:3
r.handle @ jquery-2.1.1.min.js:3

The error appears when we click the Checkout Options > Continue button and the Account Billing Details tab opens.

So far we have tried/checked:
1. The Countries, Geo Zones and Zones are properly configured.
2. We changed the caching time from htaccess.
3. We have changed the php version to 8 and php 7.3

We have noticed that clearing the modification cache or changing the htaccess cache configuration fixes the problem but just for the first refresh.

I need some help identifying and fixing the problem.

Thank you in advance,
Dimitra

Newbie

Posts

Joined
Thu Nov 16, 2023 5:10 pm

Post by hectorsolutions » Thu Feb 22, 2024 4:58 pm

Same problem here.
When clear cache it works for one refresh. Then <select> is disabled.


Posts

Joined
Fri Nov 10, 2023 9:46 pm

Post by JNeuhoff » Thu Feb 22, 2024 5:59 pm

Precious little detail to go by here. if you want help, then please provide more details, as per the forum rules.

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 Dimitra93 » Thu Feb 22, 2024 6:52 pm

Hi JNeuhoff,
We are using the So Destino theme. However, the checkout files are the default theme's.

Newbie

Posts

Joined
Thu Nov 16, 2023 5:10 pm

Post by ADD Creative » Thu Feb 22, 2024 7:39 pm

Have you tried a different web browser? In the Chrome Developer Tools have you tried ticking the 'Disable cache' option on the 'Network' tab?

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by Dimitra93 » Thu Feb 22, 2024 9:29 pm

Hi,
I have tried from Edge and Firefox. Also, the client has tried it from other browsers, including Safari and mobile browsers. I did not click the Disable Cache since the problem existed in so many different browsers.
I finally used another checkout module, but I would like to know, for future reference, what caused that problem.

Newbie

Posts

Joined
Thu Nov 16, 2023 5:10 pm

Post by ADD Creative » Fri Feb 23, 2024 12:45 am

I would try the Disable cache option and test with that. That way you will at least eliminate web browser caching issues.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by xxvirusxx » Fri Feb 23, 2024 3:58 pm

EdnaB wrote:
Thu Feb 22, 2024 9:29 pm
I finally used another checkout module, but I would like to know, for future reference, what caused that problem.
Bugs in that theme/checkout module.

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România
Who is online

Users browsing this forum: No registered users and 1 guest