opencart 2.0.2.0
admin page - sales/recurring/orders action button
Im getting this, any ideas?
Notice: Trying to get property of non-object in xxxxxxx/admin/model/sale/recurring.php on line 141Warning: Invalid argument supplied for foreach() in xxxxxxx/admin/model/sale/recurring.php on line 141Notice: Error: Could not load template xxxxxxx/admin/view/template/common/buttons.tpl! in xxxxxxx/system/engine/loader.php on line 45
admin page - sales/recurring/orders action button
Im getting this, any ideas?
Notice: Trying to get property of non-object in xxxxxxx/admin/model/sale/recurring.php on line 141Warning: Invalid argument supplied for foreach() in xxxxxxx/admin/model/sale/recurring.php on line 141Notice: Error: Could not load template xxxxxxx/admin/view/template/common/buttons.tpl! in xxxxxxx/system/engine/loader.php on line 45
Last edited by marthaSplatterHead on Sat Jun 20, 2015 1:30 am, edited 2 times in total.
While working on a recurring extension, I had the same issues on a clean 2.0.3.1 install.
This is what I did to get rid of it:
Copy the buttons.tpl file from the catalog side:
to
Change a bit of code here:
admin\model\sale\recurring.php Line 141 change to
admin\language\english\sale\recurring.php
add:
admin\controller\sale\recurring.php
add to the info method
This is what I did to get rid of it:
Copy the buttons.tpl file from the catalog side:
Code: Select all
catalog\view\theme\default\template\common\buttons.tpl
Code: Select all
admin\view\template\common\buttons.tpl
admin\model\sale\recurring.php Line 141
Code: Select all
foreach ($query->rows as $result) {
Code: Select all
foreach ($query as $result) {
add:
Code: Select all
$_['entry_payment_reference'] = 'Payment Reference';
$_['entry_recurring_description'] = 'Payment Description';
add to the info method
Code: Select all
$data['entry_payment_reference'] = $this->language->get('entry_payment_reference');
Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+
Thanks!
Awesome thanks for documenting this, I just installed a fresh version 2.0.3.1 also so when I get testing I will see if it works and report back, the only thing I don't like is the possibility of it getting bumped in a update, maybe an experienced vqmod writer could build a fix, or maybe Ill see if I can pull it off.artcore wrote:This is what I did to get rid of it:

Little self-promo: if you're using recurring profiles you might be interested in this extension I just released today.
http://www.opencart.com/index.php?route ... me=artcore
Cheers!
Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+
Thanks!
Here is an updated bug fix release for Opencart 2.1 OCMOD to address these above mentioned issues.
Cheers!
Cheers!
Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+
Thanks!
Who is online
Users browsing this forum: No registered users and 8 guests