Post by danvest » Thu Oct 14, 2021 7:05 pm

Hi,
I'm getting this error after installing a new paymentmodule (Freepay):
www/storage/modification/admin/controller/sale/order.php on line 1252

All payments are working fine, but the order doesn't show up in order history. The buyer receives the receipt and I receive a confirmation email. Everything seems ok, except the missing order in order history.

Code: Select all

$api_key = $this->config->get('payment_freepay_api_key');
			  
			if (!empty($api_key)) {
			    $transaction_id = $this->db->query("SELECT transaction_id FROM " . DB_PREFIX . "freepay_transaction WHERE order_id = '" . (int)$order_info['order_id'] . "'")->row['transaction_id'];
			  
			  	if (!empty($transaction_id)) {
			  		require DIR_SYSTEM . 'library/freepay/freepay.php'

Newbie

Posts

Joined
Fri Nov 08, 2013 10:20 pm

Post by xxvirusxx » Thu Oct 14, 2021 8:24 pm

Contact payment developer.

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

Post by JNeuhoff » Thu Oct 14, 2021 9:27 pm

xxvirusxx wrote:
Thu Oct 14, 2021 8:24 pm
Contact payment developer.
...and ask the Freepay author to fix his extension, there should be no need for modifying the admin/controller/sale/order.php file!

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


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by straightlight » Thu Oct 14, 2021 9:51 pm

JNeuhoff wrote:
Thu Oct 14, 2021 9:27 pm
xxvirusxx wrote:
Thu Oct 14, 2021 8:24 pm
Contact payment developer.
...and ask the Freepay author to fix his extension, there should be no need for modifying the admin/controller/sale/order.php file!
It states modification in the path on the first post, however. Therefore, the extension developer may have used OCMod to accomplish this. I would of done it with Event Triggers to modify such file, nevertheless.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Thu Oct 14, 2021 9:51 pm

danvest wrote:
Thu Oct 14, 2021 7:05 pm
Hi,
I'm getting this error after installing a new paymentmodule (Freepay):
www/storage/modification/admin/controller/sale/order.php on line 1252

All payments are working fine, but the order doesn't show up in order history. The buyer receives the receipt and I receive a confirmation email. Everything seems ok, except the missing order in order history.

Code: Select all

$api_key = $this->config->get('payment_freepay_api_key');
			  
			if (!empty($api_key)) {
			    $transaction_id = $this->db->query("SELECT transaction_id FROM " . DB_PREFIX . "freepay_transaction WHERE order_id = '" . (int)$order_info['order_id'] . "'")->row['transaction_id'];
			  
			  	if (!empty($transaction_id)) {
			  		require DIR_SYSTEM . 'library/freepay/freepay.php'
Not a core bug.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: jagall, JNeuhoff, SohBH and 254 guests