Jump to content

Intégration Contenu page catégorie


Recommended Posts

Normalement dans le thème classic il y a un fichier themes/classic/templates/catalog/_partials/category-footer.tpl qui contient le nouveau champs

<div id="js-product-list-footer">
    {if isset($category) && $category.additional_description && $listing.pagination.items_shown_from == 1}
        <div class="card">
            <div class="card-block category-additional-description">
                {$category.additional_description nofilter}
            </div>
        </div>
    {/if}
</div>

 

Link to comment
Share on other sites

Hello, 

Je viens de trouver le fichier category.tpl qui contient les lignes suivantes : 

 

{**

 * 2007-2019 PrestaShop and Contributors

 *

 * NOTICE OF LICENSE

 *

 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)

 * that is bundled with this package in the file LICENSE.txt.

 * 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 [email protected] so we can send you a copy immediately.

 *

 * DISCLAIMER

 *

 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer

 * versions in the future. If you wish to customize PrestaShop for your

 * needs please refer to https://www.prestashop.com for more information.

 *

 * @author PrestaShop SA <[email protected]>

 * @copyright 2007-2019 PrestaShop SA and Contributors

 * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)

 * International Registered Trademark & Property of PrestaShop SA

 *}

{extends file='catalog/listing/product-list.tpl'}

 

{block name='product_list_header'}

{include file='catalog/_partials/category-header.tpl' listing=$listing category=$category}

{/block}

Faut-il du coup que je modifie ce fichier ? 
Quoi ajouter svp ?

Link to comment
Share on other sites

Il ne semble pas que ce soit le thème classic de Prestashop car le code devrait être pour ce template :

{extends file='catalog/listing/product-list.tpl'}

{block name='product_list_header'}
    {include file='catalog/_partials/category-header.tpl' listing=$listing category=$category}
{/block}

{block name='product_list_footer'}
    {include file='catalog/_partials/category-footer.tpl' listing=$listing category=$category}
{/block}

 

Link to comment
Share on other sites

il y a 2 minutes, Prestashop Addict a dit :

Il ne semble pas que ce soit le thème classic de Prestashop car le code devrait être pour ce template :

En même temps, cela fut précisé, même si je ne connais pas ce thème :

Le 03/12/2024 à 7:18 PM, 3pgarro a dit :

Classic Version 1.0.0, Conçu par Fran Codeur

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...