// add 2 useful hooks
This commit is contained in:
@@ -199,6 +199,10 @@ class CategoryControllerCore extends FrontController
|
|||||||
// Pagination must be call after "getProducts"
|
// Pagination must be call after "getProducts"
|
||||||
$this->pagination($this->nbProducts);
|
$this->pagination($this->nbProducts);
|
||||||
|
|
||||||
|
Hook::exec('actionProductListModifier', array(
|
||||||
|
'nb_products' => &$this->nbProducts,
|
||||||
|
'cat_products' => &$this->cat_products,
|
||||||
|
));
|
||||||
|
|
||||||
foreach ($this->cat_products as &$product)
|
foreach ($this->cat_products as &$product)
|
||||||
if ($product['id_product_attribute'] && isset($product['product_attribute_minimal_quantity']))
|
if ($product['id_product_attribute'] && isset($product['product_attribute_minimal_quantity']))
|
||||||
|
|||||||
@@ -22,13 +22,8 @@
|
|||||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||||
* International Registered Trademark & Property of PrestaShop SA
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
*}
|
*}
|
||||||
<script type="text/javascript">
|
|
||||||
var isLoggedWishlist = {if $logged}true{else}false{/if};
|
|
||||||
</script>
|
|
||||||
{if isset($products)}
|
{if isset($products)}
|
||||||
|
|
||||||
{*define numbers of product per line in other page for desktop*}
|
{*define numbers of product per line in other page for desktop*}
|
||||||
|
|
||||||
{if $page_name !='index' && $page_name !='product'}
|
{if $page_name !='index' && $page_name !='product'}
|
||||||
{assign var='nbItemsPerLine' value=3}
|
{assign var='nbItemsPerLine' value=3}
|
||||||
{assign var='nbItemsPerLineTablet' value=2}
|
{assign var='nbItemsPerLineTablet' value=2}
|
||||||
@@ -122,9 +117,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="functional-buttons clearfix">
|
<div class="functional-buttons clearfix">
|
||||||
<div class="wishlist">
|
{hook h='displayProductListFunctionalButtons' product=$product}
|
||||||
<a href="#" id="wishlist_button" onclick="WishlistCart('wishlist_block_list', 'add', '{$product.id_product|intval}', false, 1); return false;" class="addToWishlist"><i class="icon-heart-empty"></i> Add to Wishlist</a>
|
|
||||||
</div>
|
|
||||||
{if isset($comparator_max_item) && $comparator_max_item}
|
{if isset($comparator_max_item) && $comparator_max_item}
|
||||||
<div class="compare">
|
<div class="compare">
|
||||||
<label for="comparator_item_{$product.id_product}">
|
<label for="comparator_item_{$product.id_product}">
|
||||||
|
|||||||
Reference in New Issue
Block a user