diff --git a/modules/blockreassurance/views/templates/hook/displayBlockProduct.tpl b/modules/blockreassurance/views/templates/hook/displayBlockProduct.tpl new file mode 100644 index 0000000..d6d6e05 --- /dev/null +++ b/modules/blockreassurance/views/templates/hook/displayBlockProduct.tpl @@ -0,0 +1,43 @@ + +{** + * Copyright since 2007 PrestaShop SA and Contributors + * PrestaShop is an International Registered Trademark & Property of PrestaShop SA + * + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License version 3.0 + * that is bundled with this package in the file LICENSE.md. + * It is also available through the world-wide-web at this URL: + * https://opensource.org/licenses/AFL-3.0 + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * @author PrestaShop SA and Contributors + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 + *} + +
+ {foreach from=$blocks item=$block key=$key} + + + {if $block['icon'] != 'undefined'} + {if $block['custom_icon']} + + {elseif $block['icon']} + + {/if} + {/if}  + + {if empty($block['description'])} +

{$block['title']}

+ {else} +
+ {$block['title']} +

{$block['description'] nofilter}

+
+ {/if} +
+ {/foreach} + diff --git a/templates/catalog/_partials/product-add-to-cart.tpl b/templates/catalog/_partials/product-add-to-cart.tpl index a86cef7..0e9951b 100644 --- a/templates/catalog/_partials/product-add-to-cart.tpl +++ b/templates/catalog/_partials/product-add-to-cart.tpl @@ -22,14 +22,50 @@ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *} -
+
{if !$configuration.is_catalog} + {block name='product_availability'} + + {if $product.show_availability && $product.availability_message} + {if $product.availability == 'available'} + + + + + + + + + {elseif $product.availability == 'last_remaining_items'} + + + + + + + + {else} + + + + + + + + + + {/if} + {$product.availability_message} + {/if} + + {/block} + {block name='product_quantity'} -
+