cyril_nel Posted March 19, 2018 Share Posted March 19, 2018 (edited) Bonjour, Je rencontre actuellement un problème avec le module multiplefeature, celui ci fonctionne parfaitement en backoffice, mais ne fonctionne pas en front office. Quand je regarde dans le code : protected function getCurrentProductId() { ddd($this->context->controller); if (is_object($this->context->controller) && preg_match('/^ProductController/i', get_class($this->context->controller))) { if (method_exists($this->context->controller, 'getProduct')) { $product = $this->context->controller->getProduct(); } else { $id_product = (int)Tools::getValue('id_product'); if (Validate::isUnsignedId($id_product) && $id_product > 0) { return $id_product; } } if (Validate::isLoadedObject($product)) { return $product->id; } } return false; } mon ddd me retourne frontController au lieu de productController. Quelqu'un aurait une idée du pourquoi ? Merci à vous. Edited March 21, 2018 by cyril_nel (see edit history) Link to comment Share on other sites More sharing options...
cyril_nel Posted March 21, 2018 Author Share Posted March 21, 2018 Un petit up ! 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