delighted Posted May 27, 2013 Share Posted May 27, 2013 Bonjour, PS 1.5. - thème standard Dans la fiche article (en BO), il est possible de préciser la date de disponibilité (dans la sous rubrique "quantité") lorsque cet article n'est plus disponible (quantité <= 0). Comment fait on pour afficher cette date dans la fiche article coté Front Office si toutefois cela est possible ? Merci pour vos réponses. Link to comment Share on other sites More sharing options...
sangria777 Posted May 29, 2013 Share Posted May 29, 2013 Je recherche la même chose ! La date de disponibilité ne s'affiche pas dans le front !! Est-ce un paramètre ou il faut rajouter de lignes de code ? Presta 1.5.2 et thème de base également ! Link to comment Share on other sites More sharing options...
sangria777 Posted May 29, 2013 Share Posted May 29, 2013 Bon j 'ai trouvé grâce à ce post. J'ai ajouté dans la boucle : <!-- availability --> <p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> Le code suivant : <span id="availability_label">Date de disponibilité :</span> <span> {if (empty ($product->available_date)) } {else} {$product->available_date} {/if} </span> J'espère que ça aidera d'autre personne ! 1 Link to comment Share on other sites More sharing options...
sangria777 Posted May 29, 2013 Share Posted May 29, 2013 Autre astuce : Convertir la date en jj/mm/aaaa : {$product->available_date|date_format:'%d %m %Y'} 1 Link to comment Share on other sites More sharing options...
MrC8 Posted June 6, 2013 Share Posted June 6, 2013 Merci beaucoup sangria777 !!! ça marche nikel !!! tu viens de me sortir une grosse épine du pied Link to comment Share on other sites More sharing options...
CaroZ Posted January 17, 2014 Share Posted January 17, 2014 Un grand merci pour cette astuce ! C'est top. J'ai quelques questions néanmoins : comment pourrais - je ajouter un bandeau automatique sur la photo du produit (fonctionnalité identique à celle des soldes) pour écrire "en fabrication", quand la date de dispo est activée ? Ca permettrait à ma clientèle de savoir que ce produit est dispo à l'achat mais ne sera pas envoyé de suite dès la page de présentation des produits et non d'avoir à cliquer pour voir l'info. MERCI ! Link to comment Share on other sites More sharing options...
CaroZ Posted January 17, 2014 Share Posted January 17, 2014 Je viens de voir que cela ne fonctionne plus quand le produit possède des déclinaisons ! Mince ! Comment faire pour faire apparaitre la case en BO ? 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