Skip to content

Commit

Permalink
Merge pull request #138 from Progi1984/dataType
Browse files Browse the repository at this point in the history
Added data-type on featured block
  • Loading branch information
jolelievre committed Feb 15, 2024
2 parents 5ad791f + c6dfe6f commit 9bbbe17
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*}
<section class="featured-products clearfix mt-3">
<section class="featured-products clearfix mt-3" data-type="bestsellers">
<h2 class="h2 products-section-title text-uppercase">
{l s='Best Sellers' d='Shop.Theme.Catalog'}
</h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*}
<section class="featured-products clearfix mt-3">
<section class="featured-products clearfix mt-3" data-type="categoryproducts">
<h2>
{if $products|@count == 1}
{l s='%s other product in the same category:' sprintf=[$products|@count] d='Shop.Theme.Catalog'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*}

<section class="featured-products clearfix mt-3">
<section class="featured-products clearfix mt-3" data-type="crossselling">
<h2>{l s='Customers who bought this product also bought:' d='Shop.Theme.Catalog'}</h2>
{include file="catalog/_partials/productlist.tpl" products=$products productClass="col-xs-12 col-sm-6 col-lg-4 col-xl-3"}
</section>
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*}
<section class="featured-products clearfix">
<section class="featured-products clearfix" data-type="popularproducts">
<h2 class="h2 products-section-title text-uppercase">
{l s='Popular Products' d='Shop.Theme.Catalog'}
</h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*}

<section class="featured-products clearfix mt-3">
<section class="featured-products clearfix mt-3" data-type="newproducts">
<h2 class="h2 products-section-title text-uppercase">
{l s='New products' d='Shop.Theme.Catalog'}
</h2>
Expand Down
2 changes: 1 addition & 1 deletion modules/ps_specials/views/templates/hook/ps_specials.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*}

<section class="featured-products clearfix mt-3">
<section class="featured-products clearfix mt-3" data-type="onsale">
<h2 class="h2 products-section-title text-uppercase">
{l s='On sale' d='Shop.Theme.Catalog'}
</h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*}
<section class="featured-products clearfix mt-3">
<section class="featured-products clearfix mt-3" data-type="viewedproduct">
<h2>{l s='Viewed products' d='Shop.Theme.Catalog'}</h2>
{include file="catalog/_partials/productlist.tpl" products=$products productClass="col-xs-12 col-sm-6 col-lg-4 col-xl-3"}
</section>

0 comments on commit 9bbbe17

Please sign in to comment.