Post by dbrooksuk » Sat Feb 12, 2022 9:47 pm

Hi
I'm a bit stuck on where to get support for this version of Opencart - Opencart Overclocked - as the old support forum is no longer working but as it is based on 1.5.6.4 I thought somebody here might be able to help.

I have a problem which is when you select Notify customer on the order history page it is failing to update the database ie setting notify to 1 so no notification email is sent and the history table says no. No errors are appearing in the logs and everything else appears to work on the history page, adding comments, changing order status etc. The automatic customer notification is also sent after a successful order and the database is updated then. There is a second problem which might be related in that you can't delete orders.

I was wondering if it could it be a PHP issue as the it was originally built for 5.6 and it is currently running on 7.2 The previous version of Opencart I ran used PHP 5.6 and notify worked ok.

Has anybody got any thoughts on a possible fix or where I might try get some answers?

Thank you

Opencart Overclocked 1.11.1
PHP 7.2

New member

Posts

Joined
Mon Jun 13, 2011 5:31 pm

Post by ADD Creative » Sat Feb 12, 2022 10:21 pm

Have you checked your web browser's developer console for errors and that it's sending the history request or form submission in the network tab?

www.add-creative.co.uk


Guru Member

Posts

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

Post by OSWorX » Sat Feb 12, 2022 10:41 pm

Additonally you should check the servers (not OpenCart !) error.log
Long time ago I had todo with that version, maybe it's an issue with the used php-version - if, you will find some in this logfile.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by dbrooksuk » Sat Feb 12, 2022 10:47 pm

There are no errors showing up on the server log

New member

Posts

Joined
Mon Jun 13, 2011 5:31 pm

Post by dbrooksuk » Sat Feb 12, 2022 10:53 pm

Thank you for your replies.

I have opened the network tab on Firefox Web Developer Tools for the first time ever and I get 2 additional entries after I click notify followed by update history:

https://www.xxxxx.co.uk/xxxx/index.php? ... order_id=1 and
https://www.xxxxxx.co.uk/xxxx/index.php ... atus_id=16
Both with a query 3.3.1 initiator ?
I see no mention of notify and no errors are apparent. I am not using openbay by the way.

New member

Posts

Joined
Mon Jun 13, 2011 5:31 pm

Post by dbrooksuk » Sat Feb 12, 2022 10:56 pm

xxx.co.uk/xxxx/index.php?route=extension/openbay/ajaxAddOrderInfo&token=fa6d751f4ce8d83b3635f744149319dd&order_id=1&status_id=16&old_status_id=16
xxx.co.uk/xxx/index.php?route=sale/order/history&token=fa6d751f4ce8d83b3635f744149319dd&order_id=1

New member

Posts

Joined
Mon Jun 13, 2011 5:31 pm

Post by OSWorX » Sat Feb 12, 2022 11:30 pm

dbrooksuk wrote:
Sat Feb 12, 2022 10:53 pm
I have opened the network tab on Firefox Web Developer Tools for the first time ever ..
Sometimes it is "wise" to know how something works ..
dbrooksuk wrote:
Sat Feb 12, 2022 10:53 pm
I see no mention of notify and no errors are apparent. I am not using openbay by the way.
Normal & standard behaviour - OpenBay was always called before OpenCart 3.x

But you could check once the server error log file (not OpenCart!).
Guess you will see more there.

Finally: have you ever checked the time settings (on your server)?

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by dbrooksuk » Sun Feb 13, 2022 12:27 am

There are no server errors in the log. I'm looking into the server time settings, I would think its GMT as its a UK hosting platform.

I can now see that in the POST data settings that notify=0 when it should be 1. Can anybody please tell me where is this normally set?

New member

Posts

Joined
Mon Jun 13, 2011 5:31 pm

Post by OSWorX » Sun Feb 13, 2022 12:55 am

dbrooksuk wrote:
Sun Feb 13, 2022 12:27 am
I can now see that in the POST data settings that notify=0 when it should be 1. Can anybody please tell me where is this normally set?
As far as I know (and in OpenCart default packages this is standard), there is a checkbox for such.
If not checked, no notifications are send.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by dbrooksuk » Sun Feb 13, 2022 1:08 am

Hi
I've checked the box to notify the customer and it still returns 0 in POST data. Where and how does this get checked once the update history button is clicked?

New member

Posts

Joined
Mon Jun 13, 2011 5:31 pm

Post by OSWorX » Sun Feb 13, 2022 1:42 am

In the model.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by dbrooksuk » Sun Feb 13, 2022 1:46 am

Thank you

New member

Posts

Joined
Mon Jun 13, 2011 5:31 pm

Post by ADD Creative » Sun Feb 13, 2022 2:10 am

Checkbox and it's value when checked is here.
https://github.com/opencart/opencart/bl ... o.tpl#L397

The JavaScript that sends the POST when Add History is clicked is here.
https://github.com/opencart/opencart/bl ... #L940-L974

www.add-creative.co.uk


Guru Member

Posts

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

Post by OSWorX » Sun Feb 13, 2022 2:19 pm


Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by dbrooksuk » Sun Feb 13, 2022 11:19 pm

Well I've now compared the files on the site against the default upload files (Overclocked version) and there is no difference. Thank you for highlighting the areas of code.

All I know at this moment is that it doesn't matter if the notify customer box is checked or not it always returns notify=0 in the POST data. So it's not being set or something is cancelling it?

Time to pull some more hair out and ponder.

New member

Posts

Joined
Mon Jun 13, 2011 5:31 pm

Post by OSWorX » Tue Feb 15, 2022 1:02 pm

dbrooksuk wrote:
Sun Feb 13, 2022 11:19 pm
Well I've now compared the files on the site against the default upload files (Overclocked version) and there is no difference. Thank you for highlighting the areas of code.

All I know at this moment is that it doesn't matter if the notify customer box is checked or not it always returns notify=0 in the POST data. So it's not being set or something is cancelling it?

Time to pull some more hair out and ponder.
Not really, I would say: check your pocket and spend a few bucks for a qualified developer.
May help you loosing hair ..

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by dbrooksuk » Tue Feb 15, 2022 6:14 pm

I think that's where I'm heading now. Thank you both for your help.

New member

Posts

Joined
Mon Jun 13, 2011 5:31 pm

Post by dbrooksuk » Wed Feb 16, 2022 6:09 pm

PHP version makes no difference, tested on 5.6.4 and 7.2, which it is currently running under, so that is ruled out as the cause. After further testing on a local server using unaltered uploads I now know that the error was introduced when the software was updated from 1.10.2 up to 1.11.0.

New member

Posts

Joined
Mon Jun 13, 2011 5:31 pm

Post by OSWorX » Wed Feb 16, 2022 7:01 pm

dbrooksuk wrote:
Wed Feb 16, 2022 6:09 pm
After further testing on a local server using unaltered uploads I now know that the error was introduced when the software was updated from 1.10.2 up to 1.11.0.
Which software?
If you mean the community edition then you know where to edit.
Last version from them is 1.11.1.
And at their GH-Pages you can post further - this here is only about OpenCart native.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by dbrooksuk » Wed Feb 16, 2022 9:01 pm

I didn't know you could post on GH with issues

New member

Posts

Joined
Mon Jun 13, 2011 5:31 pm
Who is online

Users browsing this forum: Amazon [Bot] and 19 guests