Post by ilian.kostov » Thu Jan 14, 2010 2:23 am

Hello all,
First I want to sorry for my bad english and I hope you will understand me.
Today I update to 1.4.0 an when I try to delete
"Order Status Name"
in
Admin > System > Localization > Order Statuses
the page goes to http://demo.opencart.com/admin/index.ph ... tus/delete
and shows:
Error: Could not load model customer/order!.
I try to Insert and Edit and there is no problem, but I can't delete them.
I belive that problem is very easy to correct, but I don't know where to edit script.
Finally I want to thank you Daniel for all great job which you create.
Best rigards Ilian.
Last edited by i2Paq on Thu Jan 14, 2010 9:15 pm, edited 1 time in total.
Reason: added OC version tag

Image


User avatar
Newbie

Posts

Joined
Thu Jan 14, 2010 1:24 am

Post by Daniel » Thu Jan 14, 2010 3:49 am

ok i'll fix it.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by ilian.kostov » Thu Jan 14, 2010 3:52 am

I found the way to delete:
From phpmyadmin enter in table order_status and delete what you want :)
This is good idea for begining, but bug is still there.

Image


User avatar
Newbie

Posts

Joined
Thu Jan 14, 2010 1:24 am

Post by ilian.kostov » Thu Jan 14, 2010 7:45 pm

Hello again.
I found another bug in order statuses.
I choose:
Order Status: Pending
(Set the default order status when an order is processed.)
but when customer order anything, his order doesn't get default status and account/history is empty.
Then I have to edit his order to fix history.

Best regards
Ilian.

Image


User avatar
Newbie

Posts

Joined
Thu Jan 14, 2010 1:24 am

Post by ilian.kostov » Thu Jan 14, 2010 10:14 pm

Ok my bad.
I'll fix it:
INSERT INTO `setting` (`setting_id`, `group`, `key`, `value`) VALUES ('18566', 'cod', 'cod_order_status_id', 'X');
where "X" is number of the default order status.
Everything is because I can't delete order statuses and because I edit database.
Sorry again.

Image


User avatar
Newbie

Posts

Joined
Thu Jan 14, 2010 1:24 am

Post by Ondra02 » Mon Feb 08, 2010 9:36 am

ilian.kostov wrote:Hello all,
First I want to sorry for my bad english and I hope you will understand me.
Today I update to 1.4.0 an when I try to delete
"Order Status Name"
in
Admin > System > Localization > Order Statuses
the page goes to http://demo.opencart.com/admin/index.ph ... tus/delete
and shows:
Error: Could not load model customer/order!.
I try to Insert and Edit and there is no problem, but I can't delete them.
I belive that problem is very easy to correct, but I don't know where to edit script.
Finally I want to thank you Daniel for all great job which you create.
Best rigards Ilian.
Answer is hier:
http://forum.opencart.com/viewtopic.php?f=89&t=10133 from the Czech forum.

go to: opencart-admin-controller-localisation-order_status.php
change: "customer" to "sale" in the line 364 and 371
line 364:

Code: Select all

$this->load->model('sale/order');
line 371:

Code: Select all

$order_total = $this->model_sale_order->getOrderHistoryTotalByOrderStatusId($order_status_id);
Correct by pEeLL.

Newbie

Posts

Joined
Sun Dec 27, 2009 6:24 am
Who is online

Users browsing this forum: No registered users and 5 guests