Skip to content

Commit

Permalink
Merge branch 'opencart:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
stalker780 authored Feb 9, 2025
2 parents 2085eb8 + de37ffe commit 701b6ae
Show file tree
Hide file tree
Showing 28 changed files with 8,377 additions and 73 deletions.
2 changes: 1 addition & 1 deletion upload/admin/controller/report/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function product(): void {
// Product
$this->load->model('catalog/product');

$this->model_report_statistics->editValue('product', $this->model_catalog_product->getTotalProducts(['filter_quantity' => 0]));
$this->model_report_statistics->editValue('product', $this->model_catalog_product->getTotalProducts(['filter_quantity_to' => 0]));

$json['success'] = $this->language->get('text_success');
}
Expand Down
2 changes: 1 addition & 1 deletion upload/admin/model/catalog/product.php
Original file line number Diff line number Diff line change
Expand Up @@ -2605,7 +2605,7 @@ public function getSubscriptions(int $product_id): array {
/**
* Delete Subscriptions By Subscription Plan ID
*
* @param int $subscription_plan_id primary key of the product subscription plan record
* @param int $subscription_plan_id primary key of the subscription plan record
*
* @return void
*
Expand Down
2 changes: 1 addition & 1 deletion upload/admin/model/customer/custom_field.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public function getDescriptions(int $custom_field_id): array {
*
* @param int $language_id primary key of the language record
*
* @return array<int, array<string, string>> description records that have information ID
* @return array<int, array<string, string>> description records that have language ID
*
* @example
*
Expand Down
2 changes: 1 addition & 1 deletion upload/admin/model/localisation/language.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public function addLanguage(array $data): int {
* 'locale' => 'Language Locale',
* 'extension' => '',
* 'sort_order' => 0,
* 'status' => 0
* 'status' => 1
* ];
*
* $this->load->model('localisation/language');
Expand Down
4 changes: 2 additions & 2 deletions upload/admin/model/localisation/tax_rate.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TaxRate extends \Opencart\System\Engine\Model {
*
* $tax_rate_data = [
* 'name' => 'Tax Rate Name',
* 'rate' => 'Tax Rate',
* 'rate' => 0.0000,
* 'type' => 'F',
* 'geo_zone_id' => 1
* ];
Expand Down Expand Up @@ -54,7 +54,7 @@ public function addTaxRate(array $data): int {
*
* $tax_rate_data = [
* 'name' => 'Tax Rate Name',
* 'rate' => 'Tax Rate',
* 'rate' => 0.0000,
* 'type' => 'F',
* 'geo_zone_id' => 1
* ];
Expand Down
2 changes: 1 addition & 1 deletion upload/admin/model/sale/order.php
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ public function getTotalsByCode(int $order_id, $code): array {
*
* $this->load->model('sale/order');
*
* $sale_total = $this->model_sale_order->getTotalSales(['filter_order_status' => implode(',', array_merge(1, 3)]);
* $sale_total = $this->model_sale_order->getTotalSales(['filter_order_status' => implode(',', array_merge(1, 3))]);
*/
public function getTotalSales(array $data = []): float {
$sql = "SELECT SUM(`total`) AS `total` FROM `" . DB_PREFIX . "order`";
Expand Down
2 changes: 0 additions & 2 deletions upload/admin/model/sale/subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,6 @@ public function getOptions(int $subscription_id, int $subscription_product_id):
* Delete Options
*
* @param int $subscription_id primary key of the subscription record
* @param int $order_id primary key of the order record
* @param int $order_product_id primary key of the order product record
*
* @return void
*
Expand Down
2 changes: 1 addition & 1 deletion upload/admin/model/user/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ public function getLogins(int $user_id, int $start = 0, int $limit = 10): array
$limit = 10;
}

$query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "user_login` WHERE `user_id` = '" . (int)$user_id . "' LIMIT " . (int)$start . "," . (int)$limit);
$query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "user_login` WHERE `user_id` = '" . (int)$user_id . "' ORDER BY `date_added` DESC LIMIT " . (int)$start . "," . (int)$limit);

if ($query->num_rows) {
return $query->rows;
Expand Down
Loading

0 comments on commit 701b6ae

Please sign in to comment.