Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

[Подгдержка] Отмена заказа и возврат товара на склад (vqmod)


Recommended Posts

В 05.02.2016 в 12:49, Justveryhappy сказал:

public function getTotalSales() {
          $query = $this->db->query("SELECT SUM(total) AS total FROM `" . DB_PREFIX . "order` WHERE order_status_id > '0' and order_status_id not in (9,1,8,7,17,2)");
        return $query->row['total'];
    }
    public function getTotalSalesByYear($year) {
          $query = $this->db->query("SELECT SUM(total) AS total FROM `" . DB_PREFIX . "order` WHERE order_status_id > '0' and order_status_id in (18,27) AND YEAR(date_added) = '" . (int)$year . "'");
        return $query->row['total'];
    }

Спасипотому что

Но у вас тут ошибка (9,1,8,7,17,2)

Link to comment
Share on other sites


1 час назад, comandir22 сказал:

Спасипотому что

Но у вас тут ошибка (9,1,8,7,17,2)

Добрый гдень. Это не ошибка, а ситусы заказов, которые у меня на тот момент были в системе. Они точно отличались от гдефолтных, поэтому вам нужно вместо них подсивить свои в данный код.

Link to comment
Share on other sites


3 часа назад, Justveryhappy сказал:

Добрый гдень. Это не ошибка, а ситусы заказов, которые у меня на тот момент были в системе. Они точно отличались от гдефолтных, поэтому вам нужно вместо них подсивить свои в данный код.

 

ошибка в том , что вы в когде указали разные ситусы

ггде то 9,1,8,7,17,2
ггде то 18,27

 

Во всем когде ситусы одни пишутся

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.