ADMX Posted March 31, 2019 Share Posted March 31, 2019 Bonjour, Est ce qu'il y a un moyen de remettre des produits en nouveauté lorsqu'on passe d'un stock 0 à par exemple 50 ? Merci. Link to comment Share on other sites More sharing options...
Eolia Posted April 1, 2019 Share Posted April 1, 2019 Il faut changer la date d'ajout en bdd ou patcher le code d'origine Link to comment Share on other sites More sharing options...
ADMX Posted April 1, 2019 Author Share Posted April 1, 2019 Parfait, merci. Voici la manip pour une aide future : A) Ouvrer le fichier « \admin\themes\default\template\controllers\products\informations.tpl » et juste avant le code ci-dessous (vers la ligne 189) : <hr/> {* status informations *} Quote {* Webbax - date ajout produit *} <style> {literal} #ui-datepicker-div{z-index:1000!important;} {/literal} </style> <script type="text/javascript"> {literal} $(function(){ $('#date_add').datepicker({dateFormat:'yy-mm-dd'}); }); {/literal} </script> <div class="form-group"> <label class="control-label col-lg-3" for="date-creation"> <span class="label-tooltip" data-toggle="tooltip" title="{l s="Date d\'ajout"}"> {$bullet_common_field} {l s="Date d\'ajout"} </span> </label> <div class="col-lg-3"> <input maxlength="12" type="text" id="date_add" name="date_add" value="{$product->date_add|htmlentitiesUTF8|date_format:'%Y-%m-%d'}" /> </div> </div> {* -- *} 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