Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into variations_and_features
Browse files Browse the repository at this point in the history
  • Loading branch information
ecoslado committed Jun 24, 2015
2 parents f92d346 + 52dc4a2 commit 5bb53a0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
15 changes: 9 additions & 6 deletions dfTools.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,8 @@ public static function getCategoryPath($id_category, $id_lang, $id_shop, $full =
if (isset(self::$cached_category_paths[$id_category]))
return self::$cached_category_paths[$id_category];

$excluded_ids = implode(',', self::getRootCategoryIds($id_lang));

$sql = "
SELECT
cl.name
Expand All @@ -490,14 +492,15 @@ public static function getCategoryPath($id_category, $id_lang, $id_shop, $full =
AND cl.id_shop = _ID_SHOP_
AND cl.id_lang = _ID_LANG_
AND parent.level_depth <> 0
AND parent.active = 1
AND parent.id_category NOT IN (_EXCLUDED_IDS_)
ORDER BY
AND parent.active = 1 ";

if(count($excluded_ids) > 0 && $excludes_ids[0] != "")
$sql .= "AND parent.id_category NOT IN (_EXCLUDED_IDS_) ";

$sql .= "ORDER BY
parent.nleft
;
";
;";

$excluded_ids = implode(',', self::getRootCategoryIds($id_lang));
$sql = self::prepareSQL($sql, array('_ID_CATEGORY_' => $id_category,
'_ID_SHOP_' => $id_shop,
'_ID_LANG_' => $id_lang,
Expand Down
Binary file modified dist/doofinder-p1.5-latest.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion doofinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Doofinder extends Module

const GS_SHORT_DESCRIPTION = 1;
const GS_LONG_DESCRIPTION = 2;
const VERSION = "1.5.4";
const VERSION = "1.5.5";

const YES = 1;
const NO = 0;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "doofinder-for-prestashop",
"version": "1.5.4",
"version": "1.5.5",
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-clean": "^0.5.0",
Expand Down

0 comments on commit 5bb53a0

Please sign in to comment.