mwam77 Posted June 26, 2021 Share Posted June 26, 2021 Bon jai ce message d'erreur : Une idée ? Link to comment Share on other sites More sharing options...
Eolia Posted June 27, 2021 Share Posted June 27, 2021 Oui, votre override de CartRule.php est obsolète, il lui manque des paramètres requis. Link to comment Share on other sites More sharing options...
mwam77 Posted June 27, 2021 Author Share Posted June 27, 2021 Merci pour cette réponse, comment je peux regler ce probleme ? Link to comment Share on other sites More sharing options...
Eolia Posted June 28, 2021 Share Posted June 28, 2021 Ajouter les paramètres manquant à la fonction dans l'override ou mettre le module responsable à jour. Link to comment Share on other sites More sharing options...
mwam77 Posted June 28, 2021 Author Share Posted June 28, 2021 tout mes modules sont a jour .. Link to comment Share on other sites More sharing options...
Eolia Posted June 28, 2021 Share Posted June 28, 2021 rajoutez , $useOrderPrice = false à la fin de la déclaration dans l'override et ce sera bon^^ Link to comment Share on other sites More sharing options...
mwam77 Posted June 28, 2021 Author Share Posted June 28, 2021 Ce soucis est regler, j'en ai un dernier si je desactive le module "nouveau produit" je n'ai plus de probleme Link to comment Share on other sites More sharing options...
Eolia Posted June 28, 2021 Share Posted June 28, 2021 Ben le tpl de ce module appelle une variable $col qui n'existe pas; il lui manque un {if isset(...)} ... {/if} Link to comment Share on other sites More sharing options...
mwam77 Posted June 28, 2021 Author Share Posted June 28, 2021 Bizarre pour un module dev par prestashop ... je vais essayer Link to comment Share on other sites More sharing options...
mwam77 Posted June 28, 2021 Author Share Posted June 28, 2021 comme ce ci ? Link to comment Share on other sites More sharing options...
Eolia Posted June 28, 2021 Share Posted June 28, 2021 Non, il n'y a pas de variable $col la-dedans, il faudrait ouvrir le fichier en cache situé plus haut pour savoir, je me demande si ce n'est pas dans le php lui-même Link to comment Share on other sites More sharing options...
mwam77 Posted June 28, 2021 Author Share Posted June 28, 2021 <?php /* Smarty version 3.1.39, created on 2021-06-28 19:33:12 from 'module:psnewproductsviewstemplat' */ /* @var Smarty_Internal_Template $_smarty_tpl */ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( 'version' => '3.1.39', 'unifunc' => 'content_60da07d8a27f77_27037329', 'has_nocache_code' => false, 'file_dependency' => array ( '4a8df44403a47041b050fac755e17268c2a7c3e7' => array ( 0 => 'module:psnewproductsviewstemplat', 1 => 1624607620, 2 => 'module', ), ), 'includes' => array ( 'file:catalog/_partials/miniatures/product-grid-view.tpl' => 1, ), ),false)) { function content_60da07d8a27f77_27037329 (Smarty_Internal_Template $_smarty_tpl) { $_smarty_tpl->_loadInheritance(); $_smarty_tpl->inheritance->init($_smarty_tpl, false); $_smarty_tpl->compiled->nocache_hash = '211095749760da07d8a1e448_54025219'; ?> <!-- begin /var/www/shopavenue.fr/html/themes/tv_electronic_electron_1_7_v1/modules/ps_newproducts/views/templates/hook/ps_newproducts.tpl --> <div class="featured-products clearfix mt-3"><div class="tvcmsmain-title-wrapper clearfix"><div class="tvcms-main-title"><div class="tvmain-title"><h2><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'New products','d'=>'Shop.Theme.Catalog'),$_smarty_tpl ) );?> </h2></div></div></div><div class="products"><?php $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['products']->value, 'product'); $_smarty_tpl->tpl_vars['product']->do_else = true; if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['product']->value) { $_smarty_tpl->tpl_vars['product']->do_else = false; $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_181962754560da07d8a22d91_15877638', 'product_miniature_item'); } $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?></div></div><!-- end /var/www/shopavenue.fr/html/themes/tv_electronic_electron_1_7_v1/modules/ps_newproducts/views/templates/hook/ps_newproducts.tpl --><?php } /* {block 'product_miniature_item'} */ class Block_181962754560da07d8a22d91_15877638 extends Smarty_Internal_Block { public $subBlocks = array ( 'product_miniature_item' => array ( 0 => 'Block_181962754560da07d8a22d91_15877638', ), ); public function callBlock(Smarty_Internal_Template $_smarty_tpl) { ?> <article class="col-xs-12 col-sm-6 col-md-4 col-lg-3 <?php if (!(isset($_smarty_tpl->tpl_vars['tab_slider']->value))) {?>item<?php }?> <?php if (!empty($_smarty_tpl->tpl_vars['double_row']->value) && $_smarty_tpl->tpl_vars['double_row']->value == true) {?>tvtab-first-product<?php }?> product-miniature js-product-miniature <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['col']->value, ENT_QUOTES, 'UTF-8');?> tvall-product-wrapper-info-box" data-id-product="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['id_product'], ENT_QUOTES, 'UTF-8');?> " data-id-product-attribute="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['id_product_attribute'], ENT_QUOTES, 'UTF-8');?> " itemscope itemtype="http://schema.org/Product"><div class="thumbnail-container"><?php $_smarty_tpl->_subTemplateRender("file:catalog/_partials/miniatures/product-grid-view.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, $_smarty_tpl->cache_lifetime, array('class_name'=>'grid','product'=>$_smarty_tpl->tpl_vars['product']->value,'image_size'=>'home_default'), 0, true); ?></div></article><?php } } /* {/block 'product_miniature_item'} */ } Voici le code du fichier cache Link to comment Share on other sites More sharing options...
Eolia Posted June 28, 2021 Share Posted June 28, 2021 Dans public function callBlock(Smarty_Internal_Template $_smarty_tpl) { Link to comment Share on other sites More sharing options...
mwam77 Posted June 28, 2021 Author Share Posted June 28, 2021 J'ai reussi merci =) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now