Skip to content

Commit

Permalink
Center elements in landing pages and fix vertical product bugs (#212)
Browse files Browse the repository at this point in the history
* justify products content in the center

* include productlist template inside div with id js-product-list

* update module version
  • Loading branch information
juan-gm authored May 13, 2024
1 parent 6cfd407 commit ae30733
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doofinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,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.32';
const VERSION = '4.7.33';
const YES = 1;
const NO = 0;

public function __construct()
{
$this->name = 'doofinder';
$this->tab = 'search_filter';
$this->version = '4.7.32';
$this->version = '4.7.33';
$this->author = 'Doofinder (http://www.doofinder.com)';
$this->ps_versions_compliancy = ['min' => '1.5', 'max' => _PS_VERSION_];
$this->module_key = 'd1504fe6432199c7f56829be4bd16347';
Expand Down
2 changes: 1 addition & 1 deletion views/templates/front/catalog/_partials/productlist.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

{capture assign="productClasses"}{if !empty($productClass)}{$productClass}{else}col-xs-6 col-xl-4{/if}{/capture}

<div class="products{if !empty($cssClass)} {$cssClass}{/if}">
<div style="justify-content:center" class="products{if !empty($cssClass)} {$cssClass}{/if}">
{foreach from=$products item="product" key="position"}
{include file="catalog/_partials/miniatures/product.tpl" product=$product position=$position productClasses=$productClasses}
{/foreach}
Expand Down
4 changes: 3 additions & 1 deletion views/templates/front/landing.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
<div class="mb-1 mt-2 df-block-above">
{$block['above']|cleanHtml nofilter}
</div>
{include file="module:doofinder/views/templates/front/catalog/_partials/productlist.tpl" products=$block['products'] cssClass="row" productClass="col-xs-6 col-xl-3"}
<div id="js-product-list">
{include file="module:doofinder/views/templates/front/catalog/_partials/productlist.tpl" products=$block['products'] cssClass="row" productClass="col-xs-6 col-xl-3"}
</div>
<div class="mb-2 mt-1 df-block-below">
{$block['below']|cleanHtml nofilter}
</div>
Expand Down

0 comments on commit ae30733

Please sign in to comment.