Skip to content

Commit

Permalink
Fix product query
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangallegoc committed Sep 14, 2023
1 parent f6a31d7 commit fc6bc01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doofinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ class Doofinder extends Module
const DOOMANAGER_URL = 'https://admin.doofinder.com';
const GS_SHORT_DESCRIPTION = 1;
const GS_LONG_DESCRIPTION = 2;
const VERSION = '4.7.2';
const VERSION = '4.7.3';
const YES = 1;
const NO = 0;

public function __construct()
{
$this->name = 'doofinder';
$this->tab = 'search_filter';
$this->version = '4.7.2';
$this->version = '4.7.3';
$this->author = 'Doofinder (http://www.doofinder.com)';
$this->ps_versions_compliancy = ['min' => '1.5', 'max' => _PS_VERSION_];
$this->module_key = 'd1504fe6432199c7f56829be4bd16347';
Expand Down
3 changes: 3 additions & 0 deletions feeds/product.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ function array_merge_by_id_product($array1 = [], $array2 = [])
if ($debug) {
error_reporting(E_ALL);
ini_set('display_errors', 1);
} else {
error_reporting(0);
ini_set('display_errors', 0);
}

if ($cfg_debug) {
Expand Down
4 changes: 2 additions & 2 deletions lib/dfTools.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public static function getAvailableProductsForLanguage(
if (dfTools::versionGte('1.7.0.0')) {
$isbn = 'p.isbn,';
if (dfTools::cfg($id_shop, 'DF_SHOW_PRODUCT_VARIATIONS') == 1) {
$isbn = 'IF(isnull(pa.id_product), p.isbn , pa.isbn) AS isbn,';
$isbn_pa = 'IF(isnull(pa.id_product), p.isbn , pa.isbn) AS isbn,';
}
}

Expand Down Expand Up @@ -533,7 +533,7 @@ public static function getAvailableProductsForLanguage(
m.name AS manufacturer,
p.__MPN__ AS mpn,
p.ean13 AS ean13,
$isbn
$isbn_pa
p.upc AS upc,
p.reference AS reference,
p.supplier_reference AS supplier_reference,
Expand Down

0 comments on commit fc6bc01

Please sign in to comment.