Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added data-type on featured block #138

Merged
merged 1 commit into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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>