straightlight wrote:Can you post a screenshot of what you describe?opencartArab wrote:the transaction calculated by minus
التعليمات باللغة العربية على الرابط التالي
https://www.opencartarab.com/docs
استضافة اوبن كارت العرب
https://host.opencartarab.com
Are there extensions order totals installed aside from the core or this is based on the order totals store credit from the core you're describing?opencartArab wrote:straightlight wrote:Can you post a screenshot of what you describe?opencartArab wrote:the transaction calculated by minus
Also, can you provide the step-by-step procedure you did in order to see these results?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I have noticed a language error/bug....when you go into extensions/extensions and edit theme the breadcrumbs are not correct..see below and in admin/controller/extension/theme/theme_default.php you have
Code: Select all
$data['breadcrumbs'][] = array(
'text' => $this->language->get('text_extension'),
'href' => $this->url->link('extension/extension', 'token=' . $this->session->data['token'] . '&type=theme', true)
);
Code: Select all
<?php
// Heading
$_['heading_title'] = 'Default Store Theme';
// Text
$_['text_theme'] = 'Themes';
$_['text_success'] = 'Success: You have modified the default store theme!';
$_['text_edit'] = 'Edit Default Store Theme';
$_['text_general'] = 'General';
$_['text_product'] = 'Products';
$_['text_image'] = 'Images';
// Entry
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I do not get any errors when using cod or banktransfer.
Notice: Undefined index: total in /xxx/httpd.www/catalog/model/extension/total/sub_total.php on line 21Notice: Undefined index: total in /xxx/httpd.www/catalog/model/extension/total/shipping.php on line 24Notice: Undefined index: taxes in /xxx/httpd.www/catalog/model/extension/total/tax.php on line 4Warning: Invalid argument supplied for foreach() in /xxx/httpd.www/catalog/model/extension/total/tax.php on line 4Notice: Undefined index: total in /xxx/httpd.www/catalog/model/extension/total/total.php on line 9
Reason: Added quote tags.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
no .. its fresh install 2.3.0.2straightlight wrote: Are there extensions order totals installed aside from the core or this is based on the order totals store credit from the core you're describing?
Also, can you provide the step-by-step procedure you did in order to see these results?
its very simple my frind
if i add any transaction amount to the customer .. its add by minus
after that if i add any product to the cart .. it will be calculated by minus value also and after finish checkout, the transaction amount back to zero
التعليمات باللغة العربية على الرابط التالي
https://www.opencartarab.com/docs
استضافة اوبن كارت العرب
https://host.opencartarab.com
In catalog/model/extension/total/credit.php file, the following two instances may need to be adjusted:
Code: Select all
'value' => -$credit,
Code: Select all
$total['total'] -= $credit;
The controllers calling the order totals should definitely involve an if statement in order to validate along with the active status of each modules the float value that are above or equal to 0. There would be no possibility on showing negative prices as this is highly unlikely that a total price could be added on the bill with negative signs.
In addition to my above suggestion would be to add an event handler to those locations as well so to inform the merchants that negative values may have been found from one of the order totals (which, understandably, may not be tracked specifically).
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Thanks straightlight ..straightlight wrote:Thanks opencartArab. That is an odd issue, indeed.
In catalog/model/extension/total/credit.php file, the following two instances may need to be adjusted:
and:Code: Select all
'value' => -$credit,
which returns negative value if the $credit variable is below 0. See if by removing the negation signs on each equals resolves the problem.Code: Select all
$total['total'] -= $credit;
The controllers calling the order totals should definitely involve an if statement in order to validate along with the active status of each modules the float value that are above or equal to 0. There would be no possibility on showing negative prices as this is highly unlikely that a total price could be added on the bill with negative signs.
In addition to my above suggestion would be to add an event handler to those locations as well so to inform the merchants that negative values may have been found from one of the order totals (which, understandably, may not be tracked specifically).
i try another suggestion and its work fine
in the same file:
catalog/model/extension/total/credit.php
i change :
Code: Select all
$credit = min($balance, $total);
Code: Select all
if ($balance > $total['total']) {
$credit = $total['total'];
} else {
$credit = $balance;
}
التعليمات باللغة العربية على الرابط التالي
https://www.opencartarab.com/docs
استضافة اوبن كارت العرب
https://host.opencartarab.com
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
You sure about that? Looking at the fix and looking at the code, I see the change... its in a slightly different spot, but the code fix is there. Not tested but at first glance seems like it should work, at least for the customer email on line 761straightlight wrote:A persisting bug has been discovered. The admin order statuses still insists on sending the emails even though the check mark is removed. The first post has been updated accordingly in order to implement the bug-fix solution.
Actually this should work fine:opencartArab wrote: in the same file:
catalog/model/extension/total/credit.php
i change :to:Code: Select all
$credit = min($balance, $total);
i take code from 2.2.0.0Code: Select all
if ($balance > $total['total']) { $credit = $total['total']; } else { $credit = $balance; }
Code: Select all
$credit = min($balance, $total['total']);
There has been multiple posts this week regarding the order statuses change without check-marking the notification as customers are still receiving the emails. It is good strategy to validate the admin settings before sending out any emails in those cases to avoid odd situations which can also be leaded to undeclared installed extensions since the core, originally, would restrict the emails to be sent out based on validations from the catalog/model/checkout/order.php especially when multiple locations in the platform are directing to the same route and method location.Qphoria wrote:You sure about that? Looking at the fix and looking at the code, I see the change... its in a slightly different spot, but the code fix is there. Not tested but at first glance seems like it should work, at least for the customer email on line 761straightlight wrote:A persisting bug has been discovered. The admin order statuses still insists on sending the emails even though the check mark is removed. The first post has been updated accordingly in order to implement the bug-fix solution.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Yes but the code is there. I'll test it later today.straightlight wrote:There has been multiple posts this week regarding the order statuses change without check-marking the notification as customers are still receiving the emails. It is good strategy to validate the admin settings before sending out any emails in those cases to avoid odd situations which can also be leaded to undeclared installed extensions since the core, originally, would restrict the emails to be sent out based on validations from the catalog/model/checkout/order.php especially when multiple locations in the platform are involved.Qphoria wrote:You sure about that? Looking at the fix and looking at the code, I see the change... its in a slightly different spot, but the code fix is there. Not tested but at first glance seems like it should work, at least for the customer email on line 761straightlight wrote:A persisting bug has been discovered. The admin order statuses still insists on sending the emails even though the check mark is removed. The first post has been updated accordingly in order to implement the bug-fix solution.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I do not get any errors when using cod or banktransfer.
Notice: Undefined index: total in /xxx/httpd.www/catalog/model/extension/total/sub_total.php on line 21Notice: Undefined index: total in /xxx/httpd.www/catalog/model/extension/total/shipping.php on line 24Notice: Undefined index: taxes in /xxx/httpd.www/catalog/model/extension/total/tax.php on line 4Warning: Invalid argument supplied for foreach() in /xxx/httpd.www/catalog/model/extension/total/tax.php on line 4Notice: Undefined index: total in /xxx/httpd.www/catalog/model/extension/total/total.php on line 9
I'm not really sure what to do.straightlight wrote:Welcome to the Opencart forum. This error message is due to the new location of extensions that needs to rather be addressed. Followed is the new methodology on how to load the extensions / modules: http://forum.opencart.com/viewtopic.php?f=183&t=165958
I have deleted all the old folders.
I have uninstalled ALL extensions i could.
I have re-installed only the important ones.
What else can i do?
Klarna invoice is built in so to check controller files seems maybe odd but i have checked and all old files are overwritten and why are both cod and banktransfer working with no error. I must be missing or doing something wrong then but what?
Reason: Added quote tags.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I did upload all the files.straightlight wrote:Did you also uploaded all the files for v2.3.0.2? If so, ensure to go to your admin - > systems - > users - > user permissions - > edit permission - > uncheck all - > check all for both lists. Save changes.
I unchecked all permissions and checked them again, sorry but still not working.
Will upload all the files again but strange that other payments are working.
I get the error in checkout, step 6 when selecting Klarna and press continue if it helps.
Try any other payment? if it helps?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 99 guests