Jump to content

Edit History

Traineau

Traineau

Vous pouvez me montrer l'arborescence de vos fichiers et dans quel template exactement vous ecrivez cela ? Si vous utilisez le theme classic le fichier concerné est themes/classic/cms/page.tpl. 

Cela donnerait ça :

{**
 * 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 <contact@prestashop.com>
 * @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='page.tpl'}

{block name='page_content_container'}
  <div class="cms-wrap">
    <section class="cms-title-section">
      <div class="container">
        <h1 class="cms-title">{$cms.meta_title}</h1>
      </div>
    </section>

    <div class="cms-content">
      <div class="container">

        <!-- Default CMS  -->
        {block name='hook_cms_dispute_information'}
          {hook h='displayCMSDisputeInformation'}
        {/block}

        {block name='cms_content'}
          {* Ici on affiche toutes les infos *}
          {$customer|var_dump}

          {* Ici on affiche la phrase que vous voulez voir apparaitre partout *}
          Bonjour {$customer.lastname} {$customer.firstname} soit le bienvenue chez toi
          {$cms.content nofilter}
        {/block}
      </div>
    </div>

    {block name='cms_content'}
      {if $cms.id==10}{hook h='displayGallery'}{/if}
    {/block}
  </div>
{/block}

 

Si vous ecrivez bien cela dedans et que tjrs rien ne s'affiche sur vos pages cms, la malheureusement je ne vois pas ce que ça peut être 😕 

 

EDIT : Pensez a vider votre cache également via le back-office, on sait jamais

Traineau

Traineau

Vous pouvez me montrer l'arborescence de vos fichiers et dans quel template exactement vous ecrivez cela ? Si vous utilisez le theme classic le fichier concerné est themes/classic/cms/page.tpl. 

Cela donnerait ça :

{**
 * 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 <contact@prestashop.com>
 * @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='page.tpl'}

{block name='page_content_container'}
  <div class="cms-wrap">
    <section class="cms-title-section">
      <div class="container">
        <h1 class="cms-title">{$cms.meta_title}</h1>
      </div>
    </section>

    <div class="cms-content">
      <div class="container">

        <!-- Default CMS  -->
        {block name='hook_cms_dispute_information'}
          {hook h='displayCMSDisputeInformation'}
        {/block}

        {block name='cms_content'}
          {* Ici on affiche toutes les infos *}
          {$customer|var_dump}

          {* Ici on affiche la phrase que vous voulez voir apparaitre partout *}
          Bonjour {$customer.lastname} {$customer.firstname} soit le bienvenue chez toi
          {$cms.content nofilter}
        {/block}
      </div>
    </div>

    {block name='cms_content'}
      {if $cms.id==10}{hook h='displayGallery'}{/if}
    {/block}
  </div>
{/block}

 

Si vous ecrivez bien cela dedans et que tjrs rien ne s'affiche sur vos pages cms, la malheureusement je ne vois pas ce que ça peut être 😕 

Traineau

Traineau

Vous pouvez me montrer l'arborescence de vos fichiers et dans quel template exactement vous ecrivez cela ? Si vous utilisez le theme classic le fichier concerné est themes/classic/cm/page.tpl. 

Cela donnerait ça :

{**
 * 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 <contact@prestashop.com>
 * @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='page.tpl'}

{block name='page_content_container'}
  <div class="cms-wrap">
    <section class="cms-title-section">
      <div class="container">
        <h1 class="cms-title">{$cms.meta_title}</h1>
      </div>
    </section>

    <div class="cms-content">
      <div class="container">

        <!-- Default CMS  -->
        {block name='hook_cms_dispute_information'}
          {hook h='displayCMSDisputeInformation'}
        {/block}

        {block name='cms_content'}
          {* Ici on affiche toutes les infos *}
          {$customer|var_dump}

          {* Ici on affiche la phrase que vous voulez voir apparaitre partout *}
          Bonjour {$customer.lastname} {$customer.firstname} soit le bienvenue chez toi
          {$cms.content nofilter}
        {/block}
      </div>
    </div>

    {block name='cms_content'}
      {if $cms.id==10}{hook h='displayGallery'}{/if}
    {/block}
  </div>
{/block}

 

Si vous ecrivez bien cela dedans et que tjrs rien ne s'affiche sur vos pages cms, la malheureusement je ne vois pas ce que ça peut être 😕 

×
×
  • Create New...