Skip to content

Instantly share code, notes, and snippets.

@torunar
Created October 3, 2018 14:02
Show Gist options
  • Save torunar/28e6854c165d73fa8cb273485e001c3b to your computer and use it in GitHub Desktop.
Save torunar/28e6854c165d73fa8cb273485e001c3b to your computer and use it in GitHub Desktop.
diff --git a/app/functions/fn.catalog.php b/app/functions/fn.catalog.php
index 2294d73..64522b1 100644
--- a/app/functions/fn.catalog.php
+++ b/app/functions/fn.catalog.php
@@ -7119,6 +7119,8 @@ function fn_get_products($params, $items_per_page = 0, $lang_code = CART_LANGUAG
. " FROM ?:products as products $join WHERE 1 $condition GROUP BY $group_by $having $sorting $limit";
$fn_load_products = function ($query, $params) use ($total) {
+ $dbg = db_process($query);
+ echo $dbg;
$products = db_get_array($query);
$total_found_rows = empty($params['items_per_page'])
? count($products)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment