Skip to content

Commit

Permalink
[Landing Pages] - New endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardogomez97 committed Sep 3, 2024
1 parent 90ce933 commit a045184
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions doofinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,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.8.7';
const VERSION = '4.8.8';
const YES = 1;
const NO = 0;

public function __construct()
{
$this->name = 'doofinder';
$this->tab = 'search_filter';
$this->version = '4.8.7';
$this->version = '4.8.8';
$this->author = 'Doofinder (http://www.doofinder.com)';
$this->ps_versions_compliancy = ['min' => '1.5', 'max' => _PS_VERSION_];
$this->module_key = 'd1504fe6432199c7f56829be4bd16347';
Expand Down
6 changes: 3 additions & 3 deletions lib/doofinder_api_landing.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
exit;
}

const API_URL = 'https://{region}-admin.doofinder.com';
const API_URL = 'https://{region}-plugins.doofinder.com';

class DoofinderApiLanding
{
Expand All @@ -32,11 +32,11 @@ public function __construct($hashid, $api_key, $region)
/**
* Make a request to the API to get landing data
*
* @param array Product data
* @param string Name from Landing
*/
public function getLanding($slug)
{
$endpoint = '/plugins/landing_new/' . $this->hashid . '/' . $slug;
$endpoint = "/landing/{$this->hashid}/{$slug}";

$url = $this->api_url . $endpoint;

Expand Down

0 comments on commit a045184

Please sign in to comment.