Jump to content

Recommended Posts

Bonjour,

est il possible d'ajouter du texte à l'endroit du rectangle rouge sur l'image ? car je ne trouve pas où cela doit se faire si c'est possible .

et est il possible de changer le lien du logo de l'entête ? ou c'est d'office le lien de la boutique Prestachop ? 

moi j'ai un site sur lequel il y a le lien vers la boutique et j'aurais voulu mettre le lien vers mon site sur le logo ... ...

texte à coté logo.jpg

Link to comment
Share on other sites

Bonsoir,

Pour le texte en rouge, ça va être compliqué, pour le lien du logo, il est possible de le changer oui comme ceci

\themes\classic\templates\_partials\header.tpl ligne 64

repérer l'attribut href du lien et mettre votre URL a la place.

Screenshot_1.png.20e8f139d2ee44783545575c17d83ffd.png

Link to comment
Share on other sites

j'ai modifié comme suit avec fllezilla comme ci dessous mais cela n'a pas l'air de fonctionner 

 

 <div class="col-md-2 hidden-sm-down" id="_desktop_logo">
          <a href="{https://agri-farm.be}">
            <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}">

Link to comment
Share on other sites

désolé je viens de redémarre mon ordi , on ne sait jamais... mais toujours l'erreur 

à partir de mon site de départ , moi cela ne fonctionne pas ...   https://agri-farm.be/ 

 

il est vrai qu'au départ, je pensais démarré directement sur la boutique, mais une erreur de configuration au début m'a amené a crée une page d'accueil que j'ai aussi développé pour donner d'autres informations autres que la boutique... ce que je préfère maintenant et pour le futur...

 

Link to comment
Share on other sites

j'ai remis comme c'était au départ , mais rien ne change ... je ne me suis pas trompé ci dessous ?

je verrai demain avec l'hébergeur LWS car j'ai vu sur internet que cette erreur  c'était souvent un problème sur le serveur  

je mettrai le résultat demain 

 

<div class="col-md-2 hidden-sm-down" id="_desktop_logo">
          <a href="{$urls.base url}">
            <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}">
          </a>

Link to comment
Share on other sites

Sinon activer le mode debug de votre presta pour voir quelle erreur se produit

\config\defines.inc.php

/* Debug only */
if (!defined('_PS_MODE_DEV_')) {
define('_PS_MODE_DEV_', false);  Passer 'false' en 'true' et remettre après false une fois fini.
}

Link to comment
Share on other sites

Whoops, looks like something went wrong.

