Post by craigbaines » Wed Sep 20, 2023 8:09 pm

I have a new 4.0.2.3 install.

The extension installed an connected fine. However, when i try to save my settings it gives me the success message, but doesn't save.

Can anyone replicate this issue or is it just me, any solutions?

New member

Posts

Joined
Wed Jun 25, 2014 8:39 am

Post by craigbaines » Thu Sep 21, 2023 12:03 am

<form action="{{ save }}" method="post" enctype="multipart/form-data" id="form_payment" data-oc-toggle="ajax">


Removing data-oc-toggle="ajax" from my form works. With it in, the post values seem messed up....

Not sure how / why that is, for now i have removed it an hit save as a work around.

If anyone can point me in the right direction here I'd appreciate it.

New member

Posts

Joined
Wed Jun 25, 2014 8:39 am

Post by craigbaines » Thu Sep 21, 2023 6:35 am

Ok, payments go through but then the site just freezes, order fails to update. Would be great if anyone else can confirm if this works ok for them

New member

Posts

Joined
Wed Jun 25, 2014 8:39 am

Post by ADD Creative » Fri Sep 22, 2023 12:30 am

I don't seem to be able to get the latest version to connect to test. Have you check both the PHP and OpenCart error logs? Have you check the web browser developer tool for errors?

www.add-creative.co.uk


Guru Member

Posts

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

Post by craigbaines » Fri Sep 22, 2023 11:55 pm

Thanks for the reply.

Few issues at play I think. The first is the options will not save without me removing that ajax line. When its present its not working. I have emailed a support ticket but going off the issues I've had recently I don't suspect ill get a reply any time soon / if at all. The good news is, if you remove it you can save... then i just undo the change. You could edit the value directly in the database if you know what you should be adding in there too....

The second issue is it it doesn't work when no shipment is required on the item. Luckily i stumbled upon this which provides a fix:
https://github.com/opencart/opencart/issues/12695

New member

Posts

Joined
Wed Jun 25, 2014 8:39 am

Post by ADD Creative » Mon Sep 25, 2023 1:03 am

If that small warning stopped it from working then you probably have display errors on. Not only can this cause minor notices and warnings to cause bigger errors, it can also be a security risk.

You need make sure display errors in set to off in all 3 places. Your PHP settings, in system/config/default.php and in the settings.

1. In your PHP settings make sure display_errors is set to Off. Use phpinfo() to check. It should be off by default, but there are lots of rubbish hosts out there.

2. In system/config/default.php set error_display to false.

3. In your OpenCart Setting on the server tab set Display Errors to No.

www.add-creative.co.uk


Guru Member

Posts

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

Post by craigbaines » Mon Sep 25, 2023 7:10 am

think you misunderstand me. It doesn't error, that's the point. Get success message but database values don't change.

New member

Posts

Joined
Wed Jun 25, 2014 8:39 am

Post by ADD Creative » Mon Sep 25, 2023 6:24 pm

Sorry my post about the errors was regarding the following.
craigbaines wrote:
Fri Sep 22, 2023 11:55 pm
The second issue is it it doesn't work when no shipment is required on the item. Luckily i stumbled upon this which provides a fix:
https://github.com/opencart/opencart/issues/12695

www.add-creative.co.uk


Guru Member

Posts

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

Post by craigbaines » Tue Sep 26, 2023 1:03 am

Ah ok, it's possible. The site was being developed so they would of been on yes.

New member

Posts

Joined
Wed Jun 25, 2014 8:39 am
Who is online

Users browsing this forum: phpconsult and 6 guests