Jump to content

ps_legalcompliance écrase l'objet $Link


Recommended Posts


ca plante dans la page Panier si l'objet Link est utilisé par un module et si le module ps_legalcompliance est activé.

Le module ps_legalcompliance écrase l'objet et le remplace par une chaine :

    public function hookDisplayCheckoutSubtotalDetails($param)
        // Display "under conditions" when the shipping subtotal equals 0
        if ('shipping' === $param['subtotal']['type'] && 0 === $param['subtotal']['amount']) {
            $cms_role_repository = $this->entity_manager->getRepository('CMSRole');
            $cms_page_shipping_and_payment = $cms_role_repository->findOneByName(self::LEGAL_SHIP_PAY);
            $link = $this->context->link->getCMSLink((int)$cms_page_shipping_and_payment->id_cms);

            $this->context->smarty->assign(array('link' => $link));
            return $this->display(__FILE__, 'hookDisplayCartPriceBlock_shipping_details.tpl');

Ca implique, par exemple, que l'on ne peut pas utiliser la méthode :

{ $link->getmanufacturerLink() }

dans le tpl du footer.

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

  • Create New...

Important Information

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