1/1 SmartyCompilerException in smarty_internal_templatecompilerbase.php line 62: Syntax error in template "/htdocs/prestashop/themes/classic/templates/_partials/header.tpl" on line 62 "<a href="{$urls.base url}">" too many shorthand attributes

  1. in smarty_internal_templatecompilerbase.php line 62
  2. at Smarty_Internal_TemplateCompilerBase->trigger_template_error('too many shorthand attributes', '62') in smarty_internal_compilebase.php line 71
  3. at Smarty_Internal_CompileBase->getAttributes(object(Smarty_Internal_SmartyTemplateCompiler), array(''url'')) in smarty_internal_compile_private_print_expression.php line 47
  4. at Smarty_Internal_Compile_Private_Print_Expression->compile(array(''url''), object(Smarty_Internal_SmartyTemplateCompiler), array('value' => '$_smarty_tpl->tpl_vars['urls']->value['base']'), null, null) in smarty_internal_templatecompilerbase.php line 580
  5. at Smarty_Internal_TemplateCompilerBase->callTagCompiler('private_print_expression', array(''url''), array('value' => '$_smarty_tpl->tpl_vars['urls']->value['base']')) in smarty_internal_templatecompilerbase.php line 349
  6. at Smarty_Internal_TemplateCompilerBase->compileTag('private_print_expression', array(''url''), array('value' => '$_smarty_tpl->tpl_vars['urls']->value['base']')) in smarty_internal_templateparser.php line 3534
  7. at Smarty_Internal_Templateparser->yy_r30() in smarty_internal_templateparser.php line 4392
  8. at Smarty_Internal_Templateparser->yy_reduce('30') in smarty_internal_templateparser.php line 4493
  9. at Smarty_Internal_Templateparser->doParse('3', '}') in smarty_internal_smartytemplatecompiler.php line 118
  10. at Smarty_Internal_SmartyTemplateCompiler->doCompile('{** * 2007-2017 PrestaShop * * 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 http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2017 PrestaShop SA * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *} {block name='header_banner'} <div class="header-banner"> {hook h='displayBanner'} </div> {/block} {block name='header_nav'} <nav class="header-nav"> <div class="container"> <div class="row"> <div class="hidden-sm-down"> <div class="col-md-4 col-xs-12"> {hook h='displayNav1'} </div> <div class="col-md-8 right-nav"> {hook h='displayNav2'} </div> </div> <div class="hidden-md-up text-sm-center mobile"> <div class="float-xs-left" id="menu-icon"> <i class="material-icons d-inline">&#xE5D2;</i> </div> <div class="float-xs-right" id="_mobile_cart"></div> <div class="float-xs-right" id="_mobile_user_info"></div> <div class="top-logo" id="_mobile_logo"></div> <div class="clearfix"></div> </div> </div> </div> </nav> {/block} {block name='header_top'} <div class="header-top"> <div class="container"> <div class="row"> <div class="col-md-2 hidden-sm-down" id="_desktop_logo"> <a href="{$urls.base url}"> <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}"> </a> </div> <div class="col-md-10 col-sm-12 position-static"> <div class="row"> {hook h='displayTop'} <div class="clearfix"></div> </div> </div> </div> <div id="mobile_top_menu_wrapper" class="row hidden-md-up" style="display:none;"> <div class="js-top-menu mobile" id="_mobile_top_menu"></div> <div class="js-top-menu-bottom"> <div id="_mobile_currency_selector"></div> <div id="_mobile_language_selector"></div> <div id="_mobile_contact_link"></div> </div> </div> </div> </div> {hook h='displayNavFullWidth'} {/block} ') in smarty_internal_templatecompilerbase.php line 283
  11. at Smarty_Internal_TemplateCompilerBase->compileTemplate(object(Smarty_Dev_Template), false) in smarty_internal_compile_include.php line 190
  12. at Smarty_Internal_Compile_Include->compile(array(array('file' => ''_partials/header.tpl'')), object(Smarty_Internal_SmartyTemplateCompiler), array(), null, null) in smarty_internal_templatecompilerbase.php line 580
  13. at Smarty_Internal_TemplateCompilerBase->callTagCompiler('include', array(array('file' => ''_partials/header.tpl'')), array()) in smarty_internal_templatecompilerbase.php line 349
  14. at Smarty_Internal_TemplateCompilerBase->compileTag('include', array(array('file' => ''_partials/header.tpl''))) in smarty_internal_templateparser.php line 3564
  15. at Smarty_Internal_Templateparser->yy_r37() in smarty_internal_templateparser.php line 4392
  16. at Smarty_Internal_Templateparser->yy_reduce('37') in smarty_internal_templateparser.php line 4493
  17. at Smarty_Internal_Templateparser->doParse('3', '}') in smarty_internal_smartytemplatecompiler.php line 118
  18. at Smarty_Internal_SmartyTemplateCompiler->doCompile('{** * 2007-2017 PrestaShop * * 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 http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2017 PrestaShop SA * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *} <!doctype html> <html lang="{$language.iso_code}"> <head> {block name='head'} {include file='_partials/head.tpl'} {/block} </head> <body id="{$page.page_name}" class="{$page.body_classes|classnames}"> {block name='hook_after_body_opening_tag'} {hook h='displayAfterBodyOpeningTag'} {/block} <main> {block name='product_activation'} {include file='catalog/_partials/product-activation.tpl'} {/block} <header id="header"> {block name='header'} {include file='_partials/header.tpl'} {/block} </header> {block name='notifications'} {include file='_partials/notifications.tpl'} {/block} <section id="wrapper"> {hook h="displayWrapperTop"} <div class="container"> {block name='breadcrumb'} {include file='_partials/breadcrumb.tpl'} {/block} {block name="left_column"} <div id="left-column" class="col-xs-12 col-sm-4 col-md-3"> {if $page.page_name == 'product'} {hook h='displayLeftColumnProduct'} {else} {hook h="displayLeftColumn"} {/if} </div> {/block} {block name="content_wrapper"} <div id="content-wrapper" class="left-column right-column col-sm-4 col-md-6"> {hook h="displayContentWrapperTop"} {block name="content"} <p>Hello world! This is HTML5 Boilerplate.</p> {/block} {hook h="displayContentWrapperBottom"} </div> {/block} {block name="right_column"} <div id="right-column" class="col-xs-12 col-sm-4 col-md-3"> {if $page.page_name == 'product'} {hook h='displayRightColumnProduct'} {else} {hook h="displayRightColumn"} {/if} </div> {/block} </div> {hook h="displayWrapperBottom"} </section> <footer id="footer"> {block name="footer"} {include file="_partials/footer.tpl"} {/block} </footer> </main> {block name='javascript_bottom'} {include file="_partials/javascript.tpl" javascript=$javascript.bottom} {/block} {block name='hook_before_body_closing_tag'} {hook h='displayBeforeBodyClosingTag'} {/block} </body> </html> ') in smarty_internal_templatecompilerbase.php line 283
  19. at Smarty_Internal_TemplateCompilerBase->compileTemplate(object(Smarty_Dev_Template)) in smarty_internal_template.php line 197
  20. at Smarty_Internal_Template->compileTemplateSource() in smarty_internal_templatebase.php line 155
  21. at Smarty_Internal_TemplateBase->fetch('index.tpl', null, 'layouts/layout-full-width.tpl', object(SmartyDev), false, true, false) in SmartyDev.php line 41
  22. at SmartyDev->fetch('index.tpl', null, 'layouts/layout-full-width.tpl') in FrontController.php line 671
  23. at FrontControllerCore->smartyOutputContent('index.tpl') in FrontController.php line 655
  24. at FrontControllerCore->display() in Controller.php line 225
  25. at ControllerCore->run() in Dispatcher.php line 379
  26. at DispatcherCore->dispatch() in index.php line 28
Link to comment
Share on other sites

Bonjour ,

désolé , j'ai du abandonner quelques jours la configuration de ma boutique

pour faire simple et avancer, vu que je ne connais pas tous les thermes techniques que vous utilisez comme par ex Displaynav2 .

Je chercherais plutôt une solution où un "expert" puisse se connecter sur ma machine par TeamViewer par ex que j'ai , afin de régler les petits soucis de configuration... (si c'est possible). Cela serai plus simple et au moins je ne risquerais pas faire pire  ..

Ci joint un fichier avec la configuration actuelle, celle souhaitée (si possible) et un soucis de créations d'articles 

 Merci de votre aide, Jean-Luc 

Problème conf art & acceuil.pdf

Link to comment
Share on other sites

Bonjour Jean-Luc,

Effectivement, il faudrait qu'un Expert gère votre problème directement quand vous êtes sûr de ne pas pouvoir le règler.

Je ne suis pas expert ou professionnel donc je ne suis pas votre homme. 

Vous devriez modifier le titre de votre post pour trouver un professionnel dispo, voir aussi sur le forum si il y a une section pour ça.

Bonne continuation.

Link to comment
Share on other sites

  • 1 month later...

S'il vous plait aidez moi !

j'essayer d'installer la mise a jour 1.7.3 et soudain 

Erreur HTTP 500

Étrange... Le site web ne parvient pas à afficher cette page

je ne peux plus aller sur mon back office et comme ma boutique était en maintenance je ne peux pas y aller non plus !

Je suis très embêtée je n'y connais pas grand chose ! j'ai vraiment besoin d'aide 

Capture.PNG

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...