Jump to content

J'ai un problème avec le panier ajax


Recommended Posts

Bonjour tout le monde, lors des ajouts produits au panier je doit rafraichir pour que sa passe.

voici l erreur    :

POST https://naodem.com/module/ps_shoppingcart/ajax 500
send @ core.js:39
ajax @ core.js:39
m.<computed> @ core.js:39
(anonymous) @ ps_shoppingcart.js:65
i.emit @ theme.js:27
(anonymous) @ core.js:88
(anonymous) @ core.js:39
u @ core.js:39
fireWith @ core.js:39
S @ core.js:39
(anonymous) @ core.js:39
load (async)
send @ core.js:39
ajax @ core.js:39
m.<computed> @ core.js:39
(anonymous) @ core.js:88
dispatch @ core.js:39
g.handle @ core.js:39

Link to comment
Share on other sites

(1/1) FatalThrowableError

Call to a member function getPageLink() on string

in 35655e6409b6198f29dd6e732ef9598dec599880_2.module.psshoppingcartpsshoppingc.php line 50

at content_6058d40472b743_03015393(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232

at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, null, null, 0)in smarty_internal_templatebase.php line 116

at Smarty_Internal_TemplateBase->fetch(null, null, null, null, false, true, false)in SmartyDevTemplate.php line 40

at SmartyDevTemplateCore->fetch()in Module.php line 2447

at ModuleCore->fetch('module:ps_shoppingcart/ps_shoppingcart.tpl')in ps_shoppingcart.php line 116

at Ps_Shoppingcart->renderWidget(null, array('cart' => object(Cart)))in ajax.php line 50

at Ps_ShoppingcartAjaxModuleFrontController->initContent()in Controller.php line 292

at ControllerCore->run()in Dispatcher.php line 515

at DispatcherCore->dispatch()in index.php line 28

Link to comment
Share on other sites

il faudrait voir qu'est-ce qu'appelle getPageLink() dans ps_shoppingcart/ps_shoppingcart.tpl

ou dans var/cache/prod/smarty/cache/ps_shoppingcart/.../35655e6409b6198f29dd6e732ef9598dec599880_2.module.psshoppingcartpsshoppingc.php ligne 50

 

Le seul appel à cette fonction que je vois dans le module est 

    private function getCartSummaryURL()
    {
        return $this->context->link->getPageLink(
            'cart',
            null,
            $this->context->language->id,
            [
                'action' => 'show',
            ],
            false,
            null,
            true
        );
    }

 

Link to comment
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...