Denys06 Posted June 25, 2014 Share Posted June 25, 2014 Bonjour, je désirerais pouvoir afficher "Prévenez-moi lorsque le produit est disponible" du module Alertes Email pour les produits qui sont hors stock mais disponibles à la commande sur ma boutique.Dans mon cas présent l'alerte email ne s'affiche que si le produit est hors stock et qu'il est configuré sur "Refuser les commandes"Est-ce normal et ai-je une solution de réaliser ce que je désire ?Merci d'avance Link to comment Share on other sites More sharing options...
Denys06 Posted July 1, 2014 Author Share Posted July 1, 2014 Up s'il vous plait Link to comment Share on other sites More sharing options...
SamChic Posted October 22, 2014 Share Posted October 22, 2014 Je suis dans le même cas, je cherche dans le code, mais pas encore trouvé de solution... Link to comment Share on other sites More sharing options...
jomcdonald Posted February 27, 2015 Share Posted February 27, 2015 Help... Même problème et je m'arrache les cheveux. Si quelqu'un connait la solution merci d'avance. Link to comment Share on other sites More sharing options...
jomcdonald Posted April 29, 2015 Share Posted April 29, 2015 Toujours rien à l'horizon ? Link to comment Share on other sites More sharing options...
jomcdonald Posted June 29, 2015 Share Posted June 29, 2015 Alors je viens de trouver une astuce qui marche. Fichier mailalerts.php qui se trouve dans le module mailalerts -> ligne 451 Enlever || Product::isAvailableWhenOutOfStock($params['product']->out_of_stock) ce qui donne au final public function hookActionProductOutOfStock($params) { if (!$this->customer_qty || !Configuration::get('PS_STOCK_MANAGEMENT')) return; $context = Context::getContext(); $id_product = (int)$params['product']->id; $id_product_attribute = 0; $id_customer = (int)$context->customer->id; if ((int)$context->customer->id <= 0) $this->context->smarty->assign('email', 1); elseif (MailAlert::customerHasNotification($id_customer, $id_product, $id_product_attribute, (int)$context->shop->id)) return; $this->context->smarty->assign( array( 'id_product' => $id_product, 'id_product_attribute' => $id_product_attribute ) ); return $this->display(__FILE__, 'product.tpl'); } Ça fonctionne chez moi en 1.6. 1 Link to comment Share on other sites More sharing options...
jp77 Posted September 2, 2015 Share Posted September 2, 2015 (edited) Bonjour jomcdonald Après cette modification ok affichage de la demande de suivi merci pour ton tuyau Edited September 3, 2015 by jp77 (see edit history) 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