Jump to content
Sign in to follow this  

Problème controller Module pm_multiplefeatures

Recommended Posts


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()
        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 by cyril_nel (see edit history)

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